wx.StaticBoxSizer and refresh issue.

I have an issue with wxPython where the frame does not refresh
properly for controls under a wx.StaticBoxSizer parent after my
application performs some calculations and updates some text control
fields.

I have tried using frame.Refresh() but that just makes matters worse.
I have pasted the code here using refresh:

http://pastebin.com/iLyLBsM9

Clicking the OK button triggers the Refresh() function, and only the
bottom half refreshes, while the controls on the top half 'disappear'.

I am running wxPython 2.9.1.1 under Windows 7 (same issue under Win
XP)

I'm I doing something incorrectly? Any help would be appreciated.

Thanks,

Ricardo

Try using a wx.Panel as the parent of the widgets and child of the frame.

···

On 7/14/11 10:09 AM, ric wrote:

I have an issue with wxPython where the frame does not refresh
properly for controls under a wx.StaticBoxSizer parent after my
application performs some calculations and updates some text control
fields.

I have tried using frame.Refresh() but that just makes matters worse.
I have pasted the code here using refresh:

http://pastebin.com/iLyLBsM9

Clicking the OK button triggers the Refresh() function, and only the
bottom half refreshes, while the controls on the top half 'disappear'.

I am running wxPython 2.9.1.1 under Windows 7 (same issue under Win
XP)

I'm I doing something incorrectly? Any help would be appreciated.

--
Robin Dunn
Software Craftsman