[wxpython-users] FloodFill on OSX
Timothy Grant
timothy.grant at gmail.com
Tue Apr 1 16:57:04 PDT 2008
I'm just mucking about with some wxPython code and am a bit flummoxed by
this behavior..
I have a window with a 'DARKGREY' grid painted on it. I simply want to
colour the square on the grid I click in a different colour.
dc =3D wx.PaintDC(self)
dc.SetBrush(wx.Brush('BLUE'))
print dc.Brush.GetColour()
dc.BeginDrawing()
if dc.FloodFill((w * GRIDSIZE) + 1, (h * GRIDSIZE) + 1, 'DARKGREY',
wx.FLOOD_SURFACE):
print "flood successful"
else:
print "flood not successful"
dc.EndDrawing()
The FloodFIll always prints "flood not successful" and I'm not sure what I'm
doing wrong.
-- =
Stand Fast,
tjg.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200804=
01/623c7041/attachment-0001.htm
More information about the wxpython-users
mailing list