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