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

Re: newui python-meh

On Fri, 2012-07-13 at 09:47 -0400, Chris Lumens wrote:
> > Are we thinking about having this dialog as a lightbox? Cause that would
> > be complicated since python-meh is an external module, runs it's own
> > Gtk.main loop and has almost no way to reference the window it appears
> > above.
> That's not really very different from the rest of newui, though.  Lots
> of dialogs run their own main loop.  And there's got to be a way to get
> at the python-meh provided GtkWindow, doesn't there?  It's been a while
> since I looked at the code though.
We can pass whatever we want to python-meh in the Config object before
registering it as the exception handler (the install() method). We could
pass a GtkWindow and the lightbox this way, but which window? We never
know when an exception appears and thus which window is shown by that
time. And since our lightboxing code needs reference to the underlying
window to work, I'm afraid this way is not usable.
The only way that seems feasible to me is to have another exception
handler in Anaconda that would display the lightbox, set the ordering of
the windows (so that users wouldn't be able to click on the Anaconda
window below [1]) and then run python-meh. 

[1] See Radek's patches for the connection-editor lightboxing for more

Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic

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