1 # This file was created automatically by SWIG.
10 from clip_dnd
import *
12 from controls
import *
16 class wxStatusBarPtr(wxWindowPtr
):
17 def __init__(self
,this
):
20 def GetFieldRect(self
, *_args
, **_kwargs
):
21 val
= apply(stattoolc
.wxStatusBar_GetFieldRect
,(self
,) + _args
, _kwargs
)
22 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
24 def GetFieldsCount(self
, *_args
, **_kwargs
):
25 val
= apply(stattoolc
.wxStatusBar_GetFieldsCount
,(self
,) + _args
, _kwargs
)
27 def GetStatusText(self
, *_args
, **_kwargs
):
28 val
= apply(stattoolc
.wxStatusBar_GetStatusText
,(self
,) + _args
, _kwargs
)
30 def DrawField(self
, *_args
, **_kwargs
):
31 val
= apply(stattoolc
.wxStatusBar_DrawField
,(self
,) + _args
, _kwargs
)
33 def DrawFieldText(self
, *_args
, **_kwargs
):
34 val
= apply(stattoolc
.wxStatusBar_DrawFieldText
,(self
,) + _args
, _kwargs
)
36 def InitColours(self
, *_args
, **_kwargs
):
37 val
= apply(stattoolc
.wxStatusBar_InitColours
,(self
,) + _args
, _kwargs
)
39 def SetFieldsCount(self
, *_args
, **_kwargs
):
40 val
= apply(stattoolc
.wxStatusBar_SetFieldsCount
,(self
,) + _args
, _kwargs
)
42 def SetStatusText(self
, *_args
, **_kwargs
):
43 val
= apply(stattoolc
.wxStatusBar_SetStatusText
,(self
,) + _args
, _kwargs
)
45 def SetStatusWidths(self
, *_args
, **_kwargs
):
46 val
= apply(stattoolc
.wxStatusBar_SetStatusWidths
,(self
,) + _args
, _kwargs
)
49 return "<C wxStatusBar instance at %s>" % (self
.this
,)
50 class wxStatusBar(wxStatusBarPtr
):
51 def __init__(self
,*_args
,**_kwargs
):
52 self
.this
= apply(stattoolc
.new_wxStatusBar
,_args
,_kwargs
)
54 wx
._StdWindowCallbacks
(self
)
59 class wxToolBarToolPtr
:
60 def __init__(self
,this
):
63 def __del__(self
,stattoolc
=stattoolc
):
64 if self
.thisown
== 1 :
65 stattoolc
.delete_wxToolBarTool(self
)
66 def SetSize(self
, *_args
, **_kwargs
):
67 val
= apply(stattoolc
.wxToolBarTool_SetSize
,(self
,) + _args
, _kwargs
)
69 def GetWidth(self
, *_args
, **_kwargs
):
70 val
= apply(stattoolc
.wxToolBarTool_GetWidth
,(self
,) + _args
, _kwargs
)
72 def GetHeight(self
, *_args
, **_kwargs
):
73 val
= apply(stattoolc
.wxToolBarTool_GetHeight
,(self
,) + _args
, _kwargs
)
75 def GetControl(self
, *_args
, **_kwargs
):
76 val
= apply(stattoolc
.wxToolBarTool_GetControl
,(self
,) + _args
, _kwargs
)
77 if val
: val
= wxControlPtr(val
)
79 def __setattr__(self
,name
,value
):
80 if name
== "m_toolStyle" :
81 stattoolc
.wxToolBarTool_m_toolStyle_set(self
,value
)
83 if name
== "m_clientData" :
84 stattoolc
.wxToolBarTool_m_clientData_set(self
,value
)
86 if name
== "m_index" :
87 stattoolc
.wxToolBarTool_m_index_set(self
,value
)
90 stattoolc
.wxToolBarTool_m_x_set(self
,value
)
93 stattoolc
.wxToolBarTool_m_y_set(self
,value
)
95 if name
== "m_width" :
96 stattoolc
.wxToolBarTool_m_width_set(self
,value
)
98 if name
== "m_height" :
99 stattoolc
.wxToolBarTool_m_height_set(self
,value
)
101 if name
== "m_toggleState" :
102 stattoolc
.wxToolBarTool_m_toggleState_set(self
,value
)
104 if name
== "m_isToggle" :
105 stattoolc
.wxToolBarTool_m_isToggle_set(self
,value
)
107 if name
== "m_deleteSecondBitmap" :
108 stattoolc
.wxToolBarTool_m_deleteSecondBitmap_set(self
,value
)
110 if name
== "m_enabled" :
111 stattoolc
.wxToolBarTool_m_enabled_set(self
,value
)
113 if name
== "m_bitmap1" :
114 stattoolc
.wxToolBarTool_m_bitmap1_set(self
,value
.this
)
116 if name
== "m_bitmap2" :
117 stattoolc
.wxToolBarTool_m_bitmap2_set(self
,value
.this
)
119 if name
== "m_isMenuCommand" :
120 stattoolc
.wxToolBarTool_m_isMenuCommand_set(self
,value
)
122 if name
== "m_shortHelpString" :
123 stattoolc
.wxToolBarTool_m_shortHelpString_set(self
,value
)
125 if name
== "m_longHelpString" :
126 stattoolc
.wxToolBarTool_m_longHelpString_set(self
,value
)
128 self
.__dict
__[name
] = value
129 def __getattr__(self
,name
):
130 if name
== "m_toolStyle" :
131 return stattoolc
.wxToolBarTool_m_toolStyle_get(self
)
132 if name
== "m_clientData" :
133 return stattoolc
.wxToolBarTool_m_clientData_get(self
)
134 if name
== "m_index" :
135 return stattoolc
.wxToolBarTool_m_index_get(self
)
137 return stattoolc
.wxToolBarTool_m_x_get(self
)
139 return stattoolc
.wxToolBarTool_m_y_get(self
)
140 if name
== "m_width" :
141 return stattoolc
.wxToolBarTool_m_width_get(self
)
142 if name
== "m_height" :
143 return stattoolc
.wxToolBarTool_m_height_get(self
)
144 if name
== "m_toggleState" :
145 return stattoolc
.wxToolBarTool_m_toggleState_get(self
)
146 if name
== "m_isToggle" :
147 return stattoolc
.wxToolBarTool_m_isToggle_get(self
)
148 if name
== "m_deleteSecondBitmap" :
149 return stattoolc
.wxToolBarTool_m_deleteSecondBitmap_get(self
)
150 if name
== "m_enabled" :
151 return stattoolc
.wxToolBarTool_m_enabled_get(self
)
152 if name
== "m_bitmap1" :
153 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap1_get(self
))
154 if name
== "m_bitmap2" :
155 return wxBitmapPtr(stattoolc
.wxToolBarTool_m_bitmap2_get(self
))
156 if name
== "m_isMenuCommand" :
157 return stattoolc
.wxToolBarTool_m_isMenuCommand_get(self
)
158 if name
== "m_shortHelpString" :
159 return stattoolc
.wxToolBarTool_m_shortHelpString_get(self
)
160 if name
== "m_longHelpString" :
161 return stattoolc
.wxToolBarTool_m_longHelpString_get(self
)
162 raise AttributeError,name
164 return "<C wxToolBarTool instance at %s>" % (self
.this
,)
165 class wxToolBarTool(wxToolBarToolPtr
):
166 def __init__(self
,*_args
,**_kwargs
):
167 self
.this
= apply(stattoolc
.new_wxToolBarTool
,_args
,_kwargs
)
173 class wxToolBarPtr(wxControlPtr
):
174 def __init__(self
,this
):
177 def AddControl(self
, *_args
, **_kwargs
):
178 val
= apply(stattoolc
.wxToolBar_AddControl
,(self
,) + _args
, _kwargs
)
180 def AddSeparator(self
, *_args
, **_kwargs
):
181 val
= apply(stattoolc
.wxToolBar_AddSeparator
,(self
,) + _args
, _kwargs
)
183 def ClearTools(self
, *_args
, **_kwargs
):
184 val
= apply(stattoolc
.wxToolBar_ClearTools
,(self
,) + _args
, _kwargs
)
186 def AddTool(self
, *_args
, **_kwargs
):
187 val
= apply(stattoolc
.wxToolBar_AddTool
,(self
,) + _args
, _kwargs
)
188 if val
: val
= wxToolBarToolPtr(val
)
190 def AddSimpleTool(self
, *_args
, **_kwargs
):
191 val
= apply(stattoolc
.wxToolBar_AddSimpleTool
,(self
,) + _args
, _kwargs
)
192 if val
: val
= wxToolBarToolPtr(val
)
194 def EnableTool(self
, *_args
, **_kwargs
):
195 val
= apply(stattoolc
.wxToolBar_EnableTool
,(self
,) + _args
, _kwargs
)
197 def FindToolForPosition(self
, *_args
, **_kwargs
):
198 val
= apply(stattoolc
.wxToolBar_FindToolForPosition
,(self
,) + _args
, _kwargs
)
199 if val
: val
= wxToolBarToolPtr(val
)
201 def GetToolSize(self
, *_args
, **_kwargs
):
202 val
= apply(stattoolc
.wxToolBar_GetToolSize
,(self
,) + _args
, _kwargs
)
203 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
205 def GetToolBitmapSize(self
, *_args
, **_kwargs
):
206 val
= apply(stattoolc
.wxToolBar_GetToolBitmapSize
,(self
,) + _args
, _kwargs
)
207 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
209 def SetToolBitmapSize(self
, *_args
, **_kwargs
):
210 val
= apply(stattoolc
.wxToolBar_SetToolBitmapSize
,(self
,) + _args
, _kwargs
)
212 def GetToolMargins(self
, *_args
, **_kwargs
):
213 val
= apply(stattoolc
.wxToolBar_GetToolMargins
,(self
,) + _args
, _kwargs
)
214 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
216 def GetMaxSize(self
, *_args
, **_kwargs
):
217 val
= apply(stattoolc
.wxToolBar_GetMaxSize
,(self
,) + _args
, _kwargs
)
218 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
220 def GetToolEnabled(self
, *_args
, **_kwargs
):
221 val
= apply(stattoolc
.wxToolBar_GetToolEnabled
,(self
,) + _args
, _kwargs
)
223 def GetToolLongHelp(self
, *_args
, **_kwargs
):
224 val
= apply(stattoolc
.wxToolBar_GetToolLongHelp
,(self
,) + _args
, _kwargs
)
226 def GetToolPacking(self
, *_args
, **_kwargs
):
227 val
= apply(stattoolc
.wxToolBar_GetToolPacking
,(self
,) + _args
, _kwargs
)
229 def GetToolSeparation(self
, *_args
, **_kwargs
):
230 val
= apply(stattoolc
.wxToolBar_GetToolSeparation
,(self
,) + _args
, _kwargs
)
232 def GetToolShortHelp(self
, *_args
, **_kwargs
):
233 val
= apply(stattoolc
.wxToolBar_GetToolShortHelp
,(self
,) + _args
, _kwargs
)
235 def GetToolState(self
, *_args
, **_kwargs
):
236 val
= apply(stattoolc
.wxToolBar_GetToolState
,(self
,) + _args
, _kwargs
)
238 def Realize(self
, *_args
, **_kwargs
):
239 val
= apply(stattoolc
.wxToolBar_Realize
,(self
,) + _args
, _kwargs
)
241 def SetToolLongHelp(self
, *_args
, **_kwargs
):
242 val
= apply(stattoolc
.wxToolBar_SetToolLongHelp
,(self
,) + _args
, _kwargs
)
244 def SetToolShortHelp(self
, *_args
, **_kwargs
):
245 val
= apply(stattoolc
.wxToolBar_SetToolShortHelp
,(self
,) + _args
, _kwargs
)
247 def SetMargins(self
, *_args
, **_kwargs
):
248 val
= apply(stattoolc
.wxToolBar_SetMargins
,(self
,) + _args
, _kwargs
)
250 def SetToolPacking(self
, *_args
, **_kwargs
):
251 val
= apply(stattoolc
.wxToolBar_SetToolPacking
,(self
,) + _args
, _kwargs
)
253 def SetToolSeparation(self
, *_args
, **_kwargs
):
254 val
= apply(stattoolc
.wxToolBar_SetToolSeparation
,(self
,) + _args
, _kwargs
)
256 def ToggleTool(self
, *_args
, **_kwargs
):
257 val
= apply(stattoolc
.wxToolBar_ToggleTool
,(self
,) + _args
, _kwargs
)
259 def SetToggle(self
, *_args
, **_kwargs
):
260 val
= apply(stattoolc
.wxToolBar_SetToggle
,(self
,) + _args
, _kwargs
)
262 def SetMaxRowsCols(self
, *_args
, **_kwargs
):
263 val
= apply(stattoolc
.wxToolBar_SetMaxRowsCols
,(self
,) + _args
, _kwargs
)
265 def GetMaxRows(self
, *_args
, **_kwargs
):
266 val
= apply(stattoolc
.wxToolBar_GetMaxRows
,(self
,) + _args
, _kwargs
)
268 def GetMaxCols(self
, *_args
, **_kwargs
):
269 val
= apply(stattoolc
.wxToolBar_GetMaxCols
,(self
,) + _args
, _kwargs
)
272 return "<C wxToolBar instance at %s>" % (self
.this
,)
273 class wxToolBar(wxToolBarPtr
):
274 def __init__(self
,*_args
,**_kwargs
):
275 self
.this
= apply(stattoolc
.new_wxToolBar
,_args
,_kwargs
)
277 wx
._StdWindowCallbacks
(self
)
284 #-------------- FUNCTION WRAPPERS ------------------
288 #-------------- VARIABLE WRAPPERS ------------------