]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/windows.py
wxPython 2.1b1:
[wxWidgets.git] / utils / wxPython / src / gtk / windows.py
1 # This file was created automatically by SWIG.
2 import windowsc
3
4 from misc import *
5
6 from gdi import *
7 import wx
8
9 def wxDLG_PNT(win, point_or_x, y=None):
10 if y is None:
11 return win.ConvertDialogPointToPixels(point_or_x)
12 else:
13 return win.ConvertDialogPointToPixels(wxPoint(point_or_x, y))
14
15 def wxDLG_SZE(win, size_width, height=None):
16 if height is None:
17 return win.ConvertDialogSizeToPixels(size_width)
18 else:
19 return win.ConvertDialogSizeToPixels(wxSize(size_width, height))
20
21 class wxEvtHandlerPtr :
22 def __init__(self,this):
23 self.this = this
24 self.thisown = 0
25 def ProcessEvent(self,arg0):
26 val = windowsc.wxEvtHandler_ProcessEvent(self.this,arg0.this)
27 return val
28 def Connect(self,arg0,arg1,arg2,arg3):
29 val = windowsc.wxEvtHandler_Connect(self.this,arg0,arg1,arg2,arg3)
30 return val
31 def __repr__(self):
32 return "<C wxEvtHandler instance>"
33 class wxEvtHandler(wxEvtHandlerPtr):
34 def __init__(self,this):
35 self.this = this
36
37
38
39
40 class wxWindowPtr(wxEvtHandlerPtr):
41 def __init__(self,this):
42 self.this = this
43 self.thisown = 0
44 def CaptureMouse(self):
45 val = windowsc.wxWindow_CaptureMouse(self.this)
46 return val
47 def Center(self,*args):
48 val = apply(windowsc.wxWindow_Center,(self.this,)+args)
49 return val
50 def Centre(self,*args):
51 val = apply(windowsc.wxWindow_Centre,(self.this,)+args)
52 return val
53 def CentreOnParent(self,*args):
54 val = apply(windowsc.wxWindow_CentreOnParent,(self.this,)+args)
55 return val
56 def CenterOnParent(self,*args):
57 val = apply(windowsc.wxWindow_CenterOnParent,(self.this,)+args)
58 return val
59 def ClientToScreenXY(self,arg0,arg1):
60 val = windowsc.wxWindow_ClientToScreenXY(self.this,arg0,arg1)
61 return val
62 def ClientToScreen(self,arg0):
63 val = windowsc.wxWindow_ClientToScreen(self.this,arg0.this)
64 val = wxPointPtr(val)
65 val.thisown = 1
66 return val
67 def Close(self,*args):
68 val = apply(windowsc.wxWindow_Close,(self.this,)+args)
69 return val
70 def Destroy(self):
71 val = windowsc.wxWindow_Destroy(self.this)
72 return val
73 def DestroyChildren(self):
74 val = windowsc.wxWindow_DestroyChildren(self.this)
75 return val
76 def Enable(self,arg0):
77 val = windowsc.wxWindow_Enable(self.this,arg0)
78 return val
79 def FindWindowById(self,arg0):
80 val = windowsc.wxWindow_FindWindowById(self.this,arg0)
81 val = wxWindowPtr(val)
82 return val
83 def FindWindowByName(self,arg0):
84 val = windowsc.wxWindow_FindWindowByName(self.this,arg0)
85 val = wxWindowPtr(val)
86 return val
87 def Fit(self):
88 val = windowsc.wxWindow_Fit(self.this)
89 return val
90 def GetBackgroundColour(self):
91 val = windowsc.wxWindow_GetBackgroundColour(self.this)
92 val = wxColourPtr(val)
93 val.thisown = 1
94 return val
95 def GetCharHeight(self):
96 val = windowsc.wxWindow_GetCharHeight(self.this)
97 return val
98 def GetCharWidth(self):
99 val = windowsc.wxWindow_GetCharWidth(self.this)
100 return val
101 def GetClientSizeTuple(self):
102 val = windowsc.wxWindow_GetClientSizeTuple(self.this)
103 return val
104 def GetClientSize(self):
105 val = windowsc.wxWindow_GetClientSize(self.this)
106 val = wxSizePtr(val)
107 val.thisown = 1
108 return val
109 def GetConstraints(self):
110 val = windowsc.wxWindow_GetConstraints(self.this)
111 val = wxLayoutConstraintsPtr(val)
112 return val
113 def GetFont(self):
114 val = windowsc.wxWindow_GetFont(self.this)
115 val = wxFontPtr(val)
116 return val
117 def GetForegroundColour(self):
118 val = windowsc.wxWindow_GetForegroundColour(self.this)
119 val = wxColourPtr(val)
120 val.thisown = 1
121 return val
122 def GetGrandParent(self):
123 val = windowsc.wxWindow_GetGrandParent(self.this)
124 val = wxWindowPtr(val)
125 return val
126 def GetId(self):
127 val = windowsc.wxWindow_GetId(self.this)
128 return val
129 def GetLabel(self):
130 val = windowsc.wxWindow_GetLabel(self.this)
131 return val
132 def SetLabel(self,arg0):
133 val = windowsc.wxWindow_SetLabel(self.this,arg0)
134 return val
135 def GetName(self):
136 val = windowsc.wxWindow_GetName(self.this)
137 return val
138 def GetParent(self):
139 val = windowsc.wxWindow_GetParent(self.this)
140 val = wxWindowPtr(val)
141 return val
142 def GetPositionTuple(self):
143 val = windowsc.wxWindow_GetPositionTuple(self.this)
144 return val
145 def GetPosition(self):
146 val = windowsc.wxWindow_GetPosition(self.this)
147 val = wxPointPtr(val)
148 val.thisown = 1
149 return val
150 def GetRect(self):
151 val = windowsc.wxWindow_GetRect(self.this)
152 val = wxRectPtr(val)
153 val.thisown = 1
154 return val
155 def GetScrollThumb(self,arg0):
156 val = windowsc.wxWindow_GetScrollThumb(self.this,arg0)
157 return val
158 def GetScrollPos(self,arg0):
159 val = windowsc.wxWindow_GetScrollPos(self.this,arg0)
160 return val
161 def GetScrollRange(self,arg0):
162 val = windowsc.wxWindow_GetScrollRange(self.this,arg0)
163 return val
164 def GetSizeTuple(self):
165 val = windowsc.wxWindow_GetSizeTuple(self.this)
166 return val
167 def GetSize(self):
168 val = windowsc.wxWindow_GetSize(self.this)
169 val = wxSizePtr(val)
170 val.thisown = 1
171 return val
172 def GetTextExtent(self,arg0):
173 val = windowsc.wxWindow_GetTextExtent(self.this,arg0)
174 return val
175 def GetFullTextExtent(self,arg0,*args):
176 argl = map(None,args)
177 try: argl[0] = argl[0].this
178 except: pass
179 args = tuple(argl)
180 val = apply(windowsc.wxWindow_GetFullTextExtent,(self.this,arg0,)+args)
181 return val
182 def GetTitle(self):
183 val = windowsc.wxWindow_GetTitle(self.this)
184 return val
185 def GetUpdateRegion(self):
186 val = windowsc.wxWindow_GetUpdateRegion(self.this)
187 val = wxRegionPtr(val)
188 val.thisown = 1
189 return val
190 def GetWindowStyleFlag(self):
191 val = windowsc.wxWindow_GetWindowStyleFlag(self.this)
192 return val
193 def Hide(self):
194 val = windowsc.wxWindow_Hide(self.this)
195 return val
196 def InitDialog(self):
197 val = windowsc.wxWindow_InitDialog(self.this)
198 return val
199 def IsEnabled(self):
200 val = windowsc.wxWindow_IsEnabled(self.this)
201 return val
202 def IsRetained(self):
203 val = windowsc.wxWindow_IsRetained(self.this)
204 return val
205 def IsShown(self):
206 val = windowsc.wxWindow_IsShown(self.this)
207 return val
208 def IsTopLevel(self):
209 val = windowsc.wxWindow_IsTopLevel(self.this)
210 return val
211 def Layout(self):
212 val = windowsc.wxWindow_Layout(self.this)
213 return val
214 def LoadFromResource(self,arg0,arg1,*args):
215 val = apply(windowsc.wxWindow_LoadFromResource,(self.this,arg0.this,arg1,)+args)
216 return val
217 def Lower(self):
218 val = windowsc.wxWindow_Lower(self.this)
219 return val
220 def MakeModal(self,arg0):
221 val = windowsc.wxWindow_MakeModal(self.this,arg0)
222 return val
223 def MoveXY(self,arg0,arg1):
224 val = windowsc.wxWindow_MoveXY(self.this,arg0,arg1)
225 return val
226 def Move(self,arg0):
227 val = windowsc.wxWindow_Move(self.this,arg0.this)
228 return val
229 def PopupMenuXY(self,arg0,arg1,arg2):
230 val = windowsc.wxWindow_PopupMenuXY(self.this,arg0.this,arg1,arg2)
231 return val
232 def PopupMenu(self,arg0,arg1):
233 val = windowsc.wxWindow_PopupMenu(self.this,arg0.this,arg1.this)
234 return val
235 def Raise(self):
236 val = windowsc.wxWindow_Raise(self.this)
237 return val
238 def Refresh(self,*args):
239 argl = map(None,args)
240 try: argl[1] = argl[1].this
241 except: pass
242 args = tuple(argl)
243 val = apply(windowsc.wxWindow_Refresh,(self.this,)+args)
244 return val
245 def ReleaseMouse(self):
246 val = windowsc.wxWindow_ReleaseMouse(self.this)
247 return val
248 def Reparent(self,arg0):
249 val = windowsc.wxWindow_Reparent(self.this,arg0.this)
250 return val
251 def ScreenToClientXY(self,arg0,arg1):
252 val = windowsc.wxWindow_ScreenToClientXY(self.this,arg0,arg1)
253 return val
254 def ScreenToClient(self,arg0):
255 val = windowsc.wxWindow_ScreenToClient(self.this,arg0.this)
256 val = wxPointPtr(val)
257 val.thisown = 1
258 return val
259 def ScrollWindow(self,arg0,arg1,*args):
260 argl = map(None,args)
261 try: argl[0] = argl[0].this
262 except: pass
263 args = tuple(argl)
264 val = apply(windowsc.wxWindow_ScrollWindow,(self.this,arg0,arg1,)+args)
265 return val
266 def SetAcceleratorTable(self,arg0):
267 val = windowsc.wxWindow_SetAcceleratorTable(self.this,arg0.this)
268 return val
269 def SetAutoLayout(self,arg0):
270 val = windowsc.wxWindow_SetAutoLayout(self.this,arg0)
271 return val
272 def SetBackgroundColour(self,arg0):
273 val = windowsc.wxWindow_SetBackgroundColour(self.this,arg0.this)
274 return val
275 def SetConstraints(self,arg0):
276 val = windowsc.wxWindow_SetConstraints(self.this,arg0.this)
277 return val
278 def SetFocus(self):
279 val = windowsc.wxWindow_SetFocus(self.this)
280 return val
281 def SetFont(self,arg0):
282 val = windowsc.wxWindow_SetFont(self.this,arg0.this)
283 return val
284 def SetForegroundColour(self,arg0):
285 val = windowsc.wxWindow_SetForegroundColour(self.this,arg0.this)
286 return val
287 def SetId(self,arg0):
288 val = windowsc.wxWindow_SetId(self.this,arg0)
289 return val
290 def SetName(self,arg0):
291 val = windowsc.wxWindow_SetName(self.this,arg0)
292 return val
293 def SetScrollbar(self,arg0,arg1,arg2,arg3,*args):
294 val = apply(windowsc.wxWindow_SetScrollbar,(self.this,arg0,arg1,arg2,arg3,)+args)
295 return val
296 def SetScrollPos(self,arg0,arg1,*args):
297 val = apply(windowsc.wxWindow_SetScrollPos,(self.this,arg0,arg1,)+args)
298 return val
299 def SetDimensions(self,arg0,arg1,arg2,arg3,*args):
300 val = apply(windowsc.wxWindow_SetDimensions,(self.this,arg0,arg1,arg2,arg3,)+args)
301 return val
302 def SetSize(self,arg0):
303 val = windowsc.wxWindow_SetSize(self.this,arg0.this)
304 return val
305 def SetPosition(self,arg0):
306 val = windowsc.wxWindow_SetPosition(self.this,arg0.this)
307 return val
308 def SetSizeHints(self,*args):
309 val = apply(windowsc.wxWindow_SetSizeHints,(self.this,)+args)
310 return val
311 def SetClientSizeWH(self,arg0,arg1):
312 val = windowsc.wxWindow_SetClientSizeWH(self.this,arg0,arg1)
313 return val
314 def SetClientSize(self,arg0):
315 val = windowsc.wxWindow_SetClientSize(self.this,arg0.this)
316 return val
317 def SetCursor(self,arg0):
318 val = windowsc.wxWindow_SetCursor(self.this,arg0.this)
319 return val
320 def SetTitle(self,arg0):
321 val = windowsc.wxWindow_SetTitle(self.this,arg0)
322 return val
323 def Show(self,arg0):
324 val = windowsc.wxWindow_Show(self.this,arg0)
325 return val
326 def TransferDataFromWindow(self):
327 val = windowsc.wxWindow_TransferDataFromWindow(self.this)
328 return val
329 def TransferDataToWindow(self):
330 val = windowsc.wxWindow_TransferDataToWindow(self.this)
331 return val
332 def Validate(self):
333 val = windowsc.wxWindow_Validate(self.this)
334 return val
335 def WarpPointer(self,arg0,arg1):
336 val = windowsc.wxWindow_WarpPointer(self.this,arg0,arg1)
337 return val
338 def ConvertDialogPointToPixels(self,arg0):
339 val = windowsc.wxWindow_ConvertDialogPointToPixels(self.this,arg0.this)
340 val = wxPointPtr(val)
341 val.thisown = 1
342 return val
343 def ConvertDialogSizeToPixels(self,arg0):
344 val = windowsc.wxWindow_ConvertDialogSizeToPixels(self.this,arg0.this)
345 val = wxSizePtr(val)
346 val.thisown = 1
347 return val
348 def DLG_PNT(self,arg0):
349 val = windowsc.wxWindow_DLG_PNT(self.this,arg0.this)
350 val = wxPointPtr(val)
351 val.thisown = 1
352 return val
353 def DLG_SZE(self,arg0):
354 val = windowsc.wxWindow_DLG_SZE(self.this,arg0.this)
355 val = wxSizePtr(val)
356 val.thisown = 1
357 return val
358 def ConvertPixelPointToDialog(self,arg0):
359 val = windowsc.wxWindow_ConvertPixelPointToDialog(self.this,arg0.this)
360 val = wxPointPtr(val)
361 val.thisown = 1
362 return val
363 def ConvertPixelSizeToDialog(self,arg0):
364 val = windowsc.wxWindow_ConvertPixelSizeToDialog(self.this,arg0.this)
365 val = wxSizePtr(val)
366 val.thisown = 1
367 return val
368 def SetToolTipString(self,arg0):
369 val = windowsc.wxWindow_SetToolTipString(self.this,arg0)
370 return val
371 def SetToolTip(self,arg0):
372 val = windowsc.wxWindow_SetToolTip(self.this,arg0.this)
373 return val
374 def GetToolTip(self):
375 val = windowsc.wxWindow_GetToolTip(self.this)
376 val = wxToolTipPtr(val)
377 return val
378 def __repr__(self):
379 return "<C wxWindow instance>"
380 class wxWindow(wxWindowPtr):
381 def __init__(self,arg0,arg1,*args) :
382 argl = map(None,args)
383 try: argl[0] = argl[0].this
384 except: pass
385 try: argl[1] = argl[1].this
386 except: pass
387 args = tuple(argl)
388 self.this = apply(windowsc.new_wxWindow,(arg0.this,arg1,)+args)
389 self.thisown = 1
390 wx._StdWindowCallbacks(self)
391
392
393
394
395 class wxPanelPtr(wxWindowPtr):
396 def __init__(self,this):
397 self.this = this
398 self.thisown = 0
399 def InitDialog(self):
400 val = windowsc.wxPanel_InitDialog(self.this)
401 return val
402 def GetDefaultItem(self):
403 val = windowsc.wxPanel_GetDefaultItem(self.this)
404 val = wxButtonPtr(val)
405 return val
406 def SetDefaultItem(self,arg0):
407 val = windowsc.wxPanel_SetDefaultItem(self.this,arg0.this)
408 return val
409 def __repr__(self):
410 return "<C wxPanel instance>"
411
412 def GetDefaultItem(self):
413 import controls
414 val = windowsc.wxPanel_GetDefaultItem(self.this)
415 val = controls.wxButtonPtr(val)
416 return val
417
418 class wxPanel(wxPanelPtr):
419 def __init__(self,arg0,arg1,*args) :
420 argl = map(None,args)
421 try: argl[0] = argl[0].this
422 except: pass
423 try: argl[1] = argl[1].this
424 except: pass
425 args = tuple(argl)
426 self.this = apply(windowsc.new_wxPanel,(arg0.this,arg1,)+args)
427 self.thisown = 1
428 wx._StdWindowCallbacks(self)
429
430
431
432
433 class wxDialogPtr(wxPanelPtr):
434 def __init__(self,this):
435 self.this = this
436 self.thisown = 0
437 def Centre(self,*args):
438 val = apply(windowsc.wxDialog_Centre,(self.this,)+args)
439 return val
440 def EndModal(self,arg0):
441 val = windowsc.wxDialog_EndModal(self.this,arg0)
442 return val
443 def GetTitle(self):
444 val = windowsc.wxDialog_GetTitle(self.this)
445 return val
446 def Iconize(self,arg0):
447 val = windowsc.wxDialog_Iconize(self.this,arg0)
448 return val
449 def IsIconized(self):
450 val = windowsc.wxDialog_IsIconized(self.this)
451 return val
452 def SetModal(self,arg0):
453 val = windowsc.wxDialog_SetModal(self.this,arg0)
454 return val
455 def IsModal(self):
456 val = windowsc.wxDialog_IsModal(self.this)
457 return val
458 def SetTitle(self,arg0):
459 val = windowsc.wxDialog_SetTitle(self.this,arg0)
460 return val
461 def Show(self,arg0):
462 val = windowsc.wxDialog_Show(self.this,arg0)
463 return val
464 def ShowModal(self):
465 val = windowsc.wxDialog_ShowModal(self.this)
466 return val
467 def GetReturnCode(self):
468 val = windowsc.wxDialog_GetReturnCode(self.this)
469 return val
470 def SetReturnCode(self,arg0):
471 val = windowsc.wxDialog_SetReturnCode(self.this,arg0)
472 return val
473 def __repr__(self):
474 return "<C wxDialog instance>"
475 class wxDialog(wxDialogPtr):
476 def __init__(self,arg0,arg1,arg2,*args) :
477 argl = map(None,args)
478 try: argl[0] = argl[0].this
479 except: pass
480 try: argl[1] = argl[1].this
481 except: pass
482 args = tuple(argl)
483 self.this = apply(windowsc.new_wxDialog,(arg0.this,arg1,arg2,)+args)
484 self.thisown = 1
485 wx._StdDialogCallbacks(self)
486
487
488
489
490 class wxScrolledWindowPtr(wxPanelPtr):
491 def __init__(self,this):
492 self.this = this
493 self.thisown = 0
494 def EnableScrolling(self,arg0,arg1):
495 val = windowsc.wxScrolledWindow_EnableScrolling(self.this,arg0,arg1)
496 return val
497 def GetScrollPixelsPerUnit(self):
498 val = windowsc.wxScrolledWindow_GetScrollPixelsPerUnit(self.this)
499 return val
500 def GetVirtualSize(self):
501 val = windowsc.wxScrolledWindow_GetVirtualSize(self.this)
502 return val
503 def IsRetained(self):
504 val = windowsc.wxScrolledWindow_IsRetained(self.this)
505 return val
506 def PrepareDC(self,arg0):
507 val = windowsc.wxScrolledWindow_PrepareDC(self.this,arg0.this)
508 return val
509 def Scroll(self,arg0,arg1):
510 val = windowsc.wxScrolledWindow_Scroll(self.this,arg0,arg1)
511 return val
512 def SetScrollbars(self,arg0,arg1,arg2,arg3,*args):
513 val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self.this,arg0,arg1,arg2,arg3,)+args)
514 return val
515 def ViewStart(self):
516 val = windowsc.wxScrolledWindow_ViewStart(self.this)
517 return val
518 def __repr__(self):
519 return "<C wxScrolledWindow instance>"
520 class wxScrolledWindow(wxScrolledWindowPtr):
521 def __init__(self,arg0,*args) :
522 argl = map(None,args)
523 try: argl[1] = argl[1].this
524 except: pass
525 try: argl[2] = argl[2].this
526 except: pass
527 args = tuple(argl)
528 self.this = apply(windowsc.new_wxScrolledWindow,(arg0.this,)+args)
529 self.thisown = 1
530 wx._StdWindowCallbacks(self)
531 wx._StdOnScrollCallbacks(self)
532
533
534
535
536 class wxMenuPtr(wxEvtHandlerPtr):
537 def __init__(self,this):
538 self.this = this
539 self.thisown = 0
540 def Append(self,arg0,arg1,*args):
541 val = apply(windowsc.wxMenu_Append,(self.this,arg0,arg1,)+args)
542 return val
543 def AppendMenu(self,arg0,arg1,arg2,*args):
544 val = apply(windowsc.wxMenu_AppendMenu,(self.this,arg0,arg1,arg2.this,)+args)
545 return val
546 def AppendSeparator(self):
547 val = windowsc.wxMenu_AppendSeparator(self.this)
548 return val
549 def Break(self):
550 val = windowsc.wxMenu_Break(self.this)
551 return val
552 def Check(self,arg0,arg1):
553 val = windowsc.wxMenu_Check(self.this,arg0,arg1)
554 return val
555 def Enable(self,arg0,arg1):
556 val = windowsc.wxMenu_Enable(self.this,arg0,arg1)
557 return val
558 def FindItem(self,arg0):
559 val = windowsc.wxMenu_FindItem(self.this,arg0)
560 return val
561 def GetTitle(self):
562 val = windowsc.wxMenu_GetTitle(self.this)
563 return val
564 def SetTitle(self,arg0):
565 val = windowsc.wxMenu_SetTitle(self.this,arg0)
566 return val
567 def FindItemForId(self,arg0):
568 val = windowsc.wxMenu_FindItemForId(self.this,arg0)
569 val = wxMenuItemPtr(val)
570 return val
571 def GetHelpString(self,arg0):
572 val = windowsc.wxMenu_GetHelpString(self.this,arg0)
573 return val
574 def GetLabel(self,arg0):
575 val = windowsc.wxMenu_GetLabel(self.this,arg0)
576 return val
577 def SetHelpString(self,arg0,arg1):
578 val = windowsc.wxMenu_SetHelpString(self.this,arg0,arg1)
579 return val
580 def IsChecked(self,arg0):
581 val = windowsc.wxMenu_IsChecked(self.this,arg0)
582 return val
583 def IsEnabled(self,arg0):
584 val = windowsc.wxMenu_IsEnabled(self.this,arg0)
585 return val
586 def SetLabel(self,arg0,arg1):
587 val = windowsc.wxMenu_SetLabel(self.this,arg0,arg1)
588 return val
589 def UpdateUI(self,*args):
590 argl = map(None,args)
591 try: argl[0] = argl[0].this
592 except: pass
593 args = tuple(argl)
594 val = apply(windowsc.wxMenu_UpdateUI,(self.this,)+args)
595 return val
596 def __repr__(self):
597 return "<C wxMenu instance>"
598 class wxMenu(wxMenuPtr):
599 def __init__(self,*args) :
600 self.this = apply(windowsc.new_wxMenu,()+args)
601 self.thisown = 1
602
603
604
605
606 class wxMenuBarPtr(wxEvtHandlerPtr):
607 def __init__(self,this):
608 self.this = this
609 self.thisown = 0
610 def Append(self,arg0,arg1):
611 val = windowsc.wxMenuBar_Append(self.this,arg0.this,arg1)
612 return val
613 def Check(self,arg0,arg1):
614 val = windowsc.wxMenuBar_Check(self.this,arg0,arg1)
615 return val
616 def Checked(self,arg0):
617 val = windowsc.wxMenuBar_Checked(self.this,arg0)
618 return val
619 def Enable(self,arg0,arg1):
620 val = windowsc.wxMenuBar_Enable(self.this,arg0,arg1)
621 return val
622 def Enabled(self,arg0):
623 val = windowsc.wxMenuBar_Enabled(self.this,arg0)
624 return val
625 def FindMenuItem(self,arg0,arg1):
626 val = windowsc.wxMenuBar_FindMenuItem(self.this,arg0,arg1)
627 return val
628 def FindItemForId(self,arg0):
629 val = windowsc.wxMenuBar_FindItemForId(self.this,arg0)
630 val = wxMenuItemPtr(val)
631 return val
632 def GetMenuCount(self):
633 val = windowsc.wxMenuBar_GetMenuCount(self.this)
634 return val
635 def GetMenu(self,arg0):
636 val = windowsc.wxMenuBar_GetMenu(self.this,arg0)
637 val = wxMenuPtr(val)
638 return val
639 def __repr__(self):
640 return "<C wxMenuBar instance>"
641 class wxMenuBar(wxMenuBarPtr):
642 def __init__(self) :
643 self.this = windowsc.new_wxMenuBar()
644 self.thisown = 1
645
646
647
648
649 class wxMenuItemPtr :
650 def __init__(self,this):
651 self.this = this
652 self.thisown = 0
653 def IsSeparator(self):
654 val = windowsc.wxMenuItem_IsSeparator(self.this)
655 return val
656 def IsEnabled(self):
657 val = windowsc.wxMenuItem_IsEnabled(self.this)
658 return val
659 def IsChecked(self):
660 val = windowsc.wxMenuItem_IsChecked(self.this)
661 return val
662 def IsCheckable(self):
663 val = windowsc.wxMenuItem_IsCheckable(self.this)
664 return val
665 def GetId(self):
666 val = windowsc.wxMenuItem_GetId(self.this)
667 return val
668 def GetSubMenu(self):
669 val = windowsc.wxMenuItem_GetSubMenu(self.this)
670 val = wxMenuPtr(val)
671 return val
672 def SetName(self,arg0):
673 val = windowsc.wxMenuItem_SetName(self.this,arg0)
674 return val
675 def GetName(self):
676 val = windowsc.wxMenuItem_GetName(self.this)
677 return val
678 def GetHelp(self):
679 val = windowsc.wxMenuItem_GetHelp(self.this)
680 return val
681 def SetHelp(self,arg0):
682 val = windowsc.wxMenuItem_SetHelp(self.this,arg0)
683 return val
684 def Enable(self,*args):
685 val = apply(windowsc.wxMenuItem_Enable,(self.this,)+args)
686 return val
687 def Check(self,*args):
688 val = apply(windowsc.wxMenuItem_Check,(self.this,)+args)
689 return val
690 def __repr__(self):
691 return "<C wxMenuItem instance>"
692 class wxMenuItem(wxMenuItemPtr):
693 def __init__(self) :
694 self.this = windowsc.new_wxMenuItem()
695 self.thisown = 1
696
697
698
699
700
701
702 #-------------- FUNCTION WRAPPERS ------------------
703
704
705
706 #-------------- VARIABLE WRAPPERS ------------------
707