reorder the creation of the drag objects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -58,6 +58,11 @@ class DragCanvas(wx.ScrolledWindow):
|
|||||||
shape.fullscreen = True
|
shape.fullscreen = True
|
||||||
self.shapes.append(shape)
|
self.shapes.append(shape)
|
||||||
|
|
||||||
|
bmp = images.getTheKidBitmap()
|
||||||
|
shape = DragShape(bmp)
|
||||||
|
shape.pos = (200, 5)
|
||||||
|
self.shapes.append(shape)
|
||||||
|
|
||||||
# Make a shape from some text
|
# Make a shape from some text
|
||||||
text = "Some Text"
|
text = "Some Text"
|
||||||
bg_colour = wx.Colour(57, 115, 57) # matches the bg image
|
bg_colour = wx.Colour(57, 115, 57) # matches the bg image
|
||||||
@@ -84,11 +89,6 @@ class DragCanvas(wx.ScrolledWindow):
|
|||||||
self.shapes.append(shape)
|
self.shapes.append(shape)
|
||||||
|
|
||||||
|
|
||||||
bmp = images.getTheKidBitmap()
|
|
||||||
shape = DragShape(bmp)
|
|
||||||
shape.pos = (200, 5)
|
|
||||||
self.shapes.append(shape)
|
|
||||||
|
|
||||||
self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground)
|
self.Bind(wx.EVT_ERASE_BACKGROUND, self.OnEraseBackground)
|
||||||
self.Bind(wx.EVT_PAINT, self.OnPaint)
|
self.Bind(wx.EVT_PAINT, self.OnPaint)
|
||||||
self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
|
self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
|
||||||
|
Reference in New Issue
Block a user