X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/36cadbf72dfea68f8fe817b5a65e12da7c88982f..9342fdbe5e17b09025d53496dd983bc7eb99f21f:/wxPython/contrib/ogl/gtk/ogl.py diff --git a/wxPython/contrib/ogl/gtk/ogl.py b/wxPython/contrib/ogl/gtk/ogl.py index 78dd91288b..d7323ed148 100644 --- a/wxPython/contrib/ogl/gtk/ogl.py +++ b/wxPython/contrib/ogl/gtk/ogl.py @@ -1,12 +1,21 @@ # This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. +""" +The Object Graphics Library provides for simple drawing and manipulation +of 2D objects. (This version is deprecated, please use wx.lib.ogl instead.) +""" + import _ogl import _windows import _core wx = _core __docfilter__ = wx.__DocFilter(globals()) +import warnings +warnings.warn("This module is deprecated. Please use the wx.lib.ogl package instead.", + DeprecationWarning, stacklevel=2) + #--------------------------------------------------------------------------- class ShapeRegion(_core.Object): @@ -349,7 +358,7 @@ class PyShape(PyShapeEvtHandler): self.this = newobj.this self.thisown = 1 del newobj.thisown - self._setOORandCallbackInfo(PyShapeEvtHandler) + self._setOORandCallbackInfo(PyShape) def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" @@ -1194,15 +1203,15 @@ class PseudoMetaFile(_core.Object): return _ogl.PseudoMetaFile_DrawText(*args, **kwargs) def DrawLines(*args, **kwargs): - """DrawLines(self, int PCOUNT, Point points)""" + """DrawLines(self, int points, Point points_array)""" return _ogl.PseudoMetaFile_DrawLines(*args, **kwargs) def DrawPolygon(*args, **kwargs): - """DrawPolygon(self, int PCOUNT, Point points, int flags=0)""" + """DrawPolygon(self, int points, Point points_array, int flags=0)""" return _ogl.PseudoMetaFile_DrawPolygon(*args, **kwargs) def DrawSpline(*args, **kwargs): - """DrawSpline(self, int PCOUNT, Point points)""" + """DrawSpline(self, int points, Point points_array)""" return _ogl.PseudoMetaFile_DrawSpline(*args, **kwargs) def SetClippingRect(*args, **kwargs): @@ -1779,7 +1788,7 @@ class PyDrawnShape(PyRectangleShape): return _ogl.PyDrawnShape_DrawLine(*args, **kwargs) def DrawLines(*args, **kwargs): - """DrawLines(self, int PCOUNT, Point points)""" + """DrawLines(self, int points, Point points_array)""" return _ogl.PyDrawnShape_DrawLines(*args, **kwargs) def DrawPoint(*args, **kwargs): @@ -1787,7 +1796,7 @@ class PyDrawnShape(PyRectangleShape): return _ogl.PyDrawnShape_DrawPoint(*args, **kwargs) def DrawPolygon(*args, **kwargs): - """DrawPolygon(self, int PCOUNT, Point points, int flags=0)""" + """DrawPolygon(self, int points, Point points_array, int flags=0)""" return _ogl.PyDrawnShape_DrawPolygon(*args, **kwargs) def DrawRectangle(*args, **kwargs): @@ -1799,7 +1808,7 @@ class PyDrawnShape(PyRectangleShape): return _ogl.PyDrawnShape_DrawRoundedRectangle(*args, **kwargs) def DrawSpline(*args, **kwargs): - """DrawSpline(self, int PCOUNT, Point points)""" + """DrawSpline(self, int points, Point points_array)""" return _ogl.PyDrawnShape_DrawSpline(*args, **kwargs) def DrawText(*args, **kwargs): @@ -3867,6 +3876,8 @@ class PyShapeCanvas(_windows.ScrolledWindow): self.this = newobj.this self.thisown = 1 del newobj.thisown + self._setOORandCallbackInfo(PyShapeCanvas) + def _setCallbackInfo(*args, **kwargs): """_setCallbackInfo(self, PyObject self, PyObject _class)""" return _ogl.PyShapeCanvas__setCallbackInfo(*args, **kwargs)