]> git.saurik.com Git - wxWidgets.git/commitdiff
Use Bind
authorRobin Dunn <robin@alldunn.com>
Wed, 21 Jan 2004 03:06:55 +0000 (03:06 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 21 Jan 2004 03:06:55 +0000 (03:06 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/demo/OGL.py

index 786eae770e159fddfee576dbbd4e79b35a20fa5d..3dab78b6793b525357f786945694c54627c2876b 100644 (file)
@@ -2,11 +2,6 @@
 #
 # o Updated for wx namespace
 # 
-# 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net)
-#
-# o OGL's busted bigtime. Can't even use OGLInitialize() without a 
-#   program error on w2k.
-# 
 
 import  wx
 import  wx.ogl  as  ogl
@@ -249,7 +244,7 @@ class TestWindow(ogl.ShapeCanvas):
             # for some reason, the shapes have to be moved for the line to show up...
             fromShape.Move(dc, fromShape.GetX(), fromShape.GetY())
 
-        wx.EVT_WINDOW_DESTROY(self, self.OnDestroy)
+        self.Bind(wx.EVT_WINDOW_DESTROY, self.OnDestroy)
 
 
     def MyAddShape(self, shape, x, y, pen, brush, text):