1 # This file was created automatically by SWIG.
18 from stattool
import *
20 from controls
import *
22 from controls2
import *
24 from windows2
import *
28 from windows3
import *
35 def __init__(self
,this
):
38 def __del__(self
,oglcanvasc
=oglcanvasc
):
39 if self
.thisown
== 1 :
40 oglcanvasc
.delete_wxDiagram(self
)
41 def AddShape(self
, *_args
, **_kwargs
):
42 val
= apply(oglcanvasc
.wxDiagram_AddShape
,(self
,) + _args
, _kwargs
)
44 def Clear(self
, *_args
, **_kwargs
):
45 val
= apply(oglcanvasc
.wxDiagram_Clear
,(self
,) + _args
, _kwargs
)
47 def DeleteAllShapes(self
, *_args
, **_kwargs
):
48 val
= apply(oglcanvasc
.wxDiagram_DeleteAllShapes
,(self
,) + _args
, _kwargs
)
50 def DrawOutline(self
, *_args
, **_kwargs
):
51 val
= apply(oglcanvasc
.wxDiagram_DrawOutline
,(self
,) + _args
, _kwargs
)
53 def FindShape(self
, *_args
, **_kwargs
):
54 val
= apply(oglcanvasc
.wxDiagram_FindShape
,(self
,) + _args
, _kwargs
)
55 if val
: val
= wxPyShapePtr(val
)
57 def GetCanvas(self
, *_args
, **_kwargs
):
58 val
= apply(oglcanvasc
.wxDiagram_GetCanvas
,(self
,) + _args
, _kwargs
)
59 if val
: val
= wxPyShapeCanvasPtr(val
)
61 def GetCount(self
, *_args
, **_kwargs
):
62 val
= apply(oglcanvasc
.wxDiagram_GetCount
,(self
,) + _args
, _kwargs
)
64 def GetGridSpacing(self
, *_args
, **_kwargs
):
65 val
= apply(oglcanvasc
.wxDiagram_GetGridSpacing
,(self
,) + _args
, _kwargs
)
67 def GetMouseTolerance(self
, *_args
, **_kwargs
):
68 val
= apply(oglcanvasc
.wxDiagram_GetMouseTolerance
,(self
,) + _args
, _kwargs
)
70 def GetShapeList(self
, *_args
, **_kwargs
):
71 val
= apply(oglcanvasc
.wxDiagram_GetShapeList
,(self
,) + _args
, _kwargs
)
73 def GetQuickEditMode(self
, *_args
, **_kwargs
):
74 val
= apply(oglcanvasc
.wxDiagram_GetQuickEditMode
,(self
,) + _args
, _kwargs
)
76 def GetSnapToGrid(self
, *_args
, **_kwargs
):
77 val
= apply(oglcanvasc
.wxDiagram_GetSnapToGrid
,(self
,) + _args
, _kwargs
)
79 def InsertShape(self
, *_args
, **_kwargs
):
80 val
= apply(oglcanvasc
.wxDiagram_InsertShape
,(self
,) + _args
, _kwargs
)
82 def LoadFile(self
, *_args
, **_kwargs
):
83 val
= apply(oglcanvasc
.wxDiagram_LoadFile
,(self
,) + _args
, _kwargs
)
85 def ReadContainerGeometry(self
, *_args
, **_kwargs
):
86 val
= apply(oglcanvasc
.wxDiagram_ReadContainerGeometry
,(self
,) + _args
, _kwargs
)
88 def ReadLines(self
, *_args
, **_kwargs
):
89 val
= apply(oglcanvasc
.wxDiagram_ReadLines
,(self
,) + _args
, _kwargs
)
91 def ReadNodes(self
, *_args
, **_kwargs
):
92 val
= apply(oglcanvasc
.wxDiagram_ReadNodes
,(self
,) + _args
, _kwargs
)
94 def RecentreAll(self
, *_args
, **_kwargs
):
95 val
= apply(oglcanvasc
.wxDiagram_RecentreAll
,(self
,) + _args
, _kwargs
)
97 def Redraw(self
, *_args
, **_kwargs
):
98 val
= apply(oglcanvasc
.wxDiagram_Redraw
,(self
,) + _args
, _kwargs
)
100 def RemoveAllShapes(self
, *_args
, **_kwargs
):
101 val
= apply(oglcanvasc
.wxDiagram_RemoveAllShapes
,(self
,) + _args
, _kwargs
)
103 def RemoveShape(self
, *_args
, **_kwargs
):
104 val
= apply(oglcanvasc
.wxDiagram_RemoveShape
,(self
,) + _args
, _kwargs
)
106 def SaveFile(self
, *_args
, **_kwargs
):
107 val
= apply(oglcanvasc
.wxDiagram_SaveFile
,(self
,) + _args
, _kwargs
)
109 def SetCanvas(self
, *_args
, **_kwargs
):
110 val
= apply(oglcanvasc
.wxDiagram_SetCanvas
,(self
,) + _args
, _kwargs
)
112 def SetGridSpacing(self
, *_args
, **_kwargs
):
113 val
= apply(oglcanvasc
.wxDiagram_SetGridSpacing
,(self
,) + _args
, _kwargs
)
115 def SetMouseTolerance(self
, *_args
, **_kwargs
):
116 val
= apply(oglcanvasc
.wxDiagram_SetMouseTolerance
,(self
,) + _args
, _kwargs
)
118 def SetQuickEditMode(self
, *_args
, **_kwargs
):
119 val
= apply(oglcanvasc
.wxDiagram_SetQuickEditMode
,(self
,) + _args
, _kwargs
)
121 def SetSnapToGrid(self
, *_args
, **_kwargs
):
122 val
= apply(oglcanvasc
.wxDiagram_SetSnapToGrid
,(self
,) + _args
, _kwargs
)
124 def ShowAll(self
, *_args
, **_kwargs
):
125 val
= apply(oglcanvasc
.wxDiagram_ShowAll
,(self
,) + _args
, _kwargs
)
127 def Snap(self
, *_args
, **_kwargs
):
128 val
= apply(oglcanvasc
.wxDiagram_Snap
,(self
,) + _args
, _kwargs
)
131 return "<C wxDiagram instance at %s>" % (self
.this
,)
132 class wxDiagram(wxDiagramPtr
):
133 def __init__(self
,*_args
,**_kwargs
):
134 self
.this
= apply(oglcanvasc
.new_wxDiagram
,_args
,_kwargs
)
140 class wxPyShapeCanvasPtr(wxScrolledWindowPtr
):
141 def __init__(self
,this
):
144 def _setSelf(self
, *_args
, **_kwargs
):
145 val
= apply(oglcanvasc
.wxPyShapeCanvas__setSelf
,(self
,) + _args
, _kwargs
)
147 def AddShape(self
, *_args
, **_kwargs
):
148 val
= apply(oglcanvasc
.wxPyShapeCanvas_AddShape
,(self
,) + _args
, _kwargs
)
150 def FindShape(self
, *_args
, **_kwargs
):
151 val
= apply(oglcanvasc
.wxPyShapeCanvas_FindShape
,(self
,) + _args
, _kwargs
)
152 if val
: val
= wxPyShapePtr(val
)
154 def FindFirstSensitiveShape(self
, *_args
, **_kwargs
):
155 val
= apply(oglcanvasc
.wxPyShapeCanvas_FindFirstSensitiveShape
,(self
,) + _args
, _kwargs
)
156 if val
: val
= wxPyShapePtr(val
)
158 def GetDiagram(self
, *_args
, **_kwargs
):
159 val
= apply(oglcanvasc
.wxPyShapeCanvas_GetDiagram
,(self
,) + _args
, _kwargs
)
160 if val
: val
= wxDiagramPtr(val
)
162 def GetQuickEditMode(self
, *_args
, **_kwargs
):
163 val
= apply(oglcanvasc
.wxPyShapeCanvas_GetQuickEditMode
,(self
,) + _args
, _kwargs
)
165 def InsertShape(self
, *_args
, **_kwargs
):
166 val
= apply(oglcanvasc
.wxPyShapeCanvas_InsertShape
,(self
,) + _args
, _kwargs
)
168 def base_OnBeginDragLeft(self
, *_args
, **_kwargs
):
169 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnBeginDragLeft
,(self
,) + _args
, _kwargs
)
171 def base_OnBeginDragRight(self
, *_args
, **_kwargs
):
172 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnBeginDragRight
,(self
,) + _args
, _kwargs
)
174 def base_OnEndDragLeft(self
, *_args
, **_kwargs
):
175 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnEndDragLeft
,(self
,) + _args
, _kwargs
)
177 def base_OnEndDragRight(self
, *_args
, **_kwargs
):
178 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnEndDragRight
,(self
,) + _args
, _kwargs
)
180 def base_OnDragLeft(self
, *_args
, **_kwargs
):
181 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnDragLeft
,(self
,) + _args
, _kwargs
)
183 def base_OnDragRight(self
, *_args
, **_kwargs
):
184 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnDragRight
,(self
,) + _args
, _kwargs
)
186 def base_OnLeftClick(self
, *_args
, **_kwargs
):
187 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnLeftClick
,(self
,) + _args
, _kwargs
)
189 def base_OnRightClick(self
, *_args
, **_kwargs
):
190 val
= apply(oglcanvasc
.wxPyShapeCanvas_base_OnRightClick
,(self
,) + _args
, _kwargs
)
192 def Redraw(self
, *_args
, **_kwargs
):
193 val
= apply(oglcanvasc
.wxPyShapeCanvas_Redraw
,(self
,) + _args
, _kwargs
)
195 def RemoveShape(self
, *_args
, **_kwargs
):
196 val
= apply(oglcanvasc
.wxPyShapeCanvas_RemoveShape
,(self
,) + _args
, _kwargs
)
198 def SetDiagram(self
, *_args
, **_kwargs
):
199 val
= apply(oglcanvasc
.wxPyShapeCanvas_SetDiagram
,(self
,) + _args
, _kwargs
)
201 def Snap(self
, *_args
, **_kwargs
):
202 val
= apply(oglcanvasc
.wxPyShapeCanvas_Snap
,(self
,) + _args
, _kwargs
)
205 return "<C wxPyShapeCanvas instance at %s>" % (self
.this
,)
206 class wxPyShapeCanvas(wxPyShapeCanvasPtr
):
207 def __init__(self
,*_args
,**_kwargs
):
208 self
.this
= apply(oglcanvasc
.new_wxPyShapeCanvas
,_args
,_kwargs
)
211 wx
._StdWindowCallbacks
(self
)
212 wx
._StdOnScrollCallbacks
(self
)
219 #-------------- FUNCTION WRAPPERS ------------------
223 #-------------- VARIABLE WRAPPERS ------------------