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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.