X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9416aa89ca06d0fb20b1002e026d2c7ac7aa6a17..2bcdcf7e2af3cbc41cbe6a849d664e26d28b98ca:/wxPython/contrib/ogl/oglcanvas.py diff --git a/wxPython/contrib/ogl/oglcanvas.py b/wxPython/contrib/ogl/oglcanvas.py index 218121aae1..a2a67b2cae 100644 --- a/wxPython/contrib/ogl/oglcanvas.py +++ b/wxPython/contrib/ogl/oglcanvas.py @@ -15,6 +15,8 @@ from events import * from streams import * +from utils import * + from mdi import * from frames import * @@ -39,7 +41,7 @@ from sizers import * from filesys import * -from utils import * +from oglbasic import * import wx class wxDiagramPtr(wxObjectPtr): def __init__(self,this): @@ -146,8 +148,8 @@ class wxPyShapeCanvasPtr(wxScrolledWindowPtr): def __init__(self,this): self.this = this self.thisown = 0 - def _setSelf(self, *_args, **_kwargs): - val = apply(oglcanvasc.wxPyShapeCanvas__setSelf,(self,) + _args, _kwargs) + def _setCallbackInfo(self, *_args, **_kwargs): + val = apply(oglcanvasc.wxPyShapeCanvas__setCallbackInfo,(self,) + _args, _kwargs) return val def AddShape(self, *_args, **_kwargs): val = apply(oglcanvasc.wxPyShapeCanvas_AddShape,(self,) + _args, _kwargs) @@ -209,9 +211,8 @@ class wxPyShapeCanvas(wxPyShapeCanvasPtr): def __init__(self,*_args,**_kwargs): self.this = apply(oglcanvasc.new_wxPyShapeCanvas,_args,_kwargs) self.thisown = 1 - self._setSelf(self, wxPyShapeCanvas) - #wx._StdWindowCallbacks(self) - #wx._StdOnScrollCallbacks(self) + self._setCallbackInfo(self, wxPyShapeCanvas) + self._setOORInfo(self)