Jeff, The ncurses "dialog" program does at least almost all of what you are trying to do. If not, then there is an urwid dialog.py that can be extended to accomplish what you are trying to do.
~Andrew On Sat, May 9, 2009 at 11:11 PM, Jeff Smith <[email protected]> wrote: > I've been using Python for some time now in a simple little text-only > console app. Life has been uncluttered and sweet, but recently, I > decided to add a few features that require a bit more interactivity > and I've temporarily done so by launching some zenity and Tk dialogs > to get the job done. But that's ugly. I hate leaving the sanctity of > the console window and employing a mouse-oriented widget instead of > just keeping my fingers on my keyboard, where they belong. > > I was surprised though, when I dug into urwid that none of the > examples provided (at least that I can find) take this simple, drop-in > approach to easing people onto the urwid bandwagon. They all seem to > assume that developers will want to build their entire apps as an > urwid-centric text-GUI. But that's not me. I just want a scrolling > pager dialog that I can throw up in the rare case where I have > something long to tell my users, and then have it go away when they're > done, returning them to my simple command-line interface. And > similarly, when I need to let them edit multi-line text blocks, again, > throw up a simple text-editor dialog and then have it vanish when > they're done and go back to the prompt. > > Has this been done already somewhere? If not, I'll just dive into the > docs and figure out how to make these for myself, but they seem so > obvious that I thought I'd ask first. > > -- > Jeff Smith > > > _______________________________________________ > Urwid mailing list > [email protected] > http://lists.excess.org/mailman/listinfo/urwid > >
_______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
