]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/windows.py
wxPython 2.1b1: Very minor changes needed for wxGTK
[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 GetWindowStyleFlag(self):
186 val = windowsc.wxWindow_GetWindowStyleFlag(self.this)
187 return val
188 def Hide(self):
189 val = windowsc.wxWindow_Hide(self.this)
190 return val
191 def InitDialog(self):
192 val = windowsc.wxWindow_InitDialog(self.this)
193 return val
194 def IsEnabled(self):
195 val = windowsc.wxWindow_IsEnabled(self.this)
196 return val
197 def IsRetained(self):
198 val = windowsc.wxWindow_IsRetained(self.this)
199 return val
200 def IsShown(self):
201 val = windowsc.wxWindow_IsShown(self.this)
202 return val
203 def IsTopLevel(self):
204 val = windowsc.wxWindow_IsTopLevel(self.this)
205 return val
206 def Layout(self):
207 val = windowsc.wxWindow_Layout(self.this)
208 return val
209 def LoadFromResource(self,arg0,arg1,*args):
210 val = apply(windowsc.wxWindow_LoadFromResource,(self.this,arg0.this,arg1,)+args)
211 return val
212 def Lower(self):
213 val = windowsc.wxWindow_Lower(self.this)
214 return val
215 def MakeModal(self,arg0):
216 val = windowsc.wxWindow_MakeModal(self.this,arg0)
217 return val
218 def MoveXY(self,arg0,arg1):
219 val = windowsc.wxWindow_MoveXY(self.this,arg0,arg1)
220 return val
221 def Move(self,arg0):
222 val = windowsc.wxWindow_Move(self.this,arg0.this)
223 return val
224 def PopupMenu(self,arg0,arg1,arg2):
225 val = windowsc.wxWindow_PopupMenu(self.this,arg0.this,arg1,arg2)
226 return val
227 def Raise(self):
228 val = windowsc.wxWindow_Raise(self.this)
229 return val
230 def Refresh(self,*args):
231 argl = map(None,args)
232 try: argl[1] = argl[1].this
233 except: pass
234 args = tuple(argl)
235 val = apply(windowsc.wxWindow_Refresh,(self.this,)+args)
236 return val
237 def ReleaseMouse(self):
238 val = windowsc.wxWindow_ReleaseMouse(self.this)
239 return val
240 def Reparent(self,arg0):
241 val = windowsc.wxWindow_Reparent(self.this,arg0.this)
242 return val
243 def ScreenToClientXY(self,arg0,arg1):
244 val = windowsc.wxWindow_ScreenToClientXY(self.this,arg0,arg1)
245 return val
246 def ScreenToClient(self,arg0):
247 val = windowsc.wxWindow_ScreenToClient(self.this,arg0.this)
248 val = wxPointPtr(val)
249 val.thisown = 1
250 return val
251 def ScrollWindow(self,arg0,arg1,*args):
252 argl = map(None,args)
253 try: argl[0] = argl[0].this
254 except: pass
255 args = tuple(argl)
256 val = apply(windowsc.wxWindow_ScrollWindow,(self.this,arg0,arg1,)+args)
257 return val
258 def SetAcceleratorTable(self,arg0):
259 val = windowsc.wxWindow_SetAcceleratorTable(self.this,arg0.this)
260 return val
261 def SetAutoLayout(self,arg0):
262 val = windowsc.wxWindow_SetAutoLayout(self.this,arg0)
263 return val
264 def SetBackgroundColour(self,arg0):
265 val = windowsc.wxWindow_SetBackgroundColour(self.this,arg0.this)
266 return val
267 def SetConstraints(self,arg0):
268 val = windowsc.wxWindow_SetConstraints(self.this,arg0.this)
269 return val
270 def SetFocus(self):
271 val = windowsc.wxWindow_SetFocus(self.this)
272 return val
273 def SetFont(self,arg0):
274 val = windowsc.wxWindow_SetFont(self.this,arg0.this)
275 return val
276 def SetForegroundColour(self,arg0):
277 val = windowsc.wxWindow_SetForegroundColour(self.this,arg0.this)
278 return val
279 def SetId(self,arg0):
280 val = windowsc.wxWindow_SetId(self.this,arg0)
281 return val
282 def SetName(self,arg0):
283 val = windowsc.wxWindow_SetName(self.this,arg0)
284 return val
285 def SetScrollbar(self,arg0,arg1,arg2,arg3,*args):
286 val = apply(windowsc.wxWindow_SetScrollbar,(self.this,arg0,arg1,arg2,arg3,)+args)
287 return val
288 def SetScrollPos(self,arg0,arg1,*args):
289 val = apply(windowsc.wxWindow_SetScrollPos,(self.this,arg0,arg1,)+args)
290 return val
291 def SetDimensions(self,arg0,arg1,arg2,arg3,*args):
292 val = apply(windowsc.wxWindow_SetDimensions,(self.this,arg0,arg1,arg2,arg3,)+args)
293 return val
294 def SetSize(self,arg0):
295 val = windowsc.wxWindow_SetSize(self.this,arg0.this)
296 return val
297 def SetPosition(self,arg0):
298 val = windowsc.wxWindow_SetPosition(self.this,arg0.this)
299 return val
300 def SetSizeHints(self,*args):
301 val = apply(windowsc.wxWindow_SetSizeHints,(self.this,)+args)
302 return val
303 def SetClientSizeWH(self,arg0,arg1):
304 val = windowsc.wxWindow_SetClientSizeWH(self.this,arg0,arg1)
305 return val
306 def SetClientSize(self,arg0):
307 val = windowsc.wxWindow_SetClientSize(self.this,arg0.this)
308 return val
309 def SetCursor(self,arg0):
310 val = windowsc.wxWindow_SetCursor(self.this,arg0.this)
311 return val
312 def SetTitle(self,arg0):
313 val = windowsc.wxWindow_SetTitle(self.this,arg0)
314 return val
315 def Show(self,arg0):
316 val = windowsc.wxWindow_Show(self.this,arg0)
317 return val
318 def TransferDataFromWindow(self):
319 val = windowsc.wxWindow_TransferDataFromWindow(self.this)
320 return val
321 def TransferDataToWindow(self):
322 val = windowsc.wxWindow_TransferDataToWindow(self.this)
323 return val
324 def Validate(self):
325 val = windowsc.wxWindow_Validate(self.this)
326 return val
327 def WarpPointer(self,arg0,arg1):
328 val = windowsc.wxWindow_WarpPointer(self.this,arg0,arg1)
329 return val
330 def ConvertDialogPointToPixels(self,arg0):
331 val = windowsc.wxWindow_ConvertDialogPointToPixels(self.this,arg0.this)
332 val = wxPointPtr(val)
333 val.thisown = 1
334 return val
335 def ConvertDialogSizeToPixels(self,arg0):
336 val = windowsc.wxWindow_ConvertDialogSizeToPixels(self.this,arg0.this)
337 val = wxSizePtr(val)
338 val.thisown = 1
339 return val
340 def DLG_PNT(self,arg0):
341 val = windowsc.wxWindow_DLG_PNT(self.this,arg0.this)
342 val = wxPointPtr(val)
343 val.thisown = 1
344 return val
345 def DLG_SZE(self,arg0):
346 val = windowsc.wxWindow_DLG_SZE(self.this,arg0.this)
347 val = wxSizePtr(val)
348 val.thisown = 1
349 return val
350 def ConvertPixelPointToDialog(self,arg0):
351 val = windowsc.wxWindow_ConvertPixelPointToDialog(self.this,arg0.this)
352 val = wxPointPtr(val)
353 val.thisown = 1
354 return val
355 def ConvertPixelSizeToDialog(self,arg0):
356 val = windowsc.wxWindow_ConvertPixelSizeToDialog(self.this,arg0.this)
357 val = wxSizePtr(val)
358 val.thisown = 1
359 return val
360 def SetToolTipString(self,arg0):
361 val = windowsc.wxWindow_SetToolTipString(self.this,arg0)
362 return val
363 def SetToolTip(self,arg0):
364 val = windowsc.wxWindow_SetToolTip(self.this,arg0.this)
365 return val
366 def GetToolTip(self):
367 val = windowsc.wxWindow_GetToolTip(self.this)
368 val = wxToolTipPtr(val)
369 return val
370 def __repr__(self):
371 return "<C wxWindow instance>"
372 class wxWindow(wxWindowPtr):
373 def __init__(self,arg0,arg1,*args) :
374 argl = map(None,args)
375 try: argl[0] = argl[0].this
376 except: pass
377 try: argl[1] = argl[1].this
378 except: pass
379 args = tuple(argl)
380 self.this = apply(windowsc.new_wxWindow,(arg0.this,arg1,)+args)
381 self.thisown = 1
382 wx._StdWindowCallbacks(self)
383
384
385
386
387 class wxPanelPtr(wxWindowPtr):
388 def __init__(self,this):
389 self.this = this
390 self.thisown = 0
391 def InitDialog(self):
392 val = windowsc.wxPanel_InitDialog(self.this)
393 return val
394 def GetDefaultItem(self):
395 val = windowsc.wxPanel_GetDefaultItem(self.this)
396 val = wxButtonPtr(val)
397 return val
398 def SetDefaultItem(self,arg0):
399 val = windowsc.wxPanel_SetDefaultItem(self.this,arg0.this)
400 return val
401 def __repr__(self):
402 return "<C wxPanel instance>"
403
404 def GetDefaultItem(self):
405 import controls
406 val = windowsc.wxPanel_GetDefaultItem(self.this)
407 val = controls.wxButtonPtr(val)
408 return val
409
410 class wxPanel(wxPanelPtr):
411 def __init__(self,arg0,arg1,*args) :
412 argl = map(None,args)
413 try: argl[0] = argl[0].this
414 except: pass
415 try: argl[1] = argl[1].this
416 except: pass
417 args = tuple(argl)
418 self.this = apply(windowsc.new_wxPanel,(arg0.this,arg1,)+args)
419 self.thisown = 1
420 wx._StdWindowCallbacks(self)
421
422
423
424
425 class wxDialogPtr(wxPanelPtr):
426 def __init__(self,this):
427 self.this = this
428 self.thisown = 0
429 def Centre(self,*args):
430 val = apply(windowsc.wxDialog_Centre,(self.this,)+args)
431 return val
432 def EndModal(self,arg0):
433 val = windowsc.wxDialog_EndModal(self.this,arg0)
434 return val
435 def GetTitle(self):
436 val = windowsc.wxDialog_GetTitle(self.this)
437 return val
438 def Iconize(self,arg0):
439 val = windowsc.wxDialog_Iconize(self.this,arg0)
440 return val
441 def IsIconized(self):
442 val = windowsc.wxDialog_IsIconized(self.this)
443 return val
444 def SetModal(self,arg0):
445 val = windowsc.wxDialog_SetModal(self.this,arg0)
446 return val
447 def IsModal(self):
448 val = windowsc.wxDialog_IsModal(self.this)
449 return val
450 def SetTitle(self,arg0):
451 val = windowsc.wxDialog_SetTitle(self.this,arg0)
452 return val
453 def Show(self,arg0):
454 val = windowsc.wxDialog_Show(self.this,arg0)
455 return val
456 def ShowModal(self):
457 val = windowsc.wxDialog_ShowModal(self.this)
458 return val
459 def GetReturnCode(self):
460 val = windowsc.wxDialog_GetReturnCode(self.this)
461 return val
462 def SetReturnCode(self,arg0):
463 val = windowsc.wxDialog_SetReturnCode(self.this,arg0)
464 return val
465 def __repr__(self):
466 return "<C wxDialog instance>"
467 class wxDialog(wxDialogPtr):
468 def __init__(self,arg0,arg1,arg2,*args) :
469 argl = map(None,args)
470 try: argl[0] = argl[0].this
471 except: pass
472 try: argl[1] = argl[1].this
473 except: pass
474 args = tuple(argl)
475 self.this = apply(windowsc.new_wxDialog,(arg0.this,arg1,arg2,)+args)
476 self.thisown = 1
477 wx._StdDialogCallbacks(self)
478
479
480
481
482 class wxScrolledWindowPtr(wxPanelPtr):
483 def __init__(self,this):
484 self.this = this
485 self.thisown = 0
486 def EnableScrolling(self,arg0,arg1):
487 val = windowsc.wxScrolledWindow_EnableScrolling(self.this,arg0,arg1)
488 return val
489 def GetScrollPixelsPerUnit(self):
490 val = windowsc.wxScrolledWindow_GetScrollPixelsPerUnit(self.this)
491 return val
492 def GetVirtualSize(self):
493 val = windowsc.wxScrolledWindow_GetVirtualSize(self.this)
494 return val
495 def IsRetained(self):
496 val = windowsc.wxScrolledWindow_IsRetained(self.this)
497 return val
498 def PrepareDC(self,arg0):
499 val = windowsc.wxScrolledWindow_PrepareDC(self.this,arg0.this)
500 return val
501 def Scroll(self,arg0,arg1):
502 val = windowsc.wxScrolledWindow_Scroll(self.this,arg0,arg1)
503 return val
504 def SetScrollbars(self,arg0,arg1,arg2,arg3,*args):
505 val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self.this,arg0,arg1,arg2,arg3,)+args)
506 return val
507 def ViewStart(self):
508 val = windowsc.wxScrolledWindow_ViewStart(self.this)
509 return val
510 def __repr__(self):
511 return "<C wxScrolledWindow instance>"
512 class wxScrolledWindow(wxScrolledWindowPtr):
513 def __init__(self,arg0,*args) :
514 argl = map(None,args)
515 try: argl[1] = argl[1].this
516 except: pass
517 try: argl[2] = argl[2].this
518 except: pass
519 args = tuple(argl)
520 self.this = apply(windowsc.new_wxScrolledWindow,(arg0.this,)+args)
521 self.thisown = 1
522 wx._StdWindowCallbacks(self)
523 wx._StdOnScrollCallbacks(self)
524
525
526
527
528 class wxMenuPtr(wxEvtHandlerPtr):
529 def __init__(self,this):
530 self.this = this
531 self.thisown = 0
532 def Append(self,arg0,arg1,*args):
533 val = apply(windowsc.wxMenu_Append,(self.this,arg0,arg1,)+args)
534 return val
535 def AppendMenu(self,arg0,arg1,arg2,*args):
536 val = apply(windowsc.wxMenu_AppendMenu,(self.this,arg0,arg1,arg2.this,)+args)
537 return val
538 def AppendSeparator(self):
539 val = windowsc.wxMenu_AppendSeparator(self.this)
540 return val
541 def Break(self):
542 val = windowsc.wxMenu_Break(self.this)
543 return val
544 def Check(self,arg0,arg1):
545 val = windowsc.wxMenu_Check(self.this,arg0,arg1)
546 return val
547 def Enable(self,arg0,arg1):
548 val = windowsc.wxMenu_Enable(self.this,arg0,arg1)
549 return val
550 def FindItem(self,arg0):
551 val = windowsc.wxMenu_FindItem(self.this,arg0)
552 return val
553 def GetTitle(self):
554 val = windowsc.wxMenu_GetTitle(self.this)
555 return val
556 def SetTitle(self,arg0):
557 val = windowsc.wxMenu_SetTitle(self.this,arg0)
558 return val
559 def FindItemForId(self,arg0):
560 val = windowsc.wxMenu_FindItemForId(self.this,arg0)
561 val = wxMenuItemPtr(val)
562 return val
563 def GetHelpString(self,arg0):
564 val = windowsc.wxMenu_GetHelpString(self.this,arg0)
565 return val
566 def GetLabel(self,arg0):
567 val = windowsc.wxMenu_GetLabel(self.this,arg0)
568 return val
569 def SetHelpString(self,arg0,arg1):
570 val = windowsc.wxMenu_SetHelpString(self.this,arg0,arg1)
571 return val
572 def IsChecked(self,arg0):
573 val = windowsc.wxMenu_IsChecked(self.this,arg0)
574 return val
575 def IsEnabled(self,arg0):
576 val = windowsc.wxMenu_IsEnabled(self.this,arg0)
577 return val
578 def SetLabel(self,arg0,arg1):
579 val = windowsc.wxMenu_SetLabel(self.this,arg0,arg1)
580 return val
581 def __repr__(self):
582 return "<C wxMenu instance>"
583 class wxMenu(wxMenuPtr):
584 def __init__(self,*args) :
585 self.this = apply(windowsc.new_wxMenu,()+args)
586 self.thisown = 1
587
588
589
590
591 class wxPyMenuPtr(wxMenuPtr):
592 def __init__(self,this):
593 self.this = this
594 self.thisown = 0
595 def __del__(self):
596 if self.thisown == 1 :
597 windowsc.delete_wxPyMenu(self.this)
598 def __repr__(self):
599 return "<C wxPyMenu instance>"
600 class wxPyMenu(wxPyMenuPtr):
601 def __init__(self,*args) :
602 self.this = apply(windowsc.new_wxPyMenu,()+args)
603 self.thisown = 1
604
605
606
607
608 class wxMenuBarPtr(wxEvtHandlerPtr):
609 def __init__(self,this):
610 self.this = this
611 self.thisown = 0
612 def Append(self,arg0,arg1):
613 val = windowsc.wxMenuBar_Append(self.this,arg0.this,arg1)
614 return val
615 def Check(self,arg0,arg1):
616 val = windowsc.wxMenuBar_Check(self.this,arg0,arg1)
617 return val
618 def Checked(self,arg0):
619 val = windowsc.wxMenuBar_Checked(self.this,arg0)
620 return val
621 def Enable(self,arg0,arg1):
622 val = windowsc.wxMenuBar_Enable(self.this,arg0,arg1)
623 return val
624 def Enabled(self,arg0):
625 val = windowsc.wxMenuBar_Enabled(self.this,arg0)
626 return val
627 def FindMenuItem(self,arg0,arg1):
628 val = windowsc.wxMenuBar_FindMenuItem(self.this,arg0,arg1)
629 return val
630 def FindItemForId(self,arg0):
631 val = windowsc.wxMenuBar_FindItemForId(self.this,arg0)
632 val = wxMenuItemPtr(val)
633 return val
634 def GetMenuCount(self):
635 val = windowsc.wxMenuBar_GetMenuCount(self.this)
636 return val
637 def GetMenu(self,arg0):
638 val = windowsc.wxMenuBar_GetMenu(self.this,arg0)
639 val = wxMenuPtr(val)
640 return val
641 def __repr__(self):
642 return "<C wxMenuBar instance>"
643 class wxMenuBar(wxMenuBarPtr):
644 def __init__(self) :
645 self.this = windowsc.new_wxMenuBar()
646 self.thisown = 1
647
648
649
650
651 class wxMenuItemPtr :
652 def __init__(self,this):
653 self.this = this
654 self.thisown = 0
655 def IsSeparator(self):
656 val = windowsc.wxMenuItem_IsSeparator(self.this)
657 return val
658 def IsEnabled(self):
659 val = windowsc.wxMenuItem_IsEnabled(self.this)
660 return val
661 def IsChecked(self):
662 val = windowsc.wxMenuItem_IsChecked(self.this)
663 return val
664 def IsCheckable(self):
665 val = windowsc.wxMenuItem_IsCheckable(self.this)
666 return val
667 def GetId(self):
668 val = windowsc.wxMenuItem_GetId(self.this)
669 return val
670 def GetSubMenu(self):
671 val = windowsc.wxMenuItem_GetSubMenu(self.this)
672 val = wxMenuPtr(val)
673 return val
674 def SetName(self,arg0):
675 val = windowsc.wxMenuItem_SetName(self.this,arg0)
676 return val
677 def GetName(self):
678 val = windowsc.wxMenuItem_GetName(self.this)
679 return val
680 def GetHelp(self):
681 val = windowsc.wxMenuItem_GetHelp(self.this)
682 return val
683 def SetHelp(self,arg0):
684 val = windowsc.wxMenuItem_SetHelp(self.this,arg0)
685 return val
686 def Enable(self,*args):
687 val = apply(windowsc.wxMenuItem_Enable,(self.this,)+args)
688 return val
689 def Check(self,*args):
690 val = apply(windowsc.wxMenuItem_Check,(self.this,)+args)
691 return val
692 def __repr__(self):
693 return "<C wxMenuItem instance>"
694 class wxMenuItem(wxMenuItemPtr):
695 def __init__(self) :
696 self.this = windowsc.new_wxMenuItem()
697 self.thisown = 1
698
699
700
701
702
703
704 #-------------- FUNCTION WRAPPERS ------------------
705
706
707
708 #-------------- VARIABLE WRAPPERS ------------------
709