[wxPython-users] screen 'repaint' issues

Lanier, Paul Paul.Lanier at analog.com
Fri Jun 2 11:22:33 PDT 2006


I got something like this once when I was using Freeze and Thaw on a
top-level frame.  So if you are using those you might want to comment
that out and see if it fixes it.

-Paul 

-----Original Message-----
From: Robin Dunn [mailto:robin at alldunn.com] 
Sent: Friday, June 02, 2006 11:39 AM
To: wxPython-users at lists.wxwidgets.org
Subject: Re: [wxPython-users] screen 'repaint' issues

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.


--
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!


---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org




More information about the wxpython-users mailing list