[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Text based UI - framework core, example hub&spokes and input related questions



Hi,

well the exact layout can obviously be changed. Spoke representation while displayed on Hub is defined in ui/tui/spokes/__init__.py in TUISpoke.render method.

About the translations, everything is text (including the input "commands"), so we can use standard gettext to do the right thing. The question is how do we handle special characters on dumb terminals?

Martin

----- Original Message -----
> On 07/31/2012 08:31 AM, Martin Sivak wrote:
> > Hi,
> >
> > For everybody not wanting to test the code himself, here is the
> > output of running the test Hub and password Spoke using our
> > run-hub tool:
> >
> > [msivak office68 tui]$ make runtexthub HUB_MODULE=summary
> > HUB_CLASS=SummaryHub
> > ANACONDA_DATA=/home/msivak/Work/anaconda/tui/data \
> > ANACONDA_INSTALL_CLASSES=/home/msivak/Work/anaconda/tui/pyanaconda/installclasses
> > \
> > PYTHONPATH=.:pyanaconda/isys/.libs:widgets/python/:widgets/src/.libs/
> > \
> > LD_LIBRARY_PATH=widgets/src/.libs \
> > pyanaconda/ui/tui/tools/run-hub.py summary SummaryHub
> > dm.c: 1693: not running as root returning empty list
> > Running hub <class 'pyanaconda.ui.tui.hubs.summary.SummaryHub'>
> > from <module 'pyanaconda.ui.tui.hubs.summary' from
> > '/home/msivak/Work/anaconda/tui/pyanaconda/ui/tui/hubs/summary.pyc'>
> > Loaded plugins: blacklist, langpacks, presto, refresh-packagekit,
> > whiteout
> > Loaded plugins: blacklist, langpacks, presto, refresh-packagekit,
> > whiteout
> > Could not parse metalink
> > https://mirrors.fedoraproject.org/metalink?repo=fedora-bluesky&arch=x86_64
> > error was
> > No repomd file
> > Could not parse metalink
> > https://mirrors.fedoraproject.org/metalink?repo=updates-released-fbluesky&arch=x86_64
> > error was
> > No repomd file
> > ================================================================================
> > ================================================================================
> > Install hub
> >
> >   1  [ ] Set root password
> >          (Password is not set.)
> > 	Please make your choice from above ['q' to quit]: 1
> > ================================================================================
> 
> I think what we want to do here is not have the checkbox [ ] next to
> the
> spoke.  Instead underneath the spoke we'll have the status.  Can
> quibble
> over what to enclose it with, but I like [] for the status.  That way
> it
> can be blank and still make sense, otherwise have content.
> 
> Is q to quit something that will be translated?
> 
> 
> --
> Jesse Keating
> Fedora -- FreedomĀ² is a feature!
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]