I am working on a script where I am creating several widgets in different sizers on different panels. The top most parent is a wx.ScrollWindow.
At run time when creating the same interface again for different set of data I am using “scrlWind.DestroyChildren()” and then creating the interface
again in wx.ScrollWindow. Creating this interface again takes a little time.
Instead of using “scrlWind.DestroyChildren()” is it possible to catch all the children including their state so that when creating interface again for the same set of data we can attach the cached data to wx.ScrollWindow. If it can be done then I think It would be faster.
Thanks
Hi Prashant,
I am working on a script where I am creating several widgets in different sizers on different panels. The top most parent is a wx.ScrollWindow.
At run time when creating the same interface again for different set of data I am using "scrlWind.DestroyChildren()" and then creating the interface
again in wx.ScrollWindow. Creating this interface again takes a little time.
Instead of using "scrlWind.DestroyChildren()" is it possible to catch all the children including their state so that when creating interface again for the same set of data we can attach the cached data to wx.ScrollWindow. If it can be done then I think It would be faster.
Thanks
Why not just clear the contents of the widgets rather than destroying them? Or just use their getter and setter methods to save the data and then reset them when you need to change the interface.
···
-------------------
Mike Driscoll
Blog: http://blog.pythonlibrary.org
Python Extension Building Network: http://www.pythonlibrary.org