X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/49234978d5fc96c111ca135c6f9d8e38e7583ba2..4263de1e0586d20cb49d0dde23f0d227c5ef25cb:/wxPython/demo/OGL.py diff --git a/wxPython/demo/OGL.py b/wxPython/demo/OGL.py index 786eae770e..32df0612ec 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): @@ -323,5 +318,5 @@ manipulation of simple and complex graphic images on a canvas. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])