projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Documentation fixes, patch 1179223 by Andreas Mohr
[wxWidgets.git]
/
wxPython
/
demo
/
Cursor.py
diff --git
a/wxPython/demo/Cursor.py
b/wxPython/demo/Cursor.py
index 8d05e7cb2cfbcb888408405159437bae33f5e0c8..29b7f9c7ea2d3eaaaee0677b45d749fb01fb8087 100644
(file)
--- a/
wxPython/demo/Cursor.py
+++ b/
wxPython/demo/Cursor.py
@@
-109,7
+109,8
@@
class TestPanel(wx.Panel):
dc = wx.ClientDC(self.win)
dc.SetPen(wx.Pen("RED"))
dc.SetBrush(wx.Brush("RED"))
dc = wx.ClientDC(self.win)
dc.SetPen(wx.Pen("RED"))
dc.SetBrush(wx.Brush("RED"))
- dc.DrawCircle(evt.GetPosition(), 4)
+ pos = evt.GetPosition()
+ dc.DrawCircle(pos.x, pos.y, 4)
#----------------------------------------------------------------------
#----------------------------------------------------------------------
@@
-135,5
+136,5
@@
This demo shows the stock mouse cursors that are available to wxPython.
if __name__ == '__main__':
import sys,os
import run
if __name__ == '__main__':
import sys,os
import run
- run.main(['', os.path.basename(sys.argv[0])])
+ run.main(['', os.path.basename(sys.argv[0])]
+ sys.argv[1:]
)