[wxPython] How to rebuild a page containing controls because some of them have to be deleted?
F. GEIGER
f.geiger at vol.at
Fri Oct 29 14:51:31 EDT 2004
More information about the Python-list mailing list
Fri Oct 29 14:51:31 EDT 2004
- Previous message (by thread): [wxPython] How to rebuild a page containing controls because some of them have to be deleted?
- Next message (by thread): [wxPython] How to rebuild a page containing controls becausesome of them have to be deleted?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I often use Notebook to structure my GUIs. Sometimes I have to provide a Settings page. Doing changes in this page influences other pages in such a way, that some controls have to change add or remove children or even have to be removed from the page at all. Yet I could not come up with a solid pattern how to do this. I tried to call DestroyChildren(), delete all ref's to them, and to set the page's sizer to None. This doesn't work very well. When I rebuild the page, at least the arrangement of the controls is not the same as before, which makes me think, that other things will go wrong in the long run too. For now I issue a dialog telling the user, that he has to restart the app - not very professional looking... So, how is this done best? Kind regards Franz GEIGER
- Previous message (by thread): [wxPython] How to rebuild a page containing controls because some of them have to be deleted?
- Next message (by thread): [wxPython] How to rebuild a page containing controls becausesome of them have to be deleted?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list