javagui: eliminated spurious widget construction/destruction
"Samuele Pedroni" <[email protected]>
| Newsgroups | gmane.comp.python.anygui.devel |
|---|---|
| Message-ID | <01bf01c25991$bad13d00$6d94fea9@newmexico> |
Hi. javagui triggers (maybe also other backends to the same) widget construction on setContainer, now given the eager push logic setContainer is/can be called many times for the same container. With the previous logic the widget would be destroyed and then (re)constructed each time. With the change this happen only if the container.widget is different from the previous one. Maybe this improvement may apply to other backends. regards. PS: probably javagui can do keeping the same widget even when the container change. For the momement that is left unimplemented. ------------------------------------------------------- In remembrance www.osdn.com/911/