"Nested MainLoop" sounds a lot simpler than it really is, I'm sure.. But I see no reason not to have a value returned from MainLoop.run(). I'll take that patch.
On Tue, Dec 4, 2012 at 12:52 PM, Andreas Kloeckner <[email protected]> wrote: > Hi Ian, all, > > I'm writing to suggest that ExitMainLoop be able to take a value that > gets returned from the main loop. This comes in handy, e.g. when you've > got a nested main loop to deal with a dialog box. The result of that > dialog box ("Ok"/"Cancel" clicked or whatever) can then be the return > value of loop.run(). PuDB has a mechanism like this, and as I was > thinking of making it use the new MainLoop mechanism, this proved to be > a stumbling block. > > Andreas > > > _______________________________________________ > Urwid mailing list > [email protected] > http://lists.excess.org/mailman/listinfo/urwid _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
