Bug in PseudoDC

There is a bug in PseudoDC.

The example “PseudoDC.py” that comes with demo, do these two changes:

line 50 :self.SetBackgroundColour(“GRAY”)
line 199: dc.SetBrush(wx.Brush((255,255,255))

When you run the script you won’t be able to move the rectangles. If you change the brush color to (255,255,254), you can move.
It seems there is a problem with pure white color.

Thanks

Prashant Saxena wrote:

There is a bug in PseudoDC.

The example "PseudoDC.py" that comes with demo, do these two changes:

line 50 :self.SetBackgroundColour("GRAY")
line 199: dc.SetBrush(wx.Brush((255,255,255))

When you run the script you won't be able to move the rectangles. If you change the brush color to (255,255,254), you can move.
It seems there is a problem with pure white color.

Thanks. I'll have a fix in the next release.

···

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