I have some problems with my wxPython application. Under Linux/GTK it
works well, but under windowsXP the window is not refreshed properly
when updated. It works if I first minimize the window and then maximize
it, all widgets will appear if I do that. I Have tried to put Refresh()
calls on various places without any luck.
The wxFrame contains one single wxPanel(with more widgets on). The
wxPanel is erased and recreated when the user clicks on a button.
I have some problems with my wxPython application. Under Linux/GTK it
works well, but under windowsXP the window is not refreshed properly
when updated. It works if I first minimize the window and then maximize
it, all widgets will appear if I do that. I Have tried to put Refresh()
calls on various places without any luck.
The wxFrame contains one single wxPanel(with more widgets on). The
wxPanel is erased and recreated when the user clicks on a button.
Probably since the frame already has its size then the panel is added to it then the default behaviour of sizing the panel to the client size of the frame is not happening. Try calling frame.SendSizeEvent() after the panel is created and populated.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!