Can't clear Clipping region in PaintDC
Christopher Barker
Chris.Barker at noaa.gov
Fri Oct 20 09:18:03 PDT 2006
Hi all,
I really thought that I "got" wx.DCs, but this one has me stumped. I'm =
hoping I'm missing something obvious.
it appears that the wx.PaintDC is setting a clipping region, and only =
drawing to the new part of the Windows on re-size. However, when I call:
dc.GetClippingBox()
IU get (0,0,0,0)
and calling:
dc.DestroyClippingRegion()
seems to have no effect. What am I missing?
Python 2.4.3, wxPython 2.6.3.3, wxGTK unicode on Fedora core 4.
sample enclosed -- try resizing the frame, and see what happens -- I =
want a single rectangle with a gradient of color.
Thanks,
-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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ScaleWindow2.py
Type: text/x-python
Size: 6837 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/20061=
020/2f6fc150/ScaleWindow2.py
More information about the wxpython-users
mailing list