]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/gtk/stattool.py
Added missing CreateManifest() to initialisation
[wxWidgets.git] / wxPython / src / gtk / stattool.py
CommitLineData
9c039d08
RD
1# This file was created automatically by SWIG.
2import stattoolc
3
4from misc import *
5
6from windows import *
7
8from gdi import *
9
a323d3bd
RD
10from fonts import *
11
b1462dfa
RD
12from clip_dnd import *
13
9c039d08
RD
14from controls import *
15
16from events import *
b8b8dda7 17import wx
a323d3bd 18wxITEM_NORMAL = 0 # predeclare this since wx isn't fully imported yet
9c039d08
RD
19class wxStatusBarPtr(wxWindowPtr):
20 def __init__(self,this):
21 self.this = this
22 self.thisown = 0
aa2a5b86
RD
23 def Create(self, *_args, **_kwargs):
24 val = apply(stattoolc.wxStatusBar_Create,(self,) + _args, _kwargs)
25 return val
1d99702e
RD
26 def GetFieldRect(self, *_args, **_kwargs):
27 val = apply(stattoolc.wxStatusBar_GetFieldRect,(self,) + _args, _kwargs)
28 if val: val = wxRectPtr(val) ; val.thisown = 1
9c039d08 29 return val
1d99702e
RD
30 def GetFieldsCount(self, *_args, **_kwargs):
31 val = apply(stattoolc.wxStatusBar_GetFieldsCount,(self,) + _args, _kwargs)
9c039d08 32 return val
1d99702e
RD
33 def GetStatusText(self, *_args, **_kwargs):
34 val = apply(stattoolc.wxStatusBar_GetStatusText,(self,) + _args, _kwargs)
9c039d08 35 return val
26b9cf27
RD
36 def GetBorderX(self, *_args, **_kwargs):
37 val = apply(stattoolc.wxStatusBar_GetBorderX,(self,) + _args, _kwargs)
9c039d08 38 return val
26b9cf27
RD
39 def GetBorderY(self, *_args, **_kwargs):
40 val = apply(stattoolc.wxStatusBar_GetBorderY,(self,) + _args, _kwargs)
9c039d08 41 return val
1d99702e
RD
42 def SetFieldsCount(self, *_args, **_kwargs):
43 val = apply(stattoolc.wxStatusBar_SetFieldsCount,(self,) + _args, _kwargs)
9c039d08 44 return val
1d99702e
RD
45 def SetStatusText(self, *_args, **_kwargs):
46 val = apply(stattoolc.wxStatusBar_SetStatusText,(self,) + _args, _kwargs)
9c039d08 47 return val
1d99702e
RD
48 def SetStatusWidths(self, *_args, **_kwargs):
49 val = apply(stattoolc.wxStatusBar_SetStatusWidths,(self,) + _args, _kwargs)
9c039d08 50 return val
26b9cf27
RD
51 def SetMinHeight(self, *_args, **_kwargs):
52 val = apply(stattoolc.wxStatusBar_SetMinHeight,(self,) + _args, _kwargs)
53 return val
9c039d08 54 def __repr__(self):
1d99702e 55 return "<C wxStatusBar instance at %s>" % (self.this,)
9c039d08 56class wxStatusBar(wxStatusBarPtr):
1d99702e
RD
57 def __init__(self,*_args,**_kwargs):
58 self.this = apply(stattoolc.new_wxStatusBar,_args,_kwargs)
9c039d08 59 self.thisown = 1
0220cbc1 60 self._setOORInfo(self)
9c039d08
RD
61
62
63
aa2a5b86
RD
64def wxPreStatusBar(*_args,**_kwargs):
65 val = wxStatusBarPtr(apply(stattoolc.new_wxPreStatusBar,_args,_kwargs))
66 val.thisown = 1
17c0e08c 67 val._setOORInfo(val)
aa2a5b86
RD
68 return val
69
9c039d08 70
9df61a29 71class wxToolBarToolBasePtr(wxObjectPtr):
9c039d08
RD
72 def __init__(self,this):
73 self.this = this
74 self.thisown = 0
9b3d3bc4
RD
75 def Destroy(self, *_args, **_kwargs):
76 val = apply(stattoolc.wxToolBarToolBase_Destroy,(self,) + _args, _kwargs)
9c039d08 77 return val
9b3d3bc4
RD
78 def GetId(self, *_args, **_kwargs):
79 val = apply(stattoolc.wxToolBarToolBase_GetId,(self,) + _args, _kwargs)
9c039d08 80 return val
6999b0d8 81 def GetControl(self, *_args, **_kwargs):
9b3d3bc4 82 val = apply(stattoolc.wxToolBarToolBase_GetControl,(self,) + _args, _kwargs)
6999b0d8 83 return val
9b3d3bc4
RD
84 def GetToolBar(self, *_args, **_kwargs):
85 val = apply(stattoolc.wxToolBarToolBase_GetToolBar,(self,) + _args, _kwargs)
9b3d3bc4
RD
86 return val
87 def IsButton(self, *_args, **_kwargs):
88 val = apply(stattoolc.wxToolBarToolBase_IsButton,(self,) + _args, _kwargs)
89 return val
90 def IsControl(self, *_args, **_kwargs):
91 val = apply(stattoolc.wxToolBarToolBase_IsControl,(self,) + _args, _kwargs)
92 return val
93 def IsSeparator(self, *_args, **_kwargs):
94 val = apply(stattoolc.wxToolBarToolBase_IsSeparator,(self,) + _args, _kwargs)
95 return val
96 def GetStyle(self, *_args, **_kwargs):
97 val = apply(stattoolc.wxToolBarToolBase_GetStyle,(self,) + _args, _kwargs)
98 return val
be86ffe3
RD
99 def GetKind(self, *_args, **_kwargs):
100 val = apply(stattoolc.wxToolBarToolBase_GetKind,(self,) + _args, _kwargs)
101 return val
9b3d3bc4
RD
102 def IsEnabled(self, *_args, **_kwargs):
103 val = apply(stattoolc.wxToolBarToolBase_IsEnabled,(self,) + _args, _kwargs)
104 return val
105 def IsToggled(self, *_args, **_kwargs):
106 val = apply(stattoolc.wxToolBarToolBase_IsToggled,(self,) + _args, _kwargs)
107 return val
108 def CanBeToggled(self, *_args, **_kwargs):
109 val = apply(stattoolc.wxToolBarToolBase_CanBeToggled,(self,) + _args, _kwargs)
110 return val
f0972d1e
RD
111 def GetNormalBitmap(self, *_args, **_kwargs):
112 val = apply(stattoolc.wxToolBarToolBase_GetNormalBitmap,(self,) + _args, _kwargs)
113 if val: val = wxBitmapPtr(val)
9b3d3bc4 114 return val
f0972d1e
RD
115 def GetDisabledBitmap(self, *_args, **_kwargs):
116 val = apply(stattoolc.wxToolBarToolBase_GetDisabledBitmap,(self,) + _args, _kwargs)
117 if val: val = wxBitmapPtr(val)
9b3d3bc4
RD
118 return val
119 def GetBitmap(self, *_args, **_kwargs):
120 val = apply(stattoolc.wxToolBarToolBase_GetBitmap,(self,) + _args, _kwargs)
3e212503 121 if val: val = wxBitmapPtr(val) ; val.thisown = 1
9b3d3bc4 122 return val
f0972d1e
RD
123 def GetLabel(self, *_args, **_kwargs):
124 val = apply(stattoolc.wxToolBarToolBase_GetLabel,(self,) + _args, _kwargs)
125 return val
9b3d3bc4
RD
126 def GetShortHelp(self, *_args, **_kwargs):
127 val = apply(stattoolc.wxToolBarToolBase_GetShortHelp,(self,) + _args, _kwargs)
128 return val
129 def GetLongHelp(self, *_args, **_kwargs):
130 val = apply(stattoolc.wxToolBarToolBase_GetLongHelp,(self,) + _args, _kwargs)
131 return val
132 def Enable(self, *_args, **_kwargs):
133 val = apply(stattoolc.wxToolBarToolBase_Enable,(self,) + _args, _kwargs)
134 return val
135 def Toggle(self, *_args, **_kwargs):
136 val = apply(stattoolc.wxToolBarToolBase_Toggle,(self,) + _args, _kwargs)
137 return val
138 def SetToggle(self, *_args, **_kwargs):
139 val = apply(stattoolc.wxToolBarToolBase_SetToggle,(self,) + _args, _kwargs)
140 return val
141 def SetShortHelp(self, *_args, **_kwargs):
142 val = apply(stattoolc.wxToolBarToolBase_SetShortHelp,(self,) + _args, _kwargs)
143 return val
144 def SetLongHelp(self, *_args, **_kwargs):
145 val = apply(stattoolc.wxToolBarToolBase_SetLongHelp,(self,) + _args, _kwargs)
146 return val
f0972d1e
RD
147 def SetNormalBitmap(self, *_args, **_kwargs):
148 val = apply(stattoolc.wxToolBarToolBase_SetNormalBitmap,(self,) + _args, _kwargs)
9b3d3bc4 149 return val
f0972d1e
RD
150 def SetDisabledBitmap(self, *_args, **_kwargs):
151 val = apply(stattoolc.wxToolBarToolBase_SetDisabledBitmap,(self,) + _args, _kwargs)
152 return val
153 def SetLabel(self, *_args, **_kwargs):
154 val = apply(stattoolc.wxToolBarToolBase_SetLabel,(self,) + _args, _kwargs)
9b3d3bc4
RD
155 return val
156 def Detach(self, *_args, **_kwargs):
157 val = apply(stattoolc.wxToolBarToolBase_Detach,(self,) + _args, _kwargs)
158 return val
159 def Attach(self, *_args, **_kwargs):
160 val = apply(stattoolc.wxToolBarToolBase_Attach,(self,) + _args, _kwargs)
161 return val
162 def GetClientData(self, *_args, **_kwargs):
163 val = apply(stattoolc.wxToolBarToolBase_GetClientData,(self,) + _args, _kwargs)
164 return val
165 def SetClientData(self, *_args, **_kwargs):
166 val = apply(stattoolc.wxToolBarToolBase_SetClientData,(self,) + _args, _kwargs)
167 return val
9c039d08 168 def __repr__(self):
9b3d3bc4 169 return "<C wxToolBarToolBase instance at %s>" % (self.this,)
f0972d1e
RD
170
171 GetBitmap1 = GetNormalBitmap
172 GetBitmap2 = GetDisabledBitmap
173 SetBitmap1 = SetNormalBitmap
174 SetBitmap2 = SetDisabledBitmap
175
9b3d3bc4
RD
176class wxToolBarToolBase(wxToolBarToolBasePtr):
177 def __init__(self,this):
178 self.this = this
9c039d08
RD
179
180
181
182
9b3d3bc4 183class wxToolBarBasePtr(wxControlPtr):
9c039d08
RD
184 def __init__(self,this):
185 self.this = this
186 self.thisown = 0
a323d3bd
RD
187 def DoAddTool(self, *_args, **_kwargs):
188 val = apply(stattoolc.wxToolBarBase_DoAddTool,(self,) + _args, _kwargs)
be86ffe3 189 return val
9b3d3bc4
RD
190 def InsertTool(self, *_args, **_kwargs):
191 val = apply(stattoolc.wxToolBarBase_InsertTool,(self,) + _args, _kwargs)
6999b0d8 192 return val
9b3d3bc4
RD
193 def AddControl(self, *_args, **_kwargs):
194 val = apply(stattoolc.wxToolBarBase_AddControl,(self,) + _args, _kwargs)
9c039d08 195 return val
9b3d3bc4
RD
196 def InsertControl(self, *_args, **_kwargs):
197 val = apply(stattoolc.wxToolBarBase_InsertControl,(self,) + _args, _kwargs)
9c039d08 198 return val
9b3d3bc4
RD
199 def AddSeparator(self, *_args, **_kwargs):
200 val = apply(stattoolc.wxToolBarBase_AddSeparator,(self,) + _args, _kwargs)
9c039d08 201 return val
9b3d3bc4
RD
202 def InsertSeparator(self, *_args, **_kwargs):
203 val = apply(stattoolc.wxToolBarBase_InsertSeparator,(self,) + _args, _kwargs)
9c039d08 204 return val
9b3d3bc4
RD
205 def RemoveTool(self, *_args, **_kwargs):
206 val = apply(stattoolc.wxToolBarBase_RemoveTool,(self,) + _args, _kwargs)
9c039d08 207 return val
9b3d3bc4
RD
208 def DeleteToolByPos(self, *_args, **_kwargs):
209 val = apply(stattoolc.wxToolBarBase_DeleteToolByPos,(self,) + _args, _kwargs)
be4d9c1f 210 return val
9b3d3bc4
RD
211 def DeleteTool(self, *_args, **_kwargs):
212 val = apply(stattoolc.wxToolBarBase_DeleteTool,(self,) + _args, _kwargs)
6999b0d8 213 return val
9b3d3bc4
RD
214 def ClearTools(self, *_args, **_kwargs):
215 val = apply(stattoolc.wxToolBarBase_ClearTools,(self,) + _args, _kwargs)
9c039d08 216 return val
9b3d3bc4
RD
217 def Realize(self, *_args, **_kwargs):
218 val = apply(stattoolc.wxToolBarBase_Realize,(self,) + _args, _kwargs)
9c039d08 219 return val
9b3d3bc4
RD
220 def EnableTool(self, *_args, **_kwargs):
221 val = apply(stattoolc.wxToolBarBase_EnableTool,(self,) + _args, _kwargs)
9c039d08 222 return val
9b3d3bc4
RD
223 def ToggleTool(self, *_args, **_kwargs):
224 val = apply(stattoolc.wxToolBarBase_ToggleTool,(self,) + _args, _kwargs)
9c039d08 225 return val
9b3d3bc4
RD
226 def SetToggle(self, *_args, **_kwargs):
227 val = apply(stattoolc.wxToolBarBase_SetToggle,(self,) + _args, _kwargs)
9c039d08 228 return val
9b3d3bc4
RD
229 def GetToolClientData(self, *_args, **_kwargs):
230 val = apply(stattoolc.wxToolBarBase_GetToolClientData,(self,) + _args, _kwargs)
231 return val
232 def SetToolClientData(self, *_args, **_kwargs):
233 val = apply(stattoolc.wxToolBarBase_SetToolClientData,(self,) + _args, _kwargs)
9c039d08 234 return val
1d99702e 235 def GetToolState(self, *_args, **_kwargs):
9b3d3bc4 236 val = apply(stattoolc.wxToolBarBase_GetToolState,(self,) + _args, _kwargs)
9c039d08 237 return val
9b3d3bc4
RD
238 def GetToolEnabled(self, *_args, **_kwargs):
239 val = apply(stattoolc.wxToolBarBase_GetToolEnabled,(self,) + _args, _kwargs)
240 return val
241 def SetToolShortHelp(self, *_args, **_kwargs):
242 val = apply(stattoolc.wxToolBarBase_SetToolShortHelp,(self,) + _args, _kwargs)
243 return val
244 def GetToolShortHelp(self, *_args, **_kwargs):
245 val = apply(stattoolc.wxToolBarBase_GetToolShortHelp,(self,) + _args, _kwargs)
9c039d08 246 return val
1d99702e 247 def SetToolLongHelp(self, *_args, **_kwargs):
9b3d3bc4 248 val = apply(stattoolc.wxToolBarBase_SetToolLongHelp,(self,) + _args, _kwargs)
9c039d08 249 return val
9b3d3bc4
RD
250 def GetToolLongHelp(self, *_args, **_kwargs):
251 val = apply(stattoolc.wxToolBarBase_GetToolLongHelp,(self,) + _args, _kwargs)
252 return val
253 def SetMarginsXY(self, *_args, **_kwargs):
254 val = apply(stattoolc.wxToolBarBase_SetMarginsXY,(self,) + _args, _kwargs)
d5c9047a 255 return val
1d99702e 256 def SetMargins(self, *_args, **_kwargs):
9b3d3bc4 257 val = apply(stattoolc.wxToolBarBase_SetMargins,(self,) + _args, _kwargs)
d5c9047a 258 return val
1d99702e 259 def SetToolPacking(self, *_args, **_kwargs):
9b3d3bc4 260 val = apply(stattoolc.wxToolBarBase_SetToolPacking,(self,) + _args, _kwargs)
9c039d08 261 return val
1d99702e 262 def SetToolSeparation(self, *_args, **_kwargs):
9b3d3bc4 263 val = apply(stattoolc.wxToolBarBase_SetToolSeparation,(self,) + _args, _kwargs)
9c039d08 264 return val
9b3d3bc4
RD
265 def GetToolMargins(self, *_args, **_kwargs):
266 val = apply(stattoolc.wxToolBarBase_GetToolMargins,(self,) + _args, _kwargs)
267 if val: val = wxSizePtr(val) ; val.thisown = 1
9c039d08 268 return val
5e40f9dd
RD
269 def GetMargins(self, *_args, **_kwargs):
270 val = apply(stattoolc.wxToolBarBase_GetMargins,(self,) + _args, _kwargs)
271 if val: val = wxSizePtr(val) ; val.thisown = 1
272 return val
9b3d3bc4
RD
273 def GetToolPacking(self, *_args, **_kwargs):
274 val = apply(stattoolc.wxToolBarBase_GetToolPacking,(self,) + _args, _kwargs)
275 return val
276 def GetToolSeparation(self, *_args, **_kwargs):
277 val = apply(stattoolc.wxToolBarBase_GetToolSeparation,(self,) + _args, _kwargs)
278 return val
279 def SetRows(self, *_args, **_kwargs):
280 val = apply(stattoolc.wxToolBarBase_SetRows,(self,) + _args, _kwargs)
6999b0d8
RD
281 return val
282 def SetMaxRowsCols(self, *_args, **_kwargs):
9b3d3bc4 283 val = apply(stattoolc.wxToolBarBase_SetMaxRowsCols,(self,) + _args, _kwargs)
6999b0d8
RD
284 return val
285 def GetMaxRows(self, *_args, **_kwargs):
9b3d3bc4 286 val = apply(stattoolc.wxToolBarBase_GetMaxRows,(self,) + _args, _kwargs)
6999b0d8
RD
287 return val
288 def GetMaxCols(self, *_args, **_kwargs):
9b3d3bc4
RD
289 val = apply(stattoolc.wxToolBarBase_GetMaxCols,(self,) + _args, _kwargs)
290 return val
291 def SetToolBitmapSize(self, *_args, **_kwargs):
292 val = apply(stattoolc.wxToolBarBase_SetToolBitmapSize,(self,) + _args, _kwargs)
293 return val
294 def GetToolBitmapSize(self, *_args, **_kwargs):
295 val = apply(stattoolc.wxToolBarBase_GetToolBitmapSize,(self,) + _args, _kwargs)
296 if val: val = wxSizePtr(val) ; val.thisown = 1
297 return val
298 def GetToolSize(self, *_args, **_kwargs):
299 val = apply(stattoolc.wxToolBarBase_GetToolSize,(self,) + _args, _kwargs)
300 if val: val = wxSizePtr(val) ; val.thisown = 1
301 return val
f0972d1e
RD
302 def FindToolForPosition(self, *_args, **_kwargs):
303 val = apply(stattoolc.wxToolBarBase_FindToolForPosition,(self,) + _args, _kwargs)
304 return val
305 def IsVertical(self, *_args, **_kwargs):
306 val = apply(stattoolc.wxToolBarBase_IsVertical,(self,) + _args, _kwargs)
307 return val
9b3d3bc4
RD
308 def __repr__(self):
309 return "<C wxToolBarBase instance at %s>" % (self.this,)
a323d3bd
RD
310
311 # These match the original Add methods for this class, kept for
312 # backwards compatibility with versions < 2.3.3.
313
314
315 def AddTool(self, id, bitmap,
316 pushedBitmap = wxNullBitmap,
317 isToggle = 0,
318 clientData = None,
319 shortHelpString = '',
320 longHelpString = '') :
321 '''Old style method to add a tool to the toolbar.'''
322 kind = wx.wxITEM_NORMAL
323 if isToggle: kind = wx.wxITEM_CHECK
324 return self.DoAddTool(id, '', bitmap, pushedBitmap, kind,
325 shortHelpString, longHelpString, clientData)
326
327 def AddSimpleTool(self, id, bitmap,
328 shortHelpString = '',
329 longHelpString = '',
330 isToggle = 0):
331 '''Old style method to add a tool to the toolbar.'''
332 kind = wx.wxITEM_NORMAL
333 if isToggle: kind = wx.wxITEM_CHECK
334 return self.DoAddTool(id, '', bitmap, wxNullBitmap, kind,
335 shortHelpString, longHelpString, None)
336
337 def InsertTool(self, pos, id, bitmap,
338 pushedBitmap = wxNullBitmap,
339 isToggle = 0,
340 clientData = None,
341 shortHelpString = '',
342 longHelpString = ''):
343 '''Old style method to insert a tool in the toolbar.'''
344 kind = wx.wxITEM_NORMAL
345 if isToggle: kind = wx.wxITEM_CHECK
346 return self.DoInsertTool(pos, id, '', bitmap, pushedBitmap, kind,
347 shortHelpString, longHelpString, clientData)
348
349 def InsertSimpleTool(self, pos, id, bitmap,
350 shortHelpString = '',
351 longHelpString = '',
352 isToggle = 0):
353 '''Old style method to insert a tool in the toolbar.'''
354 kind = wx.wxITEM_NORMAL
355 if isToggle: kind = wx.wxITEM_CHECK
356 return self.DoInsertTool(pos, id, '', bitmap, wxNullBitmap, kind,
357 shortHelpString, longHelpString, None)
358
359
360 # The following are the new toolbar Add methods starting with
361 # 2.3.3. They are renamed to have 'Label' in the name so as to be
362 # able to keep backwards compatibility with using the above
363 # methods. Eventually these should migrate to be the methods used
364 # primarily and loose the 'Label' in the name...
365
366 def AddLabelTool(self, id, label, bitmap,
367 bmpDisabled = wxNullBitmap,
368 kind = wxITEM_NORMAL,
369 shortHelp = '', longHelp = '',
370 clientData = None):
371 '''
372 The full AddTool() function.
373
374 If bmpDisabled is wxNullBitmap, a shadowed version of the normal bitmap
375 is created and used as the disabled image.
376 '''
377 return self.DoAddTool(id, label, bitmap, bmpDisabled, kind,
378 shortHelp, longHelp, clientData)
379
380
381 def InsertLabelTool(self, pos, id, label, bitmap,
382 bmpDisabled = wxNullBitmap,
383 kind = wxITEM_NORMAL,
384 shortHelp = '', longHelp = '',
385 clientData = None):
386 '''
387 Insert the new tool at the given position, if pos == GetToolsCount(), it
388 is equivalent to AddTool()
389 '''
390 return self.DoInsertTool(pos, id, label, bitmap, bmpDisabled, kind,
391 shortHelp, longHelp, clientData)
392
393 def AddCheckLabelTool(self, id, label, bitmap,
394 bmpDisabled = wxNullBitmap,
395 shortHelp = '', longHelp = '',
396 clientData = None):
397 '''Add a check tool, i.e. a tool which can be toggled'''
398 return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.wxITEM_CHECK,
399 shortHelp, longHelp, clientData)
400
401 def AddRadioLabelTool(self, id, label, bitmap,
402 bmpDisabled = wxNullBitmap,
403 shortHelp = '', longHelp = '',
404 clientData = None):
405 '''
406 Add a radio tool, i.e. a tool which can be toggled and releases any
407 other toggled radio tools in the same group when it happens
408 '''
409 return self.DoAddTool(id, label, bitmap, bmpDisabled, wx.wxITEM_RADIO,
410 shortHelp, longHelp, clientData)
411
412
413 # For consistency with the backwards compatible methods above, here are
414 # some non-'Label' versions of the Check and Radio methods
415 def AddCheckTool(self, id, bitmap,
416 bmpDisabled = wxNullBitmap,
417 shortHelp = '', longHelp = '',
418 clientData = None):
419 '''Add a check tool, i.e. a tool which can be toggled'''
420 return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.wxITEM_CHECK,
421 shortHelp, longHelp, clientData)
422
423 def AddRadioTool(self, id, bitmap,
424 bmpDisabled = wxNullBitmap,
425 shortHelp = '', longHelp = '',
426 clientData = None):
427 '''
428 Add a radio tool, i.e. a tool which can be toggled and releases any
429 other toggled radio tools in the same group when it happens
430 '''
431 return self.DoAddTool(id, '', bitmap, bmpDisabled, wx.wxITEM_RADIO,
432 shortHelp, longHelp, clientData)
433
9b3d3bc4
RD
434class wxToolBarBase(wxToolBarBasePtr):
435 def __init__(self,this):
436 self.this = this
437
438
439
440
441class wxToolBarPtr(wxToolBarBasePtr):
442 def __init__(self,this):
443 self.this = this
444 self.thisown = 0
aa2a5b86
RD
445 def Create(self, *_args, **_kwargs):
446 val = apply(stattoolc.wxToolBar_Create,(self,) + _args, _kwargs)
447 return val
9b3d3bc4
RD
448 def FindToolForPosition(self, *_args, **_kwargs):
449 val = apply(stattoolc.wxToolBar_FindToolForPosition,(self,) + _args, _kwargs)
6999b0d8 450 return val
9c039d08 451 def __repr__(self):
1d99702e 452 return "<C wxToolBar instance at %s>" % (self.this,)
9c039d08 453class wxToolBar(wxToolBarPtr):
1d99702e
RD
454 def __init__(self,*_args,**_kwargs):
455 self.this = apply(stattoolc.new_wxToolBar,_args,_kwargs)
9c039d08 456 self.thisown = 1
0220cbc1 457 self._setOORInfo(self)
9c039d08
RD
458
459
460
aa2a5b86
RD
461def wxPreToolBar(*_args,**_kwargs):
462 val = wxToolBarPtr(apply(stattoolc.new_wxPreToolBar,_args,_kwargs))
463 val.thisown = 1
17c0e08c 464 val._setOORInfo(val)
aa2a5b86
RD
465 return val
466
9c039d08 467
9b3d3bc4
RD
468class wxToolBarSimplePtr(wxToolBarBasePtr):
469 def __init__(self,this):
470 self.this = this
471 self.thisown = 0
aa2a5b86
RD
472 def Create(self, *_args, **_kwargs):
473 val = apply(stattoolc.wxToolBarSimple_Create,(self,) + _args, _kwargs)
474 return val
9b3d3bc4
RD
475 def FindToolForPosition(self, *_args, **_kwargs):
476 val = apply(stattoolc.wxToolBarSimple_FindToolForPosition,(self,) + _args, _kwargs)
9b3d3bc4
RD
477 return val
478 def __repr__(self):
479 return "<C wxToolBarSimple instance at %s>" % (self.this,)
480class wxToolBarSimple(wxToolBarSimplePtr):
481 def __init__(self,*_args,**_kwargs):
482 self.this = apply(stattoolc.new_wxToolBarSimple,_args,_kwargs)
483 self.thisown = 1
0220cbc1 484 self._setOORInfo(self)
9b3d3bc4
RD
485
486
487
aa2a5b86
RD
488def wxPreToolBarSimple(*_args,**_kwargs):
489 val = wxToolBarSimplePtr(apply(stattoolc.new_wxPreToolBarSimple,_args,_kwargs))
490 val.thisown = 1
17c0e08c 491 val._setOORInfo(val)
aa2a5b86
RD
492 return val
493
9b3d3bc4 494
9c039d08
RD
495
496
497#-------------- FUNCTION WRAPPERS ------------------
498
499
500
501#-------------- VARIABLE WRAPPERS ------------------
502
9b3d3bc4
RD
503wxTOOL_STYLE_BUTTON = stattoolc.wxTOOL_STYLE_BUTTON
504wxTOOL_STYLE_SEPARATOR = stattoolc.wxTOOL_STYLE_SEPARATOR
505wxTOOL_STYLE_CONTROL = stattoolc.wxTOOL_STYLE_CONTROL