Discussion:
[urwid] Multiple pop up types from single PopUpLauncher
AndyS
2015-12-28 04:07:02 UTC
Permalink
I'm implementing a widget which can produce different types of pop-up
windows (e.g. menu, message box, dialog).
The create_pop_up()/get_pop_up_parameters() methods need some context to
decide type of widget to create and its geometry. As those methods do not
allow me to pass any user parameters I guess this needs to be done via the
context in the subclass of PopUpLauncher which is a bit ugly because it
adds something to the object state which is not strictly needed. Would it
be better to have open_pop_up() to accept user parameters and pass those
parameters to create_pop_up()/get_pop_up_parameters()?
--
You received this message because you are subscribed to the Google Groups "Urwid Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to urwid+***@excess.org.
To post to this group, send email to ***@excess.org.
For more options, visit https://groups.google.com/a/excess.org/d/optout.
Loading...