1 # This file was created automatically by SWIG.
9 def wxDLG_PNT(win
, point_or_x
, y
=None):
11 return win
.ConvertDialogPointToPixels(point_or_x
)
13 return win
.ConvertDialogPointToPixels(wxPoint(point_or_x
, y
))
15 def wxDLG_SZE(win
, size_width
, height
=None):
17 return win
.ConvertDialogSizeToPixels(size_width
)
19 return win
.ConvertDialogSizeToPixels(wxSize(size_width
, height
))
21 class wxEvtHandlerPtr
:
22 def __init__(self
,this
):
25 def ProcessEvent(self
,arg0
):
26 val
= windowsc
.wxEvtHandler_ProcessEvent(self
.this
,arg0
.this
)
28 def Connect(self
,arg0
,arg1
,arg2
,arg3
):
29 val
= windowsc
.wxEvtHandler_Connect(self
.this
,arg0
,arg1
,arg2
,arg3
)
32 return "<C wxEvtHandler instance>"
33 class wxEvtHandler(wxEvtHandlerPtr
):
34 def __init__(self
,this
):
40 class wxWindowPtr(wxEvtHandlerPtr
):
41 def __init__(self
,this
):
44 def CaptureMouse(self
):
45 val
= windowsc
.wxWindow_CaptureMouse(self
.this
)
47 def Center(self
,*args
):
48 val
= apply(windowsc
.wxWindow_Center
,(self
.this
,)+args
)
50 def Centre(self
,*args
):
51 val
= apply(windowsc
.wxWindow_Centre
,(self
.this
,)+args
)
53 def CentreOnParent(self
,*args
):
54 val
= apply(windowsc
.wxWindow_CentreOnParent
,(self
.this
,)+args
)
56 def CenterOnParent(self
,*args
):
57 val
= apply(windowsc
.wxWindow_CenterOnParent
,(self
.this
,)+args
)
59 def ClientToScreenXY(self
,arg0
,arg1
):
60 val
= windowsc
.wxWindow_ClientToScreenXY(self
.this
,arg0
,arg1
)
62 def ClientToScreen(self
,arg0
):
63 val
= windowsc
.wxWindow_ClientToScreen(self
.this
,arg0
.this
)
67 def Close(self
,*args
):
68 val
= apply(windowsc
.wxWindow_Close
,(self
.this
,)+args
)
71 val
= windowsc
.wxWindow_Destroy(self
.this
)
73 def DestroyChildren(self
):
74 val
= windowsc
.wxWindow_DestroyChildren(self
.this
)
76 def DragAcceptFiles(self
,arg0
):
77 val
= windowsc
.wxWindow_DragAcceptFiles(self
.this
,arg0
)
79 def Enable(self
,arg0
):
80 val
= windowsc
.wxWindow_Enable(self
.this
,arg0
)
82 def FindWindowById(self
,arg0
):
83 val
= windowsc
.wxWindow_FindWindowById(self
.this
,arg0
)
84 val
= wxWindowPtr(val
)
86 def FindWindowByName(self
,arg0
):
87 val
= windowsc
.wxWindow_FindWindowByName(self
.this
,arg0
)
88 val
= wxWindowPtr(val
)
91 val
= windowsc
.wxWindow_Fit(self
.this
)
93 def GetBackgroundColour(self
):
94 val
= windowsc
.wxWindow_GetBackgroundColour(self
.this
)
95 val
= wxColourPtr(val
)
98 def GetCharHeight(self
):
99 val
= windowsc
.wxWindow_GetCharHeight(self
.this
)
101 def GetCharWidth(self
):
102 val
= windowsc
.wxWindow_GetCharWidth(self
.this
)
104 def GetClientSizeTuple(self
):
105 val
= windowsc
.wxWindow_GetClientSizeTuple(self
.this
)
107 def GetClientSize(self
):
108 val
= windowsc
.wxWindow_GetClientSize(self
.this
)
112 def GetConstraints(self
):
113 val
= windowsc
.wxWindow_GetConstraints(self
.this
)
114 val
= wxLayoutConstraintsPtr(val
)
117 val
= windowsc
.wxWindow_GetFont(self
.this
)
120 def GetForegroundColour(self
):
121 val
= windowsc
.wxWindow_GetForegroundColour(self
.this
)
122 val
= wxColourPtr(val
)
125 def GetGrandParent(self
):
126 val
= windowsc
.wxWindow_GetGrandParent(self
.this
)
127 val
= wxWindowPtr(val
)
130 val
= windowsc
.wxWindow_GetId(self
.this
)
133 val
= windowsc
.wxWindow_GetLabel(self
.this
)
135 def SetLabel(self
,arg0
):
136 val
= windowsc
.wxWindow_SetLabel(self
.this
,arg0
)
139 val
= windowsc
.wxWindow_GetName(self
.this
)
142 val
= windowsc
.wxWindow_GetParent(self
.this
)
143 val
= wxWindowPtr(val
)
145 def GetPositionTuple(self
):
146 val
= windowsc
.wxWindow_GetPositionTuple(self
.this
)
148 def GetPosition(self
):
149 val
= windowsc
.wxWindow_GetPosition(self
.this
)
150 val
= wxPointPtr(val
)
154 val
= windowsc
.wxWindow_GetRect(self
.this
)
158 def GetScrollThumb(self
,arg0
):
159 val
= windowsc
.wxWindow_GetScrollThumb(self
.this
,arg0
)
161 def GetScrollPos(self
,arg0
):
162 val
= windowsc
.wxWindow_GetScrollPos(self
.this
,arg0
)
164 def GetScrollRange(self
,arg0
):
165 val
= windowsc
.wxWindow_GetScrollRange(self
.this
,arg0
)
167 def GetSizeTuple(self
):
168 val
= windowsc
.wxWindow_GetSizeTuple(self
.this
)
171 val
= windowsc
.wxWindow_GetSize(self
.this
)
175 def GetTextExtent(self
,arg0
):
176 val
= windowsc
.wxWindow_GetTextExtent(self
.this
,arg0
)
178 def GetFullTextExtent(self
,arg0
,*args
):
179 argl
= map(None,args
)
180 try: argl
[0] = argl
[0].this
183 val
= apply(windowsc
.wxWindow_GetFullTextExtent
,(self
.this
,arg0
,)+args
)
186 val
= windowsc
.wxWindow_GetTitle(self
.this
)
188 def GetUpdateRegion(self
):
189 val
= windowsc
.wxWindow_GetUpdateRegion(self
.this
)
190 val
= wxRegionPtr(val
)
193 def GetWindowStyleFlag(self
):
194 val
= windowsc
.wxWindow_GetWindowStyleFlag(self
.this
)
197 val
= windowsc
.wxWindow_Hide(self
.this
)
199 def InitDialog(self
):
200 val
= windowsc
.wxWindow_InitDialog(self
.this
)
203 val
= windowsc
.wxWindow_IsEnabled(self
.this
)
205 def IsRetained(self
):
206 val
= windowsc
.wxWindow_IsRetained(self
.this
)
209 val
= windowsc
.wxWindow_IsShown(self
.this
)
211 def IsTopLevel(self
):
212 val
= windowsc
.wxWindow_IsTopLevel(self
.this
)
215 val
= windowsc
.wxWindow_Layout(self
.this
)
217 def LoadFromResource(self
,arg0
,arg1
,*args
):
218 val
= apply(windowsc
.wxWindow_LoadFromResource
,(self
.this
,arg0
.this
,arg1
,)+args
)
221 val
= windowsc
.wxWindow_Lower(self
.this
)
223 def MakeModal(self
,arg0
):
224 val
= windowsc
.wxWindow_MakeModal(self
.this
,arg0
)
226 def MoveXY(self
,arg0
,arg1
):
227 val
= windowsc
.wxWindow_MoveXY(self
.this
,arg0
,arg1
)
230 val
= windowsc
.wxWindow_Move(self
.this
,arg0
.this
)
232 def PopupMenuXY(self
,arg0
,arg1
,arg2
):
233 val
= windowsc
.wxWindow_PopupMenuXY(self
.this
,arg0
.this
,arg1
,arg2
)
235 def PopupMenu(self
,arg0
,arg1
):
236 val
= windowsc
.wxWindow_PopupMenu(self
.this
,arg0
.this
,arg1
.this
)
239 val
= windowsc
.wxWindow_Raise(self
.this
)
241 def Refresh(self
,*args
):
242 argl
= map(None,args
)
243 try: argl
[1] = argl
[1].this
246 val
= apply(windowsc
.wxWindow_Refresh
,(self
.this
,)+args
)
248 def ReleaseMouse(self
):
249 val
= windowsc
.wxWindow_ReleaseMouse(self
.this
)
251 def Reparent(self
,arg0
):
252 val
= windowsc
.wxWindow_Reparent(self
.this
,arg0
.this
)
254 def ScreenToClientXY(self
,arg0
,arg1
):
255 val
= windowsc
.wxWindow_ScreenToClientXY(self
.this
,arg0
,arg1
)
257 def ScreenToClient(self
,arg0
):
258 val
= windowsc
.wxWindow_ScreenToClient(self
.this
,arg0
.this
)
259 val
= wxPointPtr(val
)
262 def ScrollWindow(self
,arg0
,arg1
,*args
):
263 argl
= map(None,args
)
264 try: argl
[0] = argl
[0].this
267 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
.this
,arg0
,arg1
,)+args
)
269 def SetAcceleratorTable(self
,arg0
):
270 val
= windowsc
.wxWindow_SetAcceleratorTable(self
.this
,arg0
.this
)
272 def SetAutoLayout(self
,arg0
):
273 val
= windowsc
.wxWindow_SetAutoLayout(self
.this
,arg0
)
275 def SetBackgroundColour(self
,arg0
):
276 val
= windowsc
.wxWindow_SetBackgroundColour(self
.this
,arg0
.this
)
278 def SetConstraints(self
,arg0
):
279 val
= windowsc
.wxWindow_SetConstraints(self
.this
,arg0
.this
)
282 val
= windowsc
.wxWindow_SetFocus(self
.this
)
284 def SetFont(self
,arg0
):
285 val
= windowsc
.wxWindow_SetFont(self
.this
,arg0
.this
)
287 def SetForegroundColour(self
,arg0
):
288 val
= windowsc
.wxWindow_SetForegroundColour(self
.this
,arg0
.this
)
290 def SetId(self
,arg0
):
291 val
= windowsc
.wxWindow_SetId(self
.this
,arg0
)
293 def SetName(self
,arg0
):
294 val
= windowsc
.wxWindow_SetName(self
.this
,arg0
)
296 def SetScrollbar(self
,arg0
,arg1
,arg2
,arg3
,*args
):
297 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
299 def SetScrollPos(self
,arg0
,arg1
,*args
):
300 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
.this
,arg0
,arg1
,)+args
)
302 def SetDimensions(self
,arg0
,arg1
,arg2
,arg3
,*args
):
303 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
305 def SetSize(self
,arg0
):
306 val
= windowsc
.wxWindow_SetSize(self
.this
,arg0
.this
)
308 def SetPosition(self
,arg0
):
309 val
= windowsc
.wxWindow_SetPosition(self
.this
,arg0
.this
)
311 def SetSizeHints(self
,*args
):
312 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
.this
,)+args
)
314 def SetClientSizeWH(self
,arg0
,arg1
):
315 val
= windowsc
.wxWindow_SetClientSizeWH(self
.this
,arg0
,arg1
)
317 def SetClientSize(self
,arg0
):
318 val
= windowsc
.wxWindow_SetClientSize(self
.this
,arg0
.this
)
320 def SetCursor(self
,arg0
):
321 val
= windowsc
.wxWindow_SetCursor(self
.this
,arg0
.this
)
323 def SetTitle(self
,arg0
):
324 val
= windowsc
.wxWindow_SetTitle(self
.this
,arg0
)
327 val
= windowsc
.wxWindow_Show(self
.this
,arg0
)
329 def TransferDataFromWindow(self
):
330 val
= windowsc
.wxWindow_TransferDataFromWindow(self
.this
)
332 def TransferDataToWindow(self
):
333 val
= windowsc
.wxWindow_TransferDataToWindow(self
.this
)
336 val
= windowsc
.wxWindow_Validate(self
.this
)
338 def WarpPointer(self
,arg0
,arg1
):
339 val
= windowsc
.wxWindow_WarpPointer(self
.this
,arg0
,arg1
)
341 def ConvertDialogPointToPixels(self
,arg0
):
342 val
= windowsc
.wxWindow_ConvertDialogPointToPixels(self
.this
,arg0
.this
)
343 val
= wxPointPtr(val
)
346 def ConvertDialogSizeToPixels(self
,arg0
):
347 val
= windowsc
.wxWindow_ConvertDialogSizeToPixels(self
.this
,arg0
.this
)
351 def DLG_PNT(self
,arg0
):
352 val
= windowsc
.wxWindow_DLG_PNT(self
.this
,arg0
.this
)
353 val
= wxPointPtr(val
)
356 def DLG_SZE(self
,arg0
):
357 val
= windowsc
.wxWindow_DLG_SZE(self
.this
,arg0
.this
)
361 def ConvertPixelPointToDialog(self
,arg0
):
362 val
= windowsc
.wxWindow_ConvertPixelPointToDialog(self
.this
,arg0
.this
)
363 val
= wxPointPtr(val
)
366 def ConvertPixelSizeToDialog(self
,arg0
):
367 val
= windowsc
.wxWindow_ConvertPixelSizeToDialog(self
.this
,arg0
.this
)
371 def SetToolTipString(self
,arg0
):
372 val
= windowsc
.wxWindow_SetToolTipString(self
.this
,arg0
)
374 def SetToolTip(self
,arg0
):
375 val
= windowsc
.wxWindow_SetToolTip(self
.this
,arg0
.this
)
377 def GetToolTip(self
):
378 val
= windowsc
.wxWindow_GetToolTip(self
.this
)
379 val
= wxToolTipPtr(val
)
382 return "<C wxWindow instance>"
383 class wxWindow(wxWindowPtr
):
384 def __init__(self
,arg0
,arg1
,*args
) :
385 argl
= map(None,args
)
386 try: argl
[0] = argl
[0].this
388 try: argl
[1] = argl
[1].this
391 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
393 wx
._StdWindowCallbacks
(self
)
398 class wxPanelPtr(wxWindowPtr
):
399 def __init__(self
,this
):
402 def InitDialog(self
):
403 val
= windowsc
.wxPanel_InitDialog(self
.this
)
405 def GetDefaultItem(self
):
406 val
= windowsc
.wxPanel_GetDefaultItem(self
.this
)
407 val
= wxButtonPtr(val
)
409 def SetDefaultItem(self
,arg0
):
410 val
= windowsc
.wxPanel_SetDefaultItem(self
.this
,arg0
.this
)
413 return "<C wxPanel instance>"
415 def GetDefaultItem(self
):
417 val
= windowsc
.wxPanel_GetDefaultItem(self
.this
)
418 val
= controls
.wxButtonPtr(val
)
421 class wxPanel(wxPanelPtr
):
422 def __init__(self
,arg0
,arg1
,*args
) :
423 argl
= map(None,args
)
424 try: argl
[0] = argl
[0].this
426 try: argl
[1] = argl
[1].this
429 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
431 wx
._StdWindowCallbacks
(self
)
436 class wxDialogPtr(wxPanelPtr
):
437 def __init__(self
,this
):
440 def Centre(self
,*args
):
441 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
443 def EndModal(self
,arg0
):
444 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
447 val
= windowsc
.wxDialog_GetTitle(self
.this
)
449 def Iconize(self
,arg0
):
450 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
452 def IsIconized(self
):
453 val
= windowsc
.wxDialog_IsIconized(self
.this
)
455 def SetModal(self
,arg0
):
456 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
459 val
= windowsc
.wxDialog_IsModal(self
.this
)
461 def SetTitle(self
,arg0
):
462 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
465 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
468 val
= windowsc
.wxDialog_ShowModal(self
.this
)
470 def GetReturnCode(self
):
471 val
= windowsc
.wxDialog_GetReturnCode(self
.this
)
473 def SetReturnCode(self
,arg0
):
474 val
= windowsc
.wxDialog_SetReturnCode(self
.this
,arg0
)
477 return "<C wxDialog instance>"
478 class wxDialog(wxDialogPtr
):
479 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
480 argl
= map(None,args
)
481 try: argl
[0] = argl
[0].this
483 try: argl
[1] = argl
[1].this
486 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
488 wx
._StdDialogCallbacks
(self
)
493 class wxScrolledWindowPtr(wxPanelPtr
):
494 def __init__(self
,this
):
497 def EnableScrolling(self
,arg0
,arg1
):
498 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
500 def GetScrollPixelsPerUnit(self
):
501 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
503 def GetVirtualSize(self
):
504 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
506 def IsRetained(self
):
507 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
509 def PrepareDC(self
,arg0
):
510 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
512 def Scroll(self
,arg0
,arg1
):
513 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
515 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
516 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
519 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
522 return "<C wxScrolledWindow instance>"
523 class wxScrolledWindow(wxScrolledWindowPtr
):
524 def __init__(self
,arg0
,*args
) :
525 argl
= map(None,args
)
526 try: argl
[1] = argl
[1].this
528 try: argl
[2] = argl
[2].this
531 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
533 wx
._StdWindowCallbacks
(self
)
534 wx
._StdOnScrollCallbacks
(self
)
539 class wxMenuPtr(wxEvtHandlerPtr
):
540 def __init__(self
,this
):
543 def Append(self
,arg0
,arg1
,*args
):
544 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
546 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
547 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
549 def AppendItem(self
,arg0
):
550 val
= windowsc
.wxMenu_AppendItem(self
.this
,arg0
.this
)
552 def AppendSeparator(self
):
553 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
556 val
= windowsc
.wxMenu_Break(self
.this
)
558 def Check(self
,arg0
,arg1
):
559 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
561 def Enable(self
,arg0
,arg1
):
562 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
564 def FindItem(self
,arg0
):
565 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
568 val
= windowsc
.wxMenu_GetTitle(self
.this
)
570 def SetTitle(self
,arg0
):
571 val
= windowsc
.wxMenu_SetTitle(self
.this
,arg0
)
573 def FindItemForId(self
,arg0
):
574 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
575 val
= wxMenuItemPtr(val
)
577 def GetHelpString(self
,arg0
):
578 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
580 def GetLabel(self
,arg0
):
581 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
583 def SetHelpString(self
,arg0
,arg1
):
584 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
586 def IsChecked(self
,arg0
):
587 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
589 def IsEnabled(self
,arg0
):
590 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
592 def SetLabel(self
,arg0
,arg1
):
593 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
595 def UpdateUI(self
,*args
):
596 argl
= map(None,args
)
597 try: argl
[0] = argl
[0].this
600 val
= apply(windowsc
.wxMenu_UpdateUI
,(self
.this
,)+args
)
603 return "<C wxMenu instance>"
604 class wxMenu(wxMenuPtr
):
605 def __init__(self
,*args
) :
606 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
612 class wxMenuBarPtr(wxEvtHandlerPtr
):
613 def __init__(self
,this
):
616 def Append(self
,arg0
,arg1
):
617 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
619 def Check(self
,arg0
,arg1
):
620 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
622 def Checked(self
,arg0
):
623 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
625 def Enable(self
,arg0
,arg1
):
626 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
628 def Enabled(self
,arg0
):
629 val
= windowsc
.wxMenuBar_Enabled(self
.this
,arg0
)
631 def FindMenuItem(self
,arg0
,arg1
):
632 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
634 def FindItemForId(self
,arg0
):
635 val
= windowsc
.wxMenuBar_FindItemForId(self
.this
,arg0
)
636 val
= wxMenuItemPtr(val
)
638 def EnableTop(self
,arg0
,arg1
):
639 val
= windowsc
.wxMenuBar_EnableTop(self
.this
,arg0
,arg1
)
641 def GetHelpString(self
,arg0
):
642 val
= windowsc
.wxMenuBar_GetHelpString(self
.this
,arg0
)
644 def GetLabel(self
,arg0
):
645 val
= windowsc
.wxMenuBar_GetLabel(self
.this
,arg0
)
647 def SetHelpString(self
,arg0
,arg1
):
648 val
= windowsc
.wxMenuBar_SetHelpString(self
.this
,arg0
,arg1
)
650 def SetLabel(self
,arg0
,arg1
):
651 val
= windowsc
.wxMenuBar_SetLabel(self
.this
,arg0
,arg1
)
653 def GetLabelTop(self
,arg0
):
654 val
= windowsc
.wxMenuBar_GetLabelTop(self
.this
,arg0
)
656 def SetLabelTop(self
,arg0
,arg1
):
657 val
= windowsc
.wxMenuBar_SetLabelTop(self
.this
,arg0
,arg1
)
659 def GetMenuCount(self
):
660 val
= windowsc
.wxMenuBar_GetMenuCount(self
.this
)
662 def GetMenu(self
,arg0
):
663 val
= windowsc
.wxMenuBar_GetMenu(self
.this
,arg0
)
667 return "<C wxMenuBar instance>"
668 class wxMenuBar(wxMenuBarPtr
):
670 self
.this
= windowsc
.new_wxMenuBar()
676 class wxMenuItemPtr
:
677 def __init__(self
,this
):
680 def IsSeparator(self
):
681 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
684 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
687 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
689 def IsCheckable(self
):
690 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
693 val
= windowsc
.wxMenuItem_GetId(self
.this
)
695 def GetSubMenu(self
):
696 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
699 def SetName(self
,arg0
):
700 val
= windowsc
.wxMenuItem_SetName(self
.this
,arg0
)
703 val
= windowsc
.wxMenuItem_GetName(self
.this
)
706 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
708 def SetHelp(self
,arg0
):
709 val
= windowsc
.wxMenuItem_SetHelp(self
.this
,arg0
)
711 def Enable(self
,*args
):
712 val
= apply(windowsc
.wxMenuItem_Enable
,(self
.this
,)+args
)
714 def Check(self
,*args
):
715 val
= apply(windowsc
.wxMenuItem_Check
,(self
.this
,)+args
)
717 def GetBackgroundColour(self
):
718 val
= windowsc
.wxMenuItem_GetBackgroundColour(self
.this
)
719 val
= wxColourPtr(val
)
721 def GetBitmap(self
,*args
):
722 val
= apply(windowsc
.wxMenuItem_GetBitmap
,(self
.this
,)+args
)
723 val
= wxBitmapPtr(val
)
727 val
= windowsc
.wxMenuItem_GetFont(self
.this
)
730 def GetMarginWidth(self
):
731 val
= windowsc
.wxMenuItem_GetMarginWidth(self
.this
)
733 def GetTextColour(self
):
734 val
= windowsc
.wxMenuItem_GetTextColour(self
.this
)
735 val
= wxColourPtr(val
)
737 def SetBackgroundColour(self
,arg0
):
738 val
= windowsc
.wxMenuItem_SetBackgroundColour(self
.this
,arg0
.this
)
740 def SetBitmaps(self
,arg0
,*args
):
741 argl
= map(None,args
)
742 try: argl
[0] = argl
[0].this
745 val
= apply(windowsc
.wxMenuItem_SetBitmaps
,(self
.this
,arg0
.this
,)+args
)
747 def SetFont(self
,arg0
):
748 val
= windowsc
.wxMenuItem_SetFont(self
.this
,arg0
.this
)
750 def SetMarginWidth(self
,arg0
):
751 val
= windowsc
.wxMenuItem_SetMarginWidth(self
.this
,arg0
)
753 def SetTextColour(self
,arg0
):
754 val
= windowsc
.wxMenuItem_SetTextColour(self
.this
,arg0
.this
)
756 def DeleteSubMenu(self
):
757 val
= windowsc
.wxMenuItem_DeleteSubMenu(self
.this
)
760 return "<C wxMenuItem instance>"
761 class wxMenuItem(wxMenuItemPtr
):
762 def __init__(self
,*args
) :
763 argl
= map(None,args
)
764 try: argl
[0] = argl
[0].this
766 try: argl
[5] = argl
[5].this
769 self
.this
= apply(windowsc
.new_wxMenuItem
,()+args
)
777 #-------------- FUNCTION WRAPPERS ------------------
779 def wxWindow_FindFocus():
780 val
= windowsc
.wxWindow_FindFocus()
781 val
= wxWindowPtr(val
)
784 def wxWindow_FromHWND(arg0
):
785 val
= windowsc
.wxWindow_FromHWND(arg0
)
786 val
= wxWindowPtr(val
)
791 #-------------- VARIABLE WRAPPERS ------------------