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 GetWindowStyleFlag(self
):
189 val
= windowsc
.wxWindow_GetWindowStyleFlag(self
.this
)
192 val
= windowsc
.wxWindow_Hide(self
.this
)
194 def InitDialog(self
):
195 val
= windowsc
.wxWindow_InitDialog(self
.this
)
198 val
= windowsc
.wxWindow_IsEnabled(self
.this
)
200 def IsRetained(self
):
201 val
= windowsc
.wxWindow_IsRetained(self
.this
)
204 val
= windowsc
.wxWindow_IsShown(self
.this
)
206 def IsTopLevel(self
):
207 val
= windowsc
.wxWindow_IsTopLevel(self
.this
)
210 val
= windowsc
.wxWindow_Layout(self
.this
)
212 def LoadFromResource(self
,arg0
,arg1
,*args
):
213 val
= apply(windowsc
.wxWindow_LoadFromResource
,(self
.this
,arg0
.this
,arg1
,)+args
)
216 val
= windowsc
.wxWindow_Lower(self
.this
)
218 def MakeModal(self
,arg0
):
219 val
= windowsc
.wxWindow_MakeModal(self
.this
,arg0
)
221 def MoveXY(self
,arg0
,arg1
):
222 val
= windowsc
.wxWindow_MoveXY(self
.this
,arg0
,arg1
)
225 val
= windowsc
.wxWindow_Move(self
.this
,arg0
.this
)
227 def PopupMenu(self
,arg0
,arg1
,arg2
):
228 val
= windowsc
.wxWindow_PopupMenu(self
.this
,arg0
.this
,arg1
,arg2
)
231 val
= windowsc
.wxWindow_Raise(self
.this
)
233 def Refresh(self
,*args
):
234 argl
= map(None,args
)
235 try: argl
[1] = argl
[1].this
238 val
= apply(windowsc
.wxWindow_Refresh
,(self
.this
,)+args
)
240 def ReleaseMouse(self
):
241 val
= windowsc
.wxWindow_ReleaseMouse(self
.this
)
243 def Reparent(self
,arg0
):
244 val
= windowsc
.wxWindow_Reparent(self
.this
,arg0
.this
)
246 def ScreenToClientXY(self
,arg0
,arg1
):
247 val
= windowsc
.wxWindow_ScreenToClientXY(self
.this
,arg0
,arg1
)
249 def ScreenToClient(self
,arg0
):
250 val
= windowsc
.wxWindow_ScreenToClient(self
.this
,arg0
.this
)
251 val
= wxPointPtr(val
)
254 def ScrollWindow(self
,arg0
,arg1
,*args
):
255 argl
= map(None,args
)
256 try: argl
[0] = argl
[0].this
259 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
.this
,arg0
,arg1
,)+args
)
261 def SetAcceleratorTable(self
,arg0
):
262 val
= windowsc
.wxWindow_SetAcceleratorTable(self
.this
,arg0
.this
)
264 def SetAutoLayout(self
,arg0
):
265 val
= windowsc
.wxWindow_SetAutoLayout(self
.this
,arg0
)
267 def SetBackgroundColour(self
,arg0
):
268 val
= windowsc
.wxWindow_SetBackgroundColour(self
.this
,arg0
.this
)
270 def SetConstraints(self
,arg0
):
271 val
= windowsc
.wxWindow_SetConstraints(self
.this
,arg0
.this
)
274 val
= windowsc
.wxWindow_SetFocus(self
.this
)
276 def SetFont(self
,arg0
):
277 val
= windowsc
.wxWindow_SetFont(self
.this
,arg0
.this
)
279 def SetForegroundColour(self
,arg0
):
280 val
= windowsc
.wxWindow_SetForegroundColour(self
.this
,arg0
.this
)
282 def SetId(self
,arg0
):
283 val
= windowsc
.wxWindow_SetId(self
.this
,arg0
)
285 def SetName(self
,arg0
):
286 val
= windowsc
.wxWindow_SetName(self
.this
,arg0
)
288 def SetScrollbar(self
,arg0
,arg1
,arg2
,arg3
,*args
):
289 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
291 def SetScrollPos(self
,arg0
,arg1
,*args
):
292 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
.this
,arg0
,arg1
,)+args
)
294 def SetDimensions(self
,arg0
,arg1
,arg2
,arg3
,*args
):
295 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
297 def SetSize(self
,arg0
):
298 val
= windowsc
.wxWindow_SetSize(self
.this
,arg0
.this
)
300 def SetPosition(self
,arg0
):
301 val
= windowsc
.wxWindow_SetPosition(self
.this
,arg0
.this
)
303 def SetSizeHints(self
,*args
):
304 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
.this
,)+args
)
306 def SetClientSizeWH(self
,arg0
,arg1
):
307 val
= windowsc
.wxWindow_SetClientSizeWH(self
.this
,arg0
,arg1
)
309 def SetClientSize(self
,arg0
):
310 val
= windowsc
.wxWindow_SetClientSize(self
.this
,arg0
.this
)
312 def SetCursor(self
,arg0
):
313 val
= windowsc
.wxWindow_SetCursor(self
.this
,arg0
.this
)
315 def SetTitle(self
,arg0
):
316 val
= windowsc
.wxWindow_SetTitle(self
.this
,arg0
)
319 val
= windowsc
.wxWindow_Show(self
.this
,arg0
)
321 def TransferDataFromWindow(self
):
322 val
= windowsc
.wxWindow_TransferDataFromWindow(self
.this
)
324 def TransferDataToWindow(self
):
325 val
= windowsc
.wxWindow_TransferDataToWindow(self
.this
)
328 val
= windowsc
.wxWindow_Validate(self
.this
)
330 def WarpPointer(self
,arg0
,arg1
):
331 val
= windowsc
.wxWindow_WarpPointer(self
.this
,arg0
,arg1
)
333 def ConvertDialogPointToPixels(self
,arg0
):
334 val
= windowsc
.wxWindow_ConvertDialogPointToPixels(self
.this
,arg0
.this
)
335 val
= wxPointPtr(val
)
338 def ConvertDialogSizeToPixels(self
,arg0
):
339 val
= windowsc
.wxWindow_ConvertDialogSizeToPixels(self
.this
,arg0
.this
)
343 def DLG_PNT(self
,arg0
):
344 val
= windowsc
.wxWindow_DLG_PNT(self
.this
,arg0
.this
)
345 val
= wxPointPtr(val
)
348 def DLG_SZE(self
,arg0
):
349 val
= windowsc
.wxWindow_DLG_SZE(self
.this
,arg0
.this
)
353 def ConvertPixelPointToDialog(self
,arg0
):
354 val
= windowsc
.wxWindow_ConvertPixelPointToDialog(self
.this
,arg0
.this
)
355 val
= wxPointPtr(val
)
358 def ConvertPixelSizeToDialog(self
,arg0
):
359 val
= windowsc
.wxWindow_ConvertPixelSizeToDialog(self
.this
,arg0
.this
)
363 def SetToolTipString(self
,arg0
):
364 val
= windowsc
.wxWindow_SetToolTipString(self
.this
,arg0
)
366 def SetToolTip(self
,arg0
):
367 val
= windowsc
.wxWindow_SetToolTip(self
.this
,arg0
.this
)
369 def GetToolTip(self
):
370 val
= windowsc
.wxWindow_GetToolTip(self
.this
)
371 val
= wxToolTipPtr(val
)
374 return "<C wxWindow instance>"
375 class wxWindow(wxWindowPtr
):
376 def __init__(self
,arg0
,arg1
,*args
) :
377 argl
= map(None,args
)
378 try: argl
[0] = argl
[0].this
380 try: argl
[1] = argl
[1].this
383 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
385 wx
._StdWindowCallbacks
(self
)
390 class wxPanelPtr(wxWindowPtr
):
391 def __init__(self
,this
):
394 def InitDialog(self
):
395 val
= windowsc
.wxPanel_InitDialog(self
.this
)
397 def GetDefaultItem(self
):
398 val
= windowsc
.wxPanel_GetDefaultItem(self
.this
)
399 val
= wxButtonPtr(val
)
401 def SetDefaultItem(self
,arg0
):
402 val
= windowsc
.wxPanel_SetDefaultItem(self
.this
,arg0
.this
)
405 return "<C wxPanel instance>"
407 def GetDefaultItem(self
):
409 val
= windowsc
.wxPanel_GetDefaultItem(self
.this
)
410 val
= controls
.wxButtonPtr(val
)
413 class wxPanel(wxPanelPtr
):
414 def __init__(self
,arg0
,arg1
,*args
) :
415 argl
= map(None,args
)
416 try: argl
[0] = argl
[0].this
418 try: argl
[1] = argl
[1].this
421 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
423 wx
._StdWindowCallbacks
(self
)
428 class wxDialogPtr(wxPanelPtr
):
429 def __init__(self
,this
):
432 def Centre(self
,*args
):
433 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
435 def EndModal(self
,arg0
):
436 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
439 val
= windowsc
.wxDialog_GetTitle(self
.this
)
441 def Iconize(self
,arg0
):
442 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
444 def IsIconized(self
):
445 val
= windowsc
.wxDialog_IsIconized(self
.this
)
447 def SetModal(self
,arg0
):
448 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
451 val
= windowsc
.wxDialog_IsModal(self
.this
)
453 def SetTitle(self
,arg0
):
454 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
457 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
460 val
= windowsc
.wxDialog_ShowModal(self
.this
)
462 def GetReturnCode(self
):
463 val
= windowsc
.wxDialog_GetReturnCode(self
.this
)
465 def SetReturnCode(self
,arg0
):
466 val
= windowsc
.wxDialog_SetReturnCode(self
.this
,arg0
)
469 return "<C wxDialog instance>"
470 class wxDialog(wxDialogPtr
):
471 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
472 argl
= map(None,args
)
473 try: argl
[0] = argl
[0].this
475 try: argl
[1] = argl
[1].this
478 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
480 wx
._StdDialogCallbacks
(self
)
485 class wxScrolledWindowPtr(wxPanelPtr
):
486 def __init__(self
,this
):
489 def EnableScrolling(self
,arg0
,arg1
):
490 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
492 def GetScrollPixelsPerUnit(self
):
493 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
495 def GetVirtualSize(self
):
496 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
498 def IsRetained(self
):
499 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
501 def PrepareDC(self
,arg0
):
502 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
504 def Scroll(self
,arg0
,arg1
):
505 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
507 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
508 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
511 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
514 return "<C wxScrolledWindow instance>"
515 class wxScrolledWindow(wxScrolledWindowPtr
):
516 def __init__(self
,arg0
,*args
) :
517 argl
= map(None,args
)
518 try: argl
[1] = argl
[1].this
520 try: argl
[2] = argl
[2].this
523 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
525 wx
._StdWindowCallbacks
(self
)
526 wx
._StdOnScrollCallbacks
(self
)
531 class wxMenuPtr(wxEvtHandlerPtr
):
532 def __init__(self
,this
):
535 def Append(self
,arg0
,arg1
,*args
):
536 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
538 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
539 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
541 def AppendItem(self
,arg0
):
542 val
= windowsc
.wxMenu_AppendItem(self
.this
,arg0
.this
)
544 def AppendSeparator(self
):
545 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
548 val
= windowsc
.wxMenu_Break(self
.this
)
550 def Check(self
,arg0
,arg1
):
551 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
553 def Enable(self
,arg0
,arg1
):
554 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
556 def FindItem(self
,arg0
):
557 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
560 val
= windowsc
.wxMenu_GetTitle(self
.this
)
562 def SetTitle(self
,arg0
):
563 val
= windowsc
.wxMenu_SetTitle(self
.this
,arg0
)
565 def FindItemForId(self
,arg0
):
566 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
567 val
= wxMenuItemPtr(val
)
569 def GetHelpString(self
,arg0
):
570 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
572 def GetLabel(self
,arg0
):
573 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
575 def SetHelpString(self
,arg0
,arg1
):
576 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
578 def IsChecked(self
,arg0
):
579 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
581 def IsEnabled(self
,arg0
):
582 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
584 def SetLabel(self
,arg0
,arg1
):
585 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
588 return "<C wxMenu instance>"
589 class wxMenu(wxMenuPtr
):
590 def __init__(self
,*args
) :
591 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
597 class wxPyMenuPtr(wxMenuPtr
):
598 def __init__(self
,this
):
602 if self
.thisown
== 1 :
603 windowsc
.delete_wxPyMenu(self
.this
)
605 return "<C wxPyMenu instance>"
606 class wxPyMenu(wxPyMenuPtr
):
607 def __init__(self
,*args
) :
608 self
.this
= apply(windowsc
.new_wxPyMenu
,()+args
)
614 class wxMenuBarPtr(wxEvtHandlerPtr
):
615 def __init__(self
,this
):
618 def Append(self
,arg0
,arg1
):
619 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
621 def Check(self
,arg0
,arg1
):
622 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
624 def Checked(self
,arg0
):
625 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
627 def Enable(self
,arg0
,arg1
):
628 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
630 def Enabled(self
,arg0
):
631 val
= windowsc
.wxMenuBar_Enabled(self
.this
,arg0
)
633 def FindMenuItem(self
,arg0
,arg1
):
634 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
636 def FindItemForId(self
,arg0
):
637 val
= windowsc
.wxMenuBar_FindItemForId(self
.this
,arg0
)
638 val
= wxMenuItemPtr(val
)
640 def EnableTop(self
,arg0
,arg1
):
641 val
= windowsc
.wxMenuBar_EnableTop(self
.this
,arg0
,arg1
)
643 def GetHelpString(self
,arg0
):
644 val
= windowsc
.wxMenuBar_GetHelpString(self
.this
,arg0
)
646 def GetLabel(self
,arg0
):
647 val
= windowsc
.wxMenuBar_GetLabel(self
.this
,arg0
)
649 def SetHelpString(self
,arg0
,arg1
):
650 val
= windowsc
.wxMenuBar_SetHelpString(self
.this
,arg0
,arg1
)
652 def SetLabel(self
,arg0
,arg1
):
653 val
= windowsc
.wxMenuBar_SetLabel(self
.this
,arg0
,arg1
)
655 def GetLabelTop(self
,arg0
):
656 val
= windowsc
.wxMenuBar_GetLabelTop(self
.this
,arg0
)
658 def SetLabelTop(self
,arg0
,arg1
):
659 val
= windowsc
.wxMenuBar_SetLabelTop(self
.this
,arg0
,arg1
)
661 def GetMenuCount(self
):
662 val
= windowsc
.wxMenuBar_GetMenuCount(self
.this
)
664 def GetMenu(self
,arg0
):
665 val
= windowsc
.wxMenuBar_GetMenu(self
.this
,arg0
)
669 return "<C wxMenuBar instance>"
670 class wxMenuBar(wxMenuBarPtr
):
672 self
.this
= windowsc
.new_wxMenuBar()
678 class wxMenuItemPtr
:
679 def __init__(self
,this
):
682 def IsSeparator(self
):
683 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
686 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
689 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
691 def IsCheckable(self
):
692 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
695 val
= windowsc
.wxMenuItem_GetId(self
.this
)
697 def GetSubMenu(self
):
698 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
701 def SetName(self
,arg0
):
702 val
= windowsc
.wxMenuItem_SetName(self
.this
,arg0
)
705 val
= windowsc
.wxMenuItem_GetName(self
.this
)
708 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
710 def SetHelp(self
,arg0
):
711 val
= windowsc
.wxMenuItem_SetHelp(self
.this
,arg0
)
713 def Enable(self
,*args
):
714 val
= apply(windowsc
.wxMenuItem_Enable
,(self
.this
,)+args
)
716 def Check(self
,*args
):
717 val
= apply(windowsc
.wxMenuItem_Check
,(self
.this
,)+args
)
719 def GetBackgroundColour(self
):
720 val
= windowsc
.wxMenuItem_GetBackgroundColour(self
.this
)
721 val
= wxColourPtr(val
)
723 def GetBitmap(self
,*args
):
724 val
= apply(windowsc
.wxMenuItem_GetBitmap
,(self
.this
,)+args
)
725 val
= wxBitmapPtr(val
)
729 val
= windowsc
.wxMenuItem_GetFont(self
.this
)
732 def GetMarginWidth(self
):
733 val
= windowsc
.wxMenuItem_GetMarginWidth(self
.this
)
735 def GetTextColour(self
):
736 val
= windowsc
.wxMenuItem_GetTextColour(self
.this
)
737 val
= wxColourPtr(val
)
739 def SetBackgroundColour(self
,arg0
):
740 val
= windowsc
.wxMenuItem_SetBackgroundColour(self
.this
,arg0
.this
)
742 def SetBitmaps(self
,arg0
,*args
):
743 argl
= map(None,args
)
744 try: argl
[0] = argl
[0].this
747 val
= apply(windowsc
.wxMenuItem_SetBitmaps
,(self
.this
,arg0
.this
,)+args
)
749 def SetFont(self
,arg0
):
750 val
= windowsc
.wxMenuItem_SetFont(self
.this
,arg0
.this
)
752 def SetMarginWidth(self
,arg0
):
753 val
= windowsc
.wxMenuItem_SetMarginWidth(self
.this
,arg0
)
755 def SetTextColour(self
,arg0
):
756 val
= windowsc
.wxMenuItem_SetTextColour(self
.this
,arg0
.this
)
758 def DeleteSubMenu(self
):
759 val
= windowsc
.wxMenuItem_DeleteSubMenu(self
.this
)
762 return "<C wxMenuItem instance>"
763 class wxMenuItem(wxMenuItemPtr
):
764 def __init__(self
,*args
) :
765 argl
= map(None,args
)
766 try: argl
[0] = argl
[0].this
768 try: argl
[5] = argl
[5].this
771 self
.this
= apply(windowsc
.new_wxMenuItem
,()+args
)
779 #-------------- FUNCTION WRAPPERS ------------------
781 def wxWindow_FindFocus():
782 val
= windowsc
.wxWindow_FindFocus()
783 val
= wxWindowPtr(val
)
786 def wxWindow_FromHWND(arg0
):
787 val
= windowsc
.wxWindow_FromHWND(arg0
)
788 val
= wxWindowPtr(val
)
793 #-------------- VARIABLE WRAPPERS ------------------