From c10ae510189067379125802d4f7dcf2fed4d5b39 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 21 Jan 2004 03:06:55 +0000 Subject: [PATCH] Use Bind git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/demo/OGL.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/wxPython/demo/OGL.py b/wxPython/demo/OGL.py index 786eae770e..3dab78b679 100644 --- a/wxPython/demo/OGL.py +++ b/wxPython/demo/OGL.py @@ -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): -- 2.47.2