[wxPython-users] screen 'repaint' issues
scott
scott at ebbyfish.com
Fri Jun 2 16:34:24 PDT 2006
Robin Dunn wrote:
> scott wrote:
>> Robin Dunn wrote:
>>> Scott Mallory wrote:
>>>> Greetings all,
>>>> I'm sorry if this has been addressed in the past but I can't seem
>>>> to find a solution...
>>>>
>>>> The problem:
>>>>
>>>> When dynamically loading a new panel in my app, the app underneath
>>>> (if there is one) 'shines through', also my app seems to lose focus
>>>> and I have to click on the task bar to get it back into focus.
>>>
>>> Without more code it's really hard to even guess. Please make a
>>> small sample app that shows the problem.
>>
>> Here is a small jpg of the problem. SPE is underneath the app in this
>> pic, also the app has lost focus. These behaviors occur even when I
>> run it as an exe with nothing else underneath.
>>
>> This 'shining' or 'bleed through' happens when I build the panel for
>> the first time after that it behaves normally.
>
> Something is preventing the Frame from painting its background. Do
> you bind an empty hander for the EVT_ERASE_BACKGROUND event? You
> should also try just using the default style for the frame.
>
>
I added that handle, it seems to help, along with removing the
Freeze/Thaw from the parent frame
As an aside, I found your book most helpful, especially with refactoring!
Thanks for your help
More information about the wxpython-users
mailing list