]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxDragImage.py
Fixed wxPython's wxArt constants
[wxWidgets.git] / wxPython / demo / wxDragImage.py
index 1c99d25f1d1f8147b030b2c8ce4a9b632186eb83..7ab24df8b9107650e9da5cde04498bdadebef7b6 100644 (file)
@@ -262,7 +262,10 @@ class DragCanvas(wxScrolledWindow):
 #----------------------------------------------------------------------
 
 def runTest(frame, nb, log):
-    win = DragCanvas(nb, -1)
+    win = wxPanel(nb, -1)
+    canvas = DragCanvas(win, -1)
+    def onSize(evt, panel=win, canvas=canvas): canvas.SetSize(panel.GetSize())
+    EVT_SIZE(win, onSize)
     return win
 
 #----------------------------------------------------------------------