# 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__
+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):
+class ShapeRegion(_core.Object):
def __repr__(self):
return "<%s.%s; proxy of C++ wxShapeRegion instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
self.__class__ = ShapeRegion
_ogl.ShapeRegion_swigregister(ShapeRegionPtr)
-class AttachmentPoint(core.Object):
+class AttachmentPoint(_core.Object):
def __repr__(self):
return "<%s.%s; proxy of C++ wxAttachmentPoint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
self.__class__ = AttachmentPoint
_ogl.AttachmentPoint_swigregister(AttachmentPointPtr)
-class PyShapeEvtHandler(core.Object):
+class PyShapeEvtHandler(_core.Object):
def __repr__(self):
return "<%s.%s; proxy of C++ wxPyShapeEvtHandler instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
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)"""
oglMETAFLAGS_OUTLINE = _ogl.oglMETAFLAGS_OUTLINE
oglMETAFLAGS_ATTACHMENTS = _ogl.oglMETAFLAGS_ATTACHMENTS
-class PseudoMetaFile(core.Object):
+class PseudoMetaFile(_core.Object):
def __repr__(self):
return "<%s.%s; proxy of C++ wxPseudoMetaFile instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
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):
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):
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):
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):
self.__class__ = PyDrawnShape
_ogl.PyDrawnShape_swigregister(PyDrawnShapePtr)
-class OGLConstraint(core.Object):
+class OGLConstraint(_core.Object):
def __repr__(self):
return "<%s.%s; proxy of C++ wxOGLConstraint instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
self.__class__ = PyCircleShape
_ogl.PyCircleShape_swigregister(PyCircleShapePtr)
-class ArrowHead(core.Object):
+class ArrowHead(_core.Object):
def __repr__(self):
return "<%s.%s; proxy of C++ wxArrowHead instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""GetLineControlPoints(self) -> PyObject"""
return _ogl.PyLineShape_GetLineControlPoints(*args, **kwargs)
+ def SetLineControlPoints(*args, **kwargs):
+ """SetLineControlPoints(self, PyObject list)"""
+ return _ogl.PyLineShape_SetLineControlPoints(*args, **kwargs)
+
def SetAttachmentFrom(*args, **kwargs):
"""SetAttachmentFrom(self, int fromAttach)"""
return _ogl.PyLineShape_SetAttachmentFrom(*args, **kwargs)
self.__class__ = PyTextShape
_ogl.PyTextShape_swigregister(PyTextShapePtr)
-class Diagram(core.Object):
+class Diagram(_core.Object):
def __repr__(self):
return "<%s.%s; proxy of C++ wxDiagram instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
self.__class__ = Diagram
_ogl.Diagram_swigregister(DiagramPtr)
-class PyShapeCanvas(windows.ScrolledWindow):
+class PyShapeCanvas(_windows.ScrolledWindow):
def __repr__(self):
return "<%s.%s; proxy of C++ wxPyShapeCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
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)