[wxPython-users] Can't clear Clipping region in PaintDC

Christopher Barker Chris.Barker at noaa.gov
Wed Oct 25 09:06:19 PDT 2006


Robin Dunn wrote:
>>>        # make sure the FULL_REPAINT_ON_RESIZE flag is on
>>>        kwargs['style'] = kwargs.get('style', 0) | 
>>> wx.FULL_REPAINT_ON_RESIZE

> One way this could fail is if all the parameters are passed by position. 
>  Then 'style' won't be in the kwargs, which your code will catch by 
> using get with a default, but you will miss the value that's in args 
> instead.

Darn. I always try to use keyward args, but that could be a problem. It 
seems that this would be a good thing for Python to have a standard way 
of dealing with. Or Maybe wxPython, as there arguments to wx.Window 
calls tend to be similar.

Another option, as style flags are really the key thing here, is to have 
a way to add a style flag in the constructor, before the Window gets 
created.

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer
                                      		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov




More information about the wxpython-users mailing list