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 Centre(self
,*args
):
31 val
= apply(windowsc
.wxWindow_Centre
,(self
.this
,)+args
)
33 def ClientToScreen(self
,arg0
,arg1
):
34 val
= windowsc
.wxWindow_ClientToScreen(self
.this
,arg0
,arg1
)
36 def Close(self
,*args
):
37 val
= apply(windowsc
.wxWindow_Close
,(self
.this
,)+args
)
40 val
= windowsc
.wxWindow_Destroy(self
.this
)
42 def DestroyChildren(self
):
43 val
= windowsc
.wxWindow_DestroyChildren(self
.this
)
45 def DragAcceptFiles(self
,arg0
):
46 val
= windowsc
.wxWindow_DragAcceptFiles(self
.this
,arg0
)
48 def Enable(self
,arg0
):
49 val
= windowsc
.wxWindow_Enable(self
.this
,arg0
)
52 val
= windowsc
.wxWindow_Fit(self
.this
)
54 def GetBackgroundColour(self
):
55 val
= windowsc
.wxWindow_GetBackgroundColour(self
.this
)
56 val
= wxColourPtr(val
)
59 def GetCharHeight(self
):
60 val
= windowsc
.wxWindow_GetCharHeight(self
.this
)
62 def GetCharWidth(self
):
63 val
= windowsc
.wxWindow_GetCharWidth(self
.this
)
65 def GetClientSize(self
):
66 val
= windowsc
.wxWindow_GetClientSize(self
.this
)
68 def GetConstraints(self
):
69 val
= windowsc
.wxWindow_GetConstraints(self
.this
)
70 val
= wxLayoutConstraintsPtr(val
)
72 def GetDefaultItem(self
):
73 val
= windowsc
.wxWindow_GetDefaultItem(self
.this
)
74 val
= wxButtonPtr(val
)
77 val
= windowsc
.wxWindow_GetFont(self
.this
)
80 def GetForegroundColour(self
):
81 val
= windowsc
.wxWindow_GetForegroundColour(self
.this
)
82 val
= wxColourPtr(val
)
85 def GetGrandParent(self
):
86 val
= windowsc
.wxWindow_GetGrandParent(self
.this
)
87 val
= wxWindowPtr(val
)
90 val
= windowsc
.wxWindow_GetId(self
.this
)
92 def GetPosition(self
):
93 val
= windowsc
.wxWindow_GetPosition(self
.this
)
96 val
= windowsc
.wxWindow_GetLabel(self
.this
)
99 val
= windowsc
.wxWindow_GetName(self
.this
)
102 val
= windowsc
.wxWindow_GetParent(self
.this
)
103 val
= wxWindowPtr(val
)
105 def GetReturnCode(self
):
106 val
= windowsc
.wxWindow_GetReturnCode(self
.this
)
108 def GetScrollThumb(self
,arg0
):
109 val
= windowsc
.wxWindow_GetScrollThumb(self
.this
,arg0
)
111 def GetScrollPos(self
,arg0
):
112 val
= windowsc
.wxWindow_GetScrollPos(self
.this
,arg0
)
114 def GetScrollRange(self
,arg0
):
115 val
= windowsc
.wxWindow_GetScrollRange(self
.this
,arg0
)
118 val
= windowsc
.wxWindow_GetSize(self
.this
)
120 def GetTextExtent(self
,arg0
):
121 val
= windowsc
.wxWindow_GetTextExtent(self
.this
,arg0
)
124 val
= windowsc
.wxWindow_GetTitle(self
.this
)
126 def GetWindowStyleFlag(self
):
127 val
= windowsc
.wxWindow_GetWindowStyleFlag(self
.this
)
129 def InitDialog(self
):
130 val
= windowsc
.wxWindow_InitDialog(self
.this
)
133 val
= windowsc
.wxWindow_IsEnabled(self
.this
)
135 def IsRetained(self
):
136 val
= windowsc
.wxWindow_IsRetained(self
.this
)
139 val
= windowsc
.wxWindow_IsShown(self
.this
)
142 val
= windowsc
.wxWindow_Layout(self
.this
)
144 def LoadFromResource(self
,arg0
,arg1
,*args
):
145 val
= apply(windowsc
.wxWindow_LoadFromResource
,(self
.this
,arg0
.this
,arg1
,)+args
)
148 val
= windowsc
.wxWindow_Lower(self
.this
)
150 def MakeModal(self
,arg0
):
151 val
= windowsc
.wxWindow_MakeModal(self
.this
,arg0
)
153 def Move(self
,arg0
,arg1
):
154 val
= windowsc
.wxWindow_Move(self
.this
,arg0
,arg1
)
156 def PopupMenu(self
,arg0
,arg1
,arg2
):
157 val
= windowsc
.wxWindow_PopupMenu(self
.this
,arg0
.this
,arg1
,arg2
)
160 val
= windowsc
.wxWindow_Raise(self
.this
)
162 def Refresh(self
,*args
):
163 argl
= map(None,args
)
164 try: argl
[1] = argl
[1].this
167 val
= apply(windowsc
.wxWindow_Refresh
,(self
.this
,)+args
)
169 def ReleaseMouse(self
):
170 val
= windowsc
.wxWindow_ReleaseMouse(self
.this
)
172 def ScreenToClient(self
,arg0
,arg1
):
173 val
= windowsc
.wxWindow_ScreenToClient(self
.this
,arg0
,arg1
)
175 def ScrollWindow(self
,arg0
,arg1
,*args
):
176 argl
= map(None,args
)
177 try: argl
[0] = argl
[0].this
180 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
.this
,arg0
,arg1
,)+args
)
182 def SetAutoLayout(self
,arg0
):
183 val
= windowsc
.wxWindow_SetAutoLayout(self
.this
,arg0
)
185 def SetBackgroundColour(self
,arg0
):
186 val
= windowsc
.wxWindow_SetBackgroundColour(self
.this
,arg0
.this
)
188 def SetConstraints(self
,arg0
):
189 val
= windowsc
.wxWindow_SetConstraints(self
.this
,arg0
.this
)
191 def SetDoubleClick(self
,arg0
):
192 val
= windowsc
.wxWindow_SetDoubleClick(self
.this
,arg0
)
195 val
= windowsc
.wxWindow_SetFocus(self
.this
)
197 def SetFont(self
,arg0
):
198 val
= windowsc
.wxWindow_SetFont(self
.this
,arg0
.this
)
200 def SetForegroundColour(self
,arg0
):
201 val
= windowsc
.wxWindow_SetForegroundColour(self
.this
,arg0
.this
)
203 def SetId(self
,arg0
):
204 val
= windowsc
.wxWindow_SetId(self
.this
,arg0
)
206 def SetName(self
,arg0
):
207 val
= windowsc
.wxWindow_SetName(self
.this
,arg0
)
209 def SetReturnCode(self
,arg0
):
210 val
= windowsc
.wxWindow_SetReturnCode(self
.this
,arg0
)
212 def SetScrollbar(self
,arg0
,arg1
,arg2
,arg3
,*args
):
213 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
215 def SetScrollPos(self
,arg0
,arg1
,*args
):
216 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
.this
,arg0
,arg1
,)+args
)
218 def SetDimensions(self
,arg0
,arg1
,arg2
,arg3
,*args
):
219 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
221 def SetSize(self
,arg0
):
222 val
= windowsc
.wxWindow_SetSize(self
.this
,arg0
.this
)
224 def SetPosition(self
,arg0
):
225 val
= windowsc
.wxWindow_SetPosition(self
.this
,arg0
.this
)
227 def SetSizeHints(self
,*args
):
228 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
.this
,)+args
)
230 def SetClientSize(self
,arg0
,arg1
):
231 val
= windowsc
.wxWindow_SetClientSize(self
.this
,arg0
,arg1
)
233 def SetCursor(self
,arg0
):
234 val
= windowsc
.wxWindow_SetCursor(self
.this
,arg0
.this
)
236 def SetTitle(self
,arg0
):
237 val
= windowsc
.wxWindow_SetTitle(self
.this
,arg0
)
240 val
= windowsc
.wxWindow_Show(self
.this
,arg0
)
242 def TransferDataFromWindow(self
):
243 val
= windowsc
.wxWindow_TransferDataFromWindow(self
.this
)
245 def TransferDataToWindow(self
):
246 val
= windowsc
.wxWindow_TransferDataToWindow(self
.this
)
249 val
= windowsc
.wxWindow_Validate(self
.this
)
251 def WarpPointer(self
,arg0
,arg1
):
252 val
= windowsc
.wxWindow_WarpPointer(self
.this
,arg0
,arg1
)
255 return "<C wxWindow instance>"
256 class wxWindow(wxWindowPtr
):
257 def __init__(self
,arg0
,arg1
,*args
) :
258 argl
= map(None,args
)
259 try: argl
[0] = argl
[0].this
261 try: argl
[1] = argl
[1].this
264 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
270 class wxFramePtr(wxWindowPtr
):
271 def __init__(self
,this
):
274 def Centre(self
,*args
):
275 val
= apply(windowsc
.wxFrame_Centre
,(self
.this
,)+args
)
277 def Command(self
,arg0
):
278 val
= windowsc
.wxFrame_Command(self
.this
,arg0
)
280 def CreateStatusBar(self
,*args
):
281 val
= apply(windowsc
.wxFrame_CreateStatusBar
,(self
.this
,)+args
)
283 def GetMenuBar(self
):
284 val
= windowsc
.wxFrame_GetMenuBar(self
.this
)
285 val
= wxMenuBarPtr(val
)
287 def GetStatusBar(self
):
288 val
= windowsc
.wxFrame_GetStatusBar(self
.this
)
291 val
= windowsc
.wxFrame_GetTitle(self
.this
)
293 def Iconize(self
,arg0
):
294 val
= windowsc
.wxFrame_Iconize(self
.this
,arg0
)
296 def IsIconized(self
):
297 val
= windowsc
.wxFrame_IsIconized(self
.this
)
299 def SetAcceleratorTable(self
,arg0
):
300 val
= windowsc
.wxFrame_SetAcceleratorTable(self
.this
,arg0
.this
)
302 def Maximize(self
,arg0
):
303 val
= windowsc
.wxFrame_Maximize(self
.this
,arg0
)
305 def SetIcon(self
,arg0
):
306 val
= windowsc
.wxFrame_SetIcon(self
.this
,arg0
.this
)
308 def SetMenuBar(self
,arg0
):
309 val
= windowsc
.wxFrame_SetMenuBar(self
.this
,arg0
.this
)
311 def SetStatusText(self
,arg0
,*args
):
312 val
= apply(windowsc
.wxFrame_SetStatusText
,(self
.this
,arg0
,)+args
)
314 def SetStatusWidths(self
,arg0
,*args
):
315 val
= apply(windowsc
.wxFrame_SetStatusWidths
,(self
.this
,arg0
,)+args
)
317 def SetTitle(self
,arg0
):
318 val
= windowsc
.wxFrame_SetTitle(self
.this
,arg0
)
321 return "<C wxFrame instance>"
322 class wxFrame(wxFramePtr
):
323 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
324 argl
= map(None,args
)
325 try: argl
[0] = argl
[0].this
327 try: argl
[1] = argl
[1].this
330 self
.this
= apply(windowsc
.new_wxFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
336 class wxMiniFramePtr(wxFramePtr
):
337 def __init__(self
,this
):
341 return "<C wxMiniFrame instance>"
342 class wxMiniFrame(wxMiniFramePtr
):
343 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
344 argl
= map(None,args
)
345 try: argl
[0] = argl
[0].this
347 try: argl
[1] = argl
[1].this
350 self
.this
= apply(windowsc
.new_wxMiniFrame
,(arg0
.this
,arg1
,arg2
,)+args
)
356 class wxPanelPtr(wxWindowPtr
):
357 def __init__(self
,this
):
360 def InitDialog(self
):
361 val
= windowsc
.wxPanel_InitDialog(self
.this
)
364 return "<C wxPanel instance>"
365 class wxPanel(wxPanelPtr
):
366 def __init__(self
,arg0
,arg1
,*args
) :
367 argl
= map(None,args
)
368 try: argl
[0] = argl
[0].this
370 try: argl
[1] = argl
[1].this
373 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
379 class wxDialogPtr(wxPanelPtr
):
380 def __init__(self
,this
):
383 def Centre(self
,*args
):
384 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
386 def EndModal(self
,arg0
):
387 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
390 val
= windowsc
.wxDialog_GetTitle(self
.this
)
392 def Iconize(self
,arg0
):
393 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
395 def IsIconized(self
):
396 val
= windowsc
.wxDialog_IsIconized(self
.this
)
398 def SetModal(self
,arg0
):
399 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
402 val
= windowsc
.wxDialog_IsModal(self
.this
)
404 def SetTitle(self
,arg0
):
405 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
408 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
411 val
= windowsc
.wxDialog_ShowModal(self
.this
)
414 return "<C wxDialog instance>"
415 class wxDialog(wxDialogPtr
):
416 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
417 argl
= map(None,args
)
418 try: argl
[0] = argl
[0].this
420 try: argl
[1] = argl
[1].this
423 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
429 class wxScrolledWindowPtr(wxWindowPtr
):
430 def __init__(self
,this
):
433 def EnableScrolling(self
,arg0
,arg1
):
434 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
436 def GetScrollPixelsPerUnit(self
):
437 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
439 def GetVirtualSize(self
):
440 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
442 def IsRetained(self
):
443 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
445 def PrepareDC(self
,arg0
):
446 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
448 def Scroll(self
,arg0
,arg1
):
449 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
451 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
452 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
455 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
458 return "<C wxScrolledWindow instance>"
459 class wxScrolledWindow(wxScrolledWindowPtr
):
460 def __init__(self
,arg0
,*args
) :
461 argl
= map(None,args
)
462 try: argl
[1] = argl
[1].this
464 try: argl
[2] = argl
[2].this
467 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
473 class wxMenuPtr(wxEvtHandlerPtr
):
474 def __init__(self
,this
):
477 def Append(self
,arg0
,arg1
,*args
):
478 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
480 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
481 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
483 def AppendSeparator(self
):
484 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
487 val
= windowsc
.wxMenu_Break(self
.this
)
489 def Check(self
,arg0
,arg1
):
490 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
492 def Enable(self
,arg0
,arg1
):
493 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
495 def FindItem(self
,arg0
):
496 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
498 def FindItemForId(self
,arg0
):
499 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
500 val
= wxMenuItemPtr(val
)
502 def GetHelpString(self
,arg0
):
503 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
505 def GetLabel(self
,arg0
):
506 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
509 val
= windowsc
.wxMenu_GetTitle(self
.this
)
511 def SetHelpString(self
,arg0
,arg1
):
512 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
514 def SetTitle(self
,arg0
):
515 val
= windowsc
.wxMenu_SetTitle(self
.this
,arg0
)
517 def IsChecked(self
,arg0
):
518 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
520 def IsEnabled(self
,arg0
):
521 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
523 def SetLabel(self
,arg0
,arg1
):
524 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
527 return "<C wxMenu instance>"
528 class wxMenu(wxMenuPtr
):
529 def __init__(self
,*args
) :
530 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
536 class wxPyMenuPtr(wxMenuPtr
):
537 def __init__(self
,this
):
541 if self
.thisown
== 1 :
542 windowsc
.delete_wxPyMenu(self
.this
)
544 return "<C wxPyMenu instance>"
545 class wxPyMenu(wxPyMenuPtr
):
546 def __init__(self
,*args
) :
547 self
.this
= apply(windowsc
.new_wxPyMenu
,()+args
)
553 class wxMenuBarPtr(wxEvtHandlerPtr
):
554 def __init__(self
,this
):
557 def Append(self
,arg0
,arg1
):
558 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
560 def Check(self
,arg0
,arg1
):
561 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
563 def Checked(self
,arg0
):
564 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
566 def Enable(self
,arg0
,arg1
):
567 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
569 def FindMenuItem(self
,arg0
,arg1
):
570 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
572 def EnableTop(self
,arg0
,arg1
):
573 val
= windowsc
.wxMenuBar_EnableTop(self
.this
,arg0
,arg1
)
575 def FindItemForId(self
,arg0
):
576 val
= windowsc
.wxMenuBar_FindItemForId(self
.this
,arg0
)
577 val
= wxMenuItemPtr(val
)
579 def GetHelpString(self
,arg0
):
580 val
= windowsc
.wxMenuBar_GetHelpString(self
.this
,arg0
)
582 def GetLabel(self
,arg0
):
583 val
= windowsc
.wxMenuBar_GetLabel(self
.this
,arg0
)
585 def SetHelpString(self
,arg0
,arg1
):
586 val
= windowsc
.wxMenuBar_SetHelpString(self
.this
,arg0
,arg1
)
588 def SetLabel(self
,arg0
,arg1
):
589 val
= windowsc
.wxMenuBar_SetLabel(self
.this
,arg0
,arg1
)
591 def GetLabelTop(self
,arg0
):
592 val
= windowsc
.wxMenuBar_GetLabelTop(self
.this
,arg0
)
594 def SetLabelTop(self
,arg0
,arg1
):
595 val
= windowsc
.wxMenuBar_SetLabelTop(self
.this
,arg0
,arg1
)
598 return "<C wxMenuBar instance>"
599 class wxMenuBar(wxMenuBarPtr
):
601 self
.this
= windowsc
.new_wxMenuBar()
607 class wxMenuItemPtr
:
608 def __init__(self
,this
):
611 def IsSeparator(self
):
612 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
615 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
618 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
621 val
= windowsc
.wxMenuItem_GetId(self
.this
)
623 def GetSubMenu(self
):
624 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
628 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
630 def SetName(self
,arg0
):
631 val
= windowsc
.wxMenuItem_SetName(self
.this
,arg0
)
633 def SetHelp(self
,arg0
):
634 val
= windowsc
.wxMenuItem_SetHelp(self
.this
,arg0
)
636 def Enable(self
,*args
):
637 val
= apply(windowsc
.wxMenuItem_Enable
,(self
.this
,)+args
)
639 def Check(self
,*args
):
640 val
= apply(windowsc
.wxMenuItem_Check
,(self
.this
,)+args
)
642 def DeleteSubMenu(self
):
643 val
= windowsc
.wxMenuItem_DeleteSubMenu(self
.this
)
646 val
= windowsc
.wxMenuItem_GetName(self
.this
)
648 def IsCheckable(self
):
649 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
652 return "<C wxMenuItem instance>"
653 class wxMenuItem(wxMenuItemPtr
):
654 def __init__(self
,this
):
662 #-------------- FUNCTION WRAPPERS ------------------
664 def wxWindow_FindFocus():
665 val
= windowsc
.wxWindow_FindFocus()
666 val
= wxWindowPtr(val
)
671 #-------------- VARIABLE WRAPPERS ------------------