]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxOGL.py
Don't create a bitmap with dimensions <= 0...
[wxWidgets.git] / wxPython / demo / wxOGL.py
index 63501224ae3e821926fa7ec5a5d8cb4c22d5dc3a..c9e5f699171f7273b644213717a669d6e3f94dd1 100644 (file)
@@ -193,6 +193,14 @@ class TestWindow(wxShapeCanvas):
             if shape.GetParent() == None:
                 shape.SetCanvas(None)
                 shape.Destroy()
+        self.diagram.Destroy()
+
+
+    def OnBeginDragLeft(self, x, y, keys):
+        self.log.write("OnBeginDragLeft: %s, %s, %s\n" % (x, y, keys))
+
+    def OnEndDragLeft(self, x, y, keys):
+        self.log.write("OnEndDragLeft: %s, %s, %s\n" % (x, y, keys))
 
 
 #----------------------------------------------------------------------