X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/caef1a4da61f682659a1a17a68374574ba26afc9..84f85550e5e9f026d8518244cc47227e3e428a0f:/wxPython/contrib/ogl/msw/ogl.py diff --git a/wxPython/contrib/ogl/msw/ogl.py b/wxPython/contrib/ogl/msw/ogl.py index d5defa33c4..1ce7d1c13d 100644 --- a/wxPython/contrib/ogl/msw/ogl.py +++ b/wxPython/contrib/ogl/msw/ogl.py @@ -3,7 +3,7 @@ """ The Object Graphics Library provides for simple drawing and manipulation -of 2D objects. +of 2D objects. (This version is deprecated, please use wx.lib.ogl instead.) """ import _ogl @@ -12,6 +12,10 @@ 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): @@ -1219,11 +1223,11 @@ class PseudoMetaFile(_core.Object): return _ogl.PseudoMetaFile_DestroyClippingRect(*args, **kwargs) def SetPen(*args, **kwargs): - """SetPen(self, wxPen pen, bool isOutline=FALSE)""" + """SetPen(self, wxPen pen, bool isOutline=False)""" return _ogl.PseudoMetaFile_SetPen(*args, **kwargs) def SetBrush(*args, **kwargs): - """SetBrush(self, wxBrush brush, bool isFill=FALSE)""" + """SetBrush(self, wxBrush brush, bool isFill=False)""" return _ogl.PseudoMetaFile_SetBrush(*args, **kwargs) def SetFont(*args, **kwargs): @@ -1286,7 +1290,7 @@ class PyRectangleShape(PyShape): return _ogl.PyRectangleShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyRectangleShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -1448,7 +1452,7 @@ class PyControlPoint(PyRectangleShape): return _ogl.PyControlPoint_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyControlPoint_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -1618,7 +1622,7 @@ class PyBitmapShape(PyRectangleShape): return _ogl.PyBitmapShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyBitmapShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -1844,7 +1848,7 @@ class PyDrawnShape(PyRectangleShape): return _ogl.PyDrawnShape_SetDrawnBackgroundMode(*args, **kwargs) def SetDrawnBrush(*args, **kwargs): - """SetDrawnBrush(self, wxBrush pen, bool isOutline=FALSE)""" + """SetDrawnBrush(self, wxBrush pen, bool isOutline=False)""" return _ogl.PyDrawnShape_SetDrawnBrush(*args, **kwargs) def SetDrawnFont(*args, **kwargs): @@ -1852,7 +1856,7 @@ class PyDrawnShape(PyRectangleShape): return _ogl.PyDrawnShape_SetDrawnFont(*args, **kwargs) def SetDrawnPen(*args, **kwargs): - """SetDrawnPen(self, wxPen pen, bool isOutline=FALSE)""" + """SetDrawnPen(self, wxPen pen, bool isOutline=False)""" return _ogl.PyDrawnShape_SetDrawnPen(*args, **kwargs) def SetDrawnTextColour(*args, **kwargs): @@ -1884,7 +1888,7 @@ class PyDrawnShape(PyRectangleShape): return _ogl.PyDrawnShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyDrawnShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -2123,7 +2127,7 @@ class PyCompositeShape(PyRectangleShape): return _ogl.PyCompositeShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyCompositeShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -2285,7 +2289,7 @@ class PyDividedShape(PyRectangleShape): return _ogl.PyDividedShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyDividedShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -2539,7 +2543,7 @@ class PyDivisionShape(PyCompositeShape): return _ogl.PyDivisionShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyDivisionShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -2689,7 +2693,7 @@ class PyEllipseShape(PyShape): return _ogl.PyEllipseShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyEllipseShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -2839,7 +2843,7 @@ class PyCircleShape(PyEllipseShape): return _ogl.PyCircleShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyCircleShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -3272,7 +3276,7 @@ class PyLineShape(PyShape): return _ogl.PyLineShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyLineShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -3466,7 +3470,7 @@ class PyPolygonShape(PyShape): return _ogl.PyPolygonShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyPolygonShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs): @@ -3620,7 +3624,7 @@ class PyTextShape(PyRectangleShape): return _ogl.PyTextShape_base_OnDrawContents(*args, **kwargs) def base_OnDrawBranches(*args, **kwargs): - """base_OnDrawBranches(self, DC dc, bool erase=FALSE)""" + """base_OnDrawBranches(self, DC dc, bool erase=False)""" return _ogl.PyTextShape_base_OnDrawBranches(*args, **kwargs) def base_OnMoveLinks(*args, **kwargs):