pickled since there is currently a problem with unpickling
wx.Points...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25030
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
dc.SetPen(wx.Pen(wx.BLUE, 3))
for line in self.lines:
for coords in line:
dc.SetPen(wx.Pen(wx.BLUE, 3))
for line in self.lines:
for coords in line:
dc = wx.ClientDC(self)
dc.BeginDrawing()
dc.SetPen(wx.Pen(wx.BLUE, 3))
dc = wx.ClientDC(self)
dc.BeginDrawing()
dc.SetPen(wx.Pen(wx.BLUE, 3))
- coords = ((self.x, self.y), event.GetPosition())
+ coords = ((self.x, self.y), event.GetPositionTuple())
self.curLine.append(coords)
self.curLine.append(coords)
self.x, self.y = event.GetPositionTuple()
dc.EndDrawing()
self.x, self.y = event.GetPositionTuple()
dc.EndDrawing()
if self.GetData():
# convert it back to a list of lines and give it to the viewer
linesdata = self.data.GetData()
if self.GetData():
# convert it back to a list of lines and give it to the viewer
linesdata = self.data.GetData()
- lines = wx.InputStream(cPickle.loads(linesdata))
+ lines = cPickle.loads(linesdata)
self.dv.SetLines(lines)
# what is returned signals the source what to do
self.dv.SetLines(lines)
# what is returned signals the source what to do
for line in self.lines:
for coords in line:
for line in self.lines:
for coords in line:
dc.EndDrawing()
#----------------------------------------------------------------------
dc.EndDrawing()
#----------------------------------------------------------------------