1 # This file was created automatically by SWIG.
7 class wxEvtHandlerPtr
:
8 def __init__(self
,this
):
11 def Connect(self
,arg0
,arg1
,arg2
,arg3
):
12 val
= windowsc
.wxEvtHandler_Connect(self
.this
,arg0
,arg1
,arg2
,arg3
)
15 return "<C wxEvtHandler instance>"
16 class wxEvtHandler(wxEvtHandlerPtr
):
17 def __init__(self
,this
):
23 class wxWindowPtr(wxEvtHandlerPtr
):
24 def __init__(self
,this
):
27 def CaptureMouse(self
):
28 val
= windowsc
.wxWindow_CaptureMouse(self
.this
)
30 def Center(self
,*args
):
31 val
= apply(windowsc
.wxWindow_Center
,(self
.this
,)+args
)
33 def Centre(self
,*args
):
34 val
= apply(windowsc
.wxWindow_Centre
,(self
.this
,)+args
)
36 def ClientToScreen(self
,arg0
,arg1
):
37 val
= windowsc
.wxWindow_ClientToScreen(self
.this
,arg0
,arg1
)
39 def Close(self
,*args
):
40 val
= apply(windowsc
.wxWindow_Close
,(self
.this
,)+args
)
43 val
= windowsc
.wxWindow_Destroy(self
.this
)
45 def DestroyChildren(self
):
46 val
= windowsc
.wxWindow_DestroyChildren(self
.this
)
48 def DragAcceptFiles(self
,arg0
):
49 val
= windowsc
.wxWindow_DragAcceptFiles(self
.this
,arg0
)
51 def Enable(self
,arg0
):
52 val
= windowsc
.wxWindow_Enable(self
.this
,arg0
)
54 def FindWindowByID(self
,arg0
):
55 val
= windowsc
.wxWindow_FindWindowByID(self
.this
,arg0
)
56 val
= wxWindowPtr(val
)
58 def FindWindowByName(self
,arg0
):
59 val
= windowsc
.wxWindow_FindWindowByName(self
.this
,arg0
)
60 val
= wxWindowPtr(val
)
63 val
= windowsc
.wxWindow_Fit(self
.this
)
65 def GetBackgroundColour(self
):
66 val
= windowsc
.wxWindow_GetBackgroundColour(self
.this
)
67 val
= wxColourPtr(val
)
70 def GetCharHeight(self
):
71 val
= windowsc
.wxWindow_GetCharHeight(self
.this
)
73 def GetCharWidth(self
):
74 val
= windowsc
.wxWindow_GetCharWidth(self
.this
)
76 def GetClientSize(self
):
77 val
= windowsc
.wxWindow_GetClientSize(self
.this
)
79 def GetConstraints(self
):
80 val
= windowsc
.wxWindow_GetConstraints(self
.this
)
81 val
= wxLayoutConstraintsPtr(val
)
83 def GetDefaultItem(self
):
84 val
= windowsc
.wxWindow_GetDefaultItem(self
.this
)
85 val
= wxButtonPtr(val
)
88 val
= windowsc
.wxWindow_GetFont(self
.this
)
91 def GetForegroundColour(self
):
92 val
= windowsc
.wxWindow_GetForegroundColour(self
.this
)
93 val
= wxColourPtr(val
)
96 def GetGrandParent(self
):
97 val
= windowsc
.wxWindow_GetGrandParent(self
.this
)
98 val
= wxWindowPtr(val
)
101 val
= windowsc
.wxWindow_GetId(self
.this
)
103 def GetPosition(self
):
104 val
= windowsc
.wxWindow_GetPosition(self
.this
)
107 val
= windowsc
.wxWindow_GetLabel(self
.this
)
110 val
= windowsc
.wxWindow_GetName(self
.this
)
113 val
= windowsc
.wxWindow_GetParent(self
.this
)
114 val
= wxWindowPtr(val
)
116 def GetReturnCode(self
):
117 val
= windowsc
.wxWindow_GetReturnCode(self
.this
)
119 def GetScrollThumb(self
,arg0
):
120 val
= windowsc
.wxWindow_GetScrollThumb(self
.this
,arg0
)
122 def GetScrollPos(self
,arg0
):
123 val
= windowsc
.wxWindow_GetScrollPos(self
.this
,arg0
)
125 def GetScrollRange(self
,arg0
):
126 val
= windowsc
.wxWindow_GetScrollRange(self
.this
,arg0
)
129 val
= windowsc
.wxWindow_GetSize(self
.this
)
131 def GetTextExtent(self
,arg0
):
132 val
= windowsc
.wxWindow_GetTextExtent(self
.this
,arg0
)
135 val
= windowsc
.wxWindow_GetTitle(self
.this
)
137 def GetWindowStyleFlag(self
):
138 val
= windowsc
.wxWindow_GetWindowStyleFlag(self
.this
)
140 def InitDialog(self
):
141 val
= windowsc
.wxWindow_InitDialog(self
.this
)
144 val
= windowsc
.wxWindow_IsEnabled(self
.this
)
146 def IsRetained(self
):
147 val
= windowsc
.wxWindow_IsRetained(self
.this
)
150 val
= windowsc
.wxWindow_IsShown(self
.this
)
153 val
= windowsc
.wxWindow_Layout(self
.this
)
155 def LoadFromResource(self
,arg0
,arg1
,*args
):
156 val
= apply(windowsc
.wxWindow_LoadFromResource
,(self
.this
,arg0
.this
,arg1
,)+args
)
159 val
= windowsc
.wxWindow_Lower(self
.this
)
161 def MakeModal(self
,arg0
):
162 val
= windowsc
.wxWindow_MakeModal(self
.this
,arg0
)
164 def Move(self
,arg0
,arg1
):
165 val
= windowsc
.wxWindow_Move(self
.this
,arg0
,arg1
)
167 def PopupMenu(self
,arg0
,arg1
,arg2
):
168 val
= windowsc
.wxWindow_PopupMenu(self
.this
,arg0
.this
,arg1
,arg2
)
171 val
= windowsc
.wxWindow_Raise(self
.this
)
173 def Refresh(self
,*args
):
174 argl
= map(None,args
)
175 try: argl
[1] = argl
[1].this
178 val
= apply(windowsc
.wxWindow_Refresh
,(self
.this
,)+args
)
180 def ReleaseMouse(self
):
181 val
= windowsc
.wxWindow_ReleaseMouse(self
.this
)
183 def ScreenToClient(self
,arg0
,arg1
):
184 val
= windowsc
.wxWindow_ScreenToClient(self
.this
,arg0
,arg1
)
186 def ScrollWindow(self
,arg0
,arg1
,*args
):
187 argl
= map(None,args
)
188 try: argl
[0] = argl
[0].this
191 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
.this
,arg0
,arg1
,)+args
)
193 def SetAutoLayout(self
,arg0
):
194 val
= windowsc
.wxWindow_SetAutoLayout(self
.this
,arg0
)
196 def SetBackgroundColour(self
,arg0
):
197 val
= windowsc
.wxWindow_SetBackgroundColour(self
.this
,arg0
.this
)
199 def SetConstraints(self
,arg0
):
200 val
= windowsc
.wxWindow_SetConstraints(self
.this
,arg0
.this
)
202 def SetDoubleClick(self
,arg0
):
203 val
= windowsc
.wxWindow_SetDoubleClick(self
.this
,arg0
)
206 val
= windowsc
.wxWindow_SetFocus(self
.this
)
208 def SetFont(self
,arg0
):
209 val
= windowsc
.wxWindow_SetFont(self
.this
,arg0
.this
)
211 def SetForegroundColour(self
,arg0
):
212 val
= windowsc
.wxWindow_SetForegroundColour(self
.this
,arg0
.this
)
214 def SetId(self
,arg0
):
215 val
= windowsc
.wxWindow_SetId(self
.this
,arg0
)
217 def SetName(self
,arg0
):
218 val
= windowsc
.wxWindow_SetName(self
.this
,arg0
)
220 def SetReturnCode(self
,arg0
):
221 val
= windowsc
.wxWindow_SetReturnCode(self
.this
,arg0
)
223 def SetScrollbar(self
,arg0
,arg1
,arg2
,arg3
,*args
):
224 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
226 def SetScrollPos(self
,arg0
,arg1
,*args
):
227 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
.this
,arg0
,arg1
,)+args
)
229 def SetDimensions(self
,arg0
,arg1
,arg2
,arg3
,*args
):
230 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
232 def SetSize(self
,arg0
):
233 val
= windowsc
.wxWindow_SetSize(self
.this
,arg0
.this
)
235 def SetPosition(self
,arg0
):
236 val
= windowsc
.wxWindow_SetPosition(self
.this
,arg0
.this
)
238 def SetSizeHints(self
,*args
):
239 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
.this
,)+args
)
241 def SetClientSize(self
,arg0
,arg1
):
242 val
= windowsc
.wxWindow_SetClientSize(self
.this
,arg0
,arg1
)
244 def SetCursor(self
,arg0
):
245 val
= windowsc
.wxWindow_SetCursor(self
.this
,arg0
.this
)
247 def SetTitle(self
,arg0
):
248 val
= windowsc
.wxWindow_SetTitle(self
.this
,arg0
)
251 val
= windowsc
.wxWindow_Show(self
.this
,arg0
)
253 def TransferDataFromWindow(self
):
254 val
= windowsc
.wxWindow_TransferDataFromWindow(self
.this
)
256 def TransferDataToWindow(self
):
257 val
= windowsc
.wxWindow_TransferDataToWindow(self
.this
)
260 val
= windowsc
.wxWindow_Validate(self
.this
)
262 def WarpPointer(self
,arg0
,arg1
):
263 val
= windowsc
.wxWindow_WarpPointer(self
.this
,arg0
,arg1
)
266 return "<C wxWindow instance>"
267 class wxWindow(wxWindowPtr
):
268 def __init__(self
,arg0
,arg1
,*args
) :
269 argl
= map(None,args
)
270 try: argl
[0] = argl
[0].this
272 try: argl
[1] = argl
[1].this
275 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
281 class wxFramePtr(wxWindowPtr
):
282 def __init__(self
,this
):
285 def Centre(self
,*args
):
286 val
= apply(windowsc
.wxFrame_Centre
,(self
.this
,)+args
)
288 def Command(self
,arg0
):
289 val
= windowsc
.wxFrame_Command(self
.this
,arg0
)
291 def CreateStatusBar(self
,*args
):
292 val
= apply(windowsc
.wxFrame_CreateStatusBar
,(self
.this
,)+args
)
294 def GetMenuBar(self
):
295 val
= windowsc
.wxFrame_GetMenuBar(self
.this
)
296 val
= wxMenuBarPtr(val
)
298 def GetStatusBar(self
):
299 val
= windowsc
.wxFrame_GetStatusBar(self
.this
)
302 val
= windowsc
.wxFrame_GetTitle(self
.this
)
304 def Iconize(self
,arg0
):
305 val
= windowsc
.wxFrame_Iconize(self
.this
,arg0
)
307 def IsIconized(self
):
308 val
= windowsc
.wxFrame_IsIconized(self
.this
)
310 def Maximize(self
,arg0
):
311 val
= windowsc
.wxFrame_Maximize(self
.this
,arg0
)
313 def SetAcceleratorTable(self
,arg0
):
314 val
= windowsc
.wxFrame_SetAcceleratorTable(self
.this
,arg0
.this
)
316 def SetIcon(self
,arg0
):
317 val
= windowsc
.wxFrame_SetIcon(self
.this
,arg0
.this
)
319 def SetMenuBar(self
,arg0
):
320 val
= windowsc
.wxFrame_SetMenuBar(self
.this
,arg0
.this
)
322 def SetStatusText(self
,arg0
,*args
):
323 val
= apply(windowsc
.wxFrame_SetStatusText
,(self
.this
,arg0
,)+args
)
325 def SetStatusWidths(self
,arg0
,*args
):
326 val
= apply(windowsc
.wxFrame_SetStatusWidths
,(self
.this
,arg0
,)+args
)
328 def SetTitle(self
,arg0
):
329 val
= windowsc
.wxFrame_SetTitle(self
.this
,arg0
)
332 return "<C wxFrame instance>"
333 class wxFrame(wxFramePtr
):
334 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
335 argl
= map(None,args
)
336 try: argl
[0] = argl
[0].this
338 try: argl
[1] = argl
[1].this
341 self
.this
= apply(windowsc
.new_wxFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
347 class wxMiniFramePtr(wxFramePtr
):
348 def __init__(self
,this
):
352 return "<C wxMiniFrame instance>"
353 class wxMiniFrame(wxMiniFramePtr
):
354 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
355 argl
= map(None,args
)
356 try: argl
[0] = argl
[0].this
358 try: argl
[1] = argl
[1].this
361 self
.this
= apply(windowsc
.new_wxMiniFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
367 class wxPanelPtr(wxWindowPtr
):
368 def __init__(self
,this
):
371 def InitDialog(self
):
372 val
= windowsc
.wxPanel_InitDialog(self
.this
)
375 return "<C wxPanel instance>"
376 class wxPanel(wxPanelPtr
):
377 def __init__(self
,arg0
,arg1
,*args
) :
378 argl
= map(None,args
)
379 try: argl
[0] = argl
[0].this
381 try: argl
[1] = argl
[1].this
384 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
390 class wxDialogPtr(wxPanelPtr
):
391 def __init__(self
,this
):
394 def Centre(self
,*args
):
395 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
397 def EndModal(self
,arg0
):
398 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
401 val
= windowsc
.wxDialog_GetTitle(self
.this
)
403 def Iconize(self
,arg0
):
404 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
406 def IsIconized(self
):
407 val
= windowsc
.wxDialog_IsIconized(self
.this
)
409 def SetModal(self
,arg0
):
410 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
413 val
= windowsc
.wxDialog_IsModal(self
.this
)
415 def SetTitle(self
,arg0
):
416 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
419 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
422 val
= windowsc
.wxDialog_ShowModal(self
.this
)
425 return "<C wxDialog instance>"
426 class wxDialog(wxDialogPtr
):
427 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
428 argl
= map(None,args
)
429 try: argl
[0] = argl
[0].this
431 try: argl
[1] = argl
[1].this
434 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
440 class wxScrolledWindowPtr(wxWindowPtr
):
441 def __init__(self
,this
):
444 def EnableScrolling(self
,arg0
,arg1
):
445 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
447 def GetScrollPixelsPerUnit(self
):
448 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
450 def GetVirtualSize(self
):
451 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
453 def IsRetained(self
):
454 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
456 def PrepareDC(self
,arg0
):
457 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
459 def Scroll(self
,arg0
,arg1
):
460 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
462 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
463 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
466 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
469 return "<C wxScrolledWindow instance>"
470 class wxScrolledWindow(wxScrolledWindowPtr
):
471 def __init__(self
,arg0
,*args
) :
472 argl
= map(None,args
)
473 try: argl
[1] = argl
[1].this
475 try: argl
[2] = argl
[2].this
478 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
484 class wxMenuPtr(wxEvtHandlerPtr
):
485 def __init__(self
,this
):
488 def Append(self
,arg0
,arg1
,*args
):
489 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
491 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
492 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
494 def AppendSeparator(self
):
495 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
498 val
= windowsc
.wxMenu_Break(self
.this
)
500 def Check(self
,arg0
,arg1
):
501 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
503 def Enable(self
,arg0
,arg1
):
504 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
506 def FindItem(self
,arg0
):
507 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
510 val
= windowsc
.wxMenu_GetTitle(self
.this
)
512 def SetTitle(self
,arg0
):
513 val
= windowsc
.wxMenu_SetTitle(self
.this
,arg0
)
515 def FindItemForId(self
,arg0
):
516 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
517 val
= wxMenuItemPtr(val
)
519 def GetHelpString(self
,arg0
):
520 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
522 def GetLabel(self
,arg0
):
523 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
525 def SetHelpString(self
,arg0
,arg1
):
526 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
528 def IsChecked(self
,arg0
):
529 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
531 def IsEnabled(self
,arg0
):
532 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
534 def SetLabel(self
,arg0
,arg1
):
535 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
538 return "<C wxMenu instance>"
539 class wxMenu(wxMenuPtr
):
540 def __init__(self
,*args
) :
541 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
547 class wxPyMenuPtr(wxMenuPtr
):
548 def __init__(self
,this
):
552 if self
.thisown
== 1 :
553 windowsc
.delete_wxPyMenu(self
.this
)
555 return "<C wxPyMenu instance>"
556 class wxPyMenu(wxPyMenuPtr
):
557 def __init__(self
,*args
) :
558 self
.this
= apply(windowsc
.new_wxPyMenu
,()+args
)
564 class wxMenuBarPtr(wxEvtHandlerPtr
):
565 def __init__(self
,this
):
568 def Append(self
,arg0
,arg1
):
569 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
571 def Check(self
,arg0
,arg1
):
572 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
574 def Checked(self
,arg0
):
575 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
577 def Enable(self
,arg0
,arg1
):
578 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
580 def Enabled(self
,arg0
):
581 val
= windowsc
.wxMenuBar_Enabled(self
.this
,arg0
)
583 def FindMenuItem(self
,arg0
,arg1
):
584 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
586 def FindItemForId(self
,arg0
):
587 val
= windowsc
.wxMenuBar_FindItemForId(self
.this
,arg0
)
588 val
= wxMenuItemPtr(val
)
590 def EnableTop(self
,arg0
,arg1
):
591 val
= windowsc
.wxMenuBar_EnableTop(self
.this
,arg0
,arg1
)
593 def GetHelpString(self
,arg0
):
594 val
= windowsc
.wxMenuBar_GetHelpString(self
.this
,arg0
)
596 def GetLabel(self
,arg0
):
597 val
= windowsc
.wxMenuBar_GetLabel(self
.this
,arg0
)
599 def SetHelpString(self
,arg0
,arg1
):
600 val
= windowsc
.wxMenuBar_SetHelpString(self
.this
,arg0
,arg1
)
602 def SetLabel(self
,arg0
,arg1
):
603 val
= windowsc
.wxMenuBar_SetLabel(self
.this
,arg0
,arg1
)
605 def GetLabelTop(self
,arg0
):
606 val
= windowsc
.wxMenuBar_GetLabelTop(self
.this
,arg0
)
608 def SetLabelTop(self
,arg0
,arg1
):
609 val
= windowsc
.wxMenuBar_SetLabelTop(self
.this
,arg0
,arg1
)
611 def GetMenuCount(self
):
612 val
= windowsc
.wxMenuBar_GetMenuCount(self
.this
)
614 def GetMenu(self
,arg0
):
615 val
= windowsc
.wxMenuBar_GetMenu(self
.this
,arg0
)
619 return "<C wxMenuBar instance>"
620 class wxMenuBar(wxMenuBarPtr
):
622 self
.this
= windowsc
.new_wxMenuBar()
628 class wxMenuItemPtr
:
629 def __init__(self
,this
):
632 def IsSeparator(self
):
633 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
636 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
639 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
641 def IsCheckable(self
):
642 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
645 val
= windowsc
.wxMenuItem_GetId(self
.this
)
647 def GetSubMenu(self
):
648 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
651 def SetName(self
,arg0
):
652 val
= windowsc
.wxMenuItem_SetName(self
.this
,arg0
)
654 def DeleteSubMenu(self
):
655 val
= windowsc
.wxMenuItem_DeleteSubMenu(self
.this
)
658 val
= windowsc
.wxMenuItem_GetName(self
.this
)
661 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
663 def SetHelp(self
,arg0
):
664 val
= windowsc
.wxMenuItem_SetHelp(self
.this
,arg0
)
666 def Enable(self
,*args
):
667 val
= apply(windowsc
.wxMenuItem_Enable
,(self
.this
,)+args
)
669 def Check(self
,*args
):
670 val
= apply(windowsc
.wxMenuItem_Check
,(self
.this
,)+args
)
673 return "<C wxMenuItem instance>"
674 class wxMenuItem(wxMenuItemPtr
):
675 def __init__(self
,this
):
683 #-------------- FUNCTION WRAPPERS ------------------
685 def wxWindow_FindFocus():
686 val
= windowsc
.wxWindow_FindFocus()
687 val
= wxWindowPtr(val
)
692 #-------------- VARIABLE WRAPPERS ------------------