Reverted to old method names/signatures for wx.DC, updated lib and
demo to match. Also fixed some deprecation warnings. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -69,7 +69,7 @@ class DoodlePad(wx.Window):
|
||||
dc = wx.ClientDC(self)
|
||||
dc.BeginDrawing()
|
||||
dc.SetPen(wx.Pen(wx.BLUE, 3))
|
||||
coords = ((self.x, self.y), event.GetPositionTuple())
|
||||
coords = (self.x, self.y) + event.GetPositionTuple()
|
||||
self.curLine.append(coords)
|
||||
dc.DrawLine(*coords)
|
||||
self.x, self.y = event.GetPositionTuple()
|
||||
|
Reference in New Issue
Block a user