1 # This file was created automatically by SWIG.
9 def wxDLG_PNT(win
, point
):
10 return win
.ConvertDialogPointToPixels(point
)
12 def wxDLG_SZE(win
, size
):
13 return win
.ConvertDialogPointToPixels(size
)
15 class wxEvtHandlerPtr
:
16 def __init__(self
,this
):
19 def Connect(self
,arg0
,arg1
,arg2
,arg3
):
20 val
= windowsc
.wxEvtHandler_Connect(self
.this
,arg0
,arg1
,arg2
,arg3
)
23 return "<C wxEvtHandler instance>"
24 class wxEvtHandler(wxEvtHandlerPtr
):
25 def __init__(self
,this
):
31 class wxWindowPtr(wxEvtHandlerPtr
):
32 def __init__(self
,this
):
35 def CaptureMouse(self
):
36 val
= windowsc
.wxWindow_CaptureMouse(self
.this
)
38 def Center(self
,*args
):
39 val
= apply(windowsc
.wxWindow_Center
,(self
.this
,)+args
)
41 def Centre(self
,*args
):
42 val
= apply(windowsc
.wxWindow_Centre
,(self
.this
,)+args
)
44 def ClientToScreen(self
,arg0
,arg1
):
45 val
= windowsc
.wxWindow_ClientToScreen(self
.this
,arg0
,arg1
)
47 def Close(self
,*args
):
48 val
= apply(windowsc
.wxWindow_Close
,(self
.this
,)+args
)
51 val
= windowsc
.wxWindow_Destroy(self
.this
)
53 def DestroyChildren(self
):
54 val
= windowsc
.wxWindow_DestroyChildren(self
.this
)
56 def DragAcceptFiles(self
,arg0
):
57 val
= windowsc
.wxWindow_DragAcceptFiles(self
.this
,arg0
)
59 def Enable(self
,arg0
):
60 val
= windowsc
.wxWindow_Enable(self
.this
,arg0
)
62 def FindWindowByID(self
,arg0
):
63 val
= windowsc
.wxWindow_FindWindowByID(self
.this
,arg0
)
64 val
= wxWindowPtr(val
)
66 def FindWindowByName(self
,arg0
):
67 val
= windowsc
.wxWindow_FindWindowByName(self
.this
,arg0
)
68 val
= wxWindowPtr(val
)
71 val
= windowsc
.wxWindow_Fit(self
.this
)
73 def GetBackgroundColour(self
):
74 val
= windowsc
.wxWindow_GetBackgroundColour(self
.this
)
75 val
= wxColourPtr(val
)
78 def GetCharHeight(self
):
79 val
= windowsc
.wxWindow_GetCharHeight(self
.this
)
81 def GetCharWidth(self
):
82 val
= windowsc
.wxWindow_GetCharWidth(self
.this
)
84 def GetClientSizeTuple(self
):
85 val
= windowsc
.wxWindow_GetClientSizeTuple(self
.this
)
87 def GetClientSize(self
):
88 val
= windowsc
.wxWindow_GetClientSize(self
.this
)
92 def GetConstraints(self
):
93 val
= windowsc
.wxWindow_GetConstraints(self
.this
)
94 val
= wxLayoutConstraintsPtr(val
)
96 def GetDefaultItem(self
):
97 val
= windowsc
.wxWindow_GetDefaultItem(self
.this
)
98 val
= wxButtonPtr(val
)
101 val
= windowsc
.wxWindow_GetFont(self
.this
)
104 def GetForegroundColour(self
):
105 val
= windowsc
.wxWindow_GetForegroundColour(self
.this
)
106 val
= wxColourPtr(val
)
109 def GetGrandParent(self
):
110 val
= windowsc
.wxWindow_GetGrandParent(self
.this
)
111 val
= wxWindowPtr(val
)
114 val
= windowsc
.wxWindow_GetId(self
.this
)
117 val
= windowsc
.wxWindow_GetLabel(self
.this
)
120 val
= windowsc
.wxWindow_GetName(self
.this
)
123 val
= windowsc
.wxWindow_GetParent(self
.this
)
124 val
= wxWindowPtr(val
)
126 def GetPositionTuple(self
):
127 val
= windowsc
.wxWindow_GetPositionTuple(self
.this
)
129 def GetPosition(self
):
130 val
= windowsc
.wxWindow_GetPosition(self
.this
)
131 val
= wxPointPtr(val
)
135 val
= windowsc
.wxWindow_GetRect(self
.this
)
139 def GetReturnCode(self
):
140 val
= windowsc
.wxWindow_GetReturnCode(self
.this
)
142 def GetScrollThumb(self
,arg0
):
143 val
= windowsc
.wxWindow_GetScrollThumb(self
.this
,arg0
)
145 def GetScrollPos(self
,arg0
):
146 val
= windowsc
.wxWindow_GetScrollPos(self
.this
,arg0
)
148 def GetScrollRange(self
,arg0
):
149 val
= windowsc
.wxWindow_GetScrollRange(self
.this
,arg0
)
151 def GetSizeTuple(self
):
152 val
= windowsc
.wxWindow_GetSizeTuple(self
.this
)
155 val
= windowsc
.wxWindow_GetSize(self
.this
)
159 def GetTextExtent(self
,arg0
):
160 val
= windowsc
.wxWindow_GetTextExtent(self
.this
,arg0
)
163 val
= windowsc
.wxWindow_GetTitle(self
.this
)
165 def GetWindowStyleFlag(self
):
166 val
= windowsc
.wxWindow_GetWindowStyleFlag(self
.this
)
168 def InitDialog(self
):
169 val
= windowsc
.wxWindow_InitDialog(self
.this
)
172 val
= windowsc
.wxWindow_IsEnabled(self
.this
)
174 def IsRetained(self
):
175 val
= windowsc
.wxWindow_IsRetained(self
.this
)
178 val
= windowsc
.wxWindow_IsShown(self
.this
)
181 val
= windowsc
.wxWindow_Layout(self
.this
)
183 def LoadFromResource(self
,arg0
,arg1
,*args
):
184 val
= apply(windowsc
.wxWindow_LoadFromResource
,(self
.this
,arg0
.this
,arg1
,)+args
)
187 val
= windowsc
.wxWindow_Lower(self
.this
)
189 def MakeModal(self
,arg0
):
190 val
= windowsc
.wxWindow_MakeModal(self
.this
,arg0
)
192 def Move(self
,arg0
,arg1
):
193 val
= windowsc
.wxWindow_Move(self
.this
,arg0
,arg1
)
195 def PopupMenu(self
,arg0
,arg1
,arg2
):
196 val
= windowsc
.wxWindow_PopupMenu(self
.this
,arg0
.this
,arg1
,arg2
)
199 val
= windowsc
.wxWindow_Raise(self
.this
)
201 def Refresh(self
,*args
):
202 argl
= map(None,args
)
203 try: argl
[1] = argl
[1].this
206 val
= apply(windowsc
.wxWindow_Refresh
,(self
.this
,)+args
)
208 def ReleaseMouse(self
):
209 val
= windowsc
.wxWindow_ReleaseMouse(self
.this
)
211 def ScreenToClient(self
,arg0
,arg1
):
212 val
= windowsc
.wxWindow_ScreenToClient(self
.this
,arg0
,arg1
)
214 def ScrollWindow(self
,arg0
,arg1
,*args
):
215 argl
= map(None,args
)
216 try: argl
[0] = argl
[0].this
219 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
.this
,arg0
,arg1
,)+args
)
221 def SetAcceleratorTable(self
,arg0
):
222 val
= windowsc
.wxWindow_SetAcceleratorTable(self
.this
,arg0
.this
)
224 def SetAutoLayout(self
,arg0
):
225 val
= windowsc
.wxWindow_SetAutoLayout(self
.this
,arg0
)
227 def SetBackgroundColour(self
,arg0
):
228 val
= windowsc
.wxWindow_SetBackgroundColour(self
.this
,arg0
.this
)
230 def SetConstraints(self
,arg0
):
231 val
= windowsc
.wxWindow_SetConstraints(self
.this
,arg0
.this
)
233 def SetDoubleClick(self
,arg0
):
234 val
= windowsc
.wxWindow_SetDoubleClick(self
.this
,arg0
)
237 val
= windowsc
.wxWindow_SetFocus(self
.this
)
239 def SetFont(self
,arg0
):
240 val
= windowsc
.wxWindow_SetFont(self
.this
,arg0
.this
)
242 def SetForegroundColour(self
,arg0
):
243 val
= windowsc
.wxWindow_SetForegroundColour(self
.this
,arg0
.this
)
245 def SetId(self
,arg0
):
246 val
= windowsc
.wxWindow_SetId(self
.this
,arg0
)
248 def SetName(self
,arg0
):
249 val
= windowsc
.wxWindow_SetName(self
.this
,arg0
)
251 def SetReturnCode(self
,arg0
):
252 val
= windowsc
.wxWindow_SetReturnCode(self
.this
,arg0
)
254 def SetScrollbar(self
,arg0
,arg1
,arg2
,arg3
,*args
):
255 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
257 def SetScrollPos(self
,arg0
,arg1
,*args
):
258 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
.this
,arg0
,arg1
,)+args
)
260 def SetDimensions(self
,arg0
,arg1
,arg2
,arg3
,*args
):
261 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
263 def SetSize(self
,arg0
):
264 val
= windowsc
.wxWindow_SetSize(self
.this
,arg0
.this
)
266 def SetPosition(self
,arg0
):
267 val
= windowsc
.wxWindow_SetPosition(self
.this
,arg0
.this
)
269 def SetSizeHints(self
,*args
):
270 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
.this
,)+args
)
272 def SetClientSize(self
,arg0
,arg1
):
273 val
= windowsc
.wxWindow_SetClientSize(self
.this
,arg0
,arg1
)
275 def SetCursor(self
,arg0
):
276 val
= windowsc
.wxWindow_SetCursor(self
.this
,arg0
.this
)
278 def SetTitle(self
,arg0
):
279 val
= windowsc
.wxWindow_SetTitle(self
.this
,arg0
)
282 val
= windowsc
.wxWindow_Show(self
.this
,arg0
)
284 def TransferDataFromWindow(self
):
285 val
= windowsc
.wxWindow_TransferDataFromWindow(self
.this
)
287 def TransferDataToWindow(self
):
288 val
= windowsc
.wxWindow_TransferDataToWindow(self
.this
)
291 val
= windowsc
.wxWindow_Validate(self
.this
)
293 def WarpPointer(self
,arg0
,arg1
):
294 val
= windowsc
.wxWindow_WarpPointer(self
.this
,arg0
,arg1
)
296 def ConvertDialogPointToPixels(self
,arg0
):
297 val
= windowsc
.wxWindow_ConvertDialogPointToPixels(self
.this
,arg0
.this
)
298 val
= wxPointPtr(val
)
301 def ConvertDialogSizeToPixels(self
,arg0
):
302 val
= windowsc
.wxWindow_ConvertDialogSizeToPixels(self
.this
,arg0
.this
)
306 def ConvertPixelPointToDialog(self
,arg0
):
307 val
= windowsc
.wxWindow_ConvertPixelPointToDialog(self
.this
,arg0
.this
)
308 val
= wxPointPtr(val
)
311 def ConvertPixelSizeToDialog(self
,arg0
):
312 val
= windowsc
.wxWindow_ConvertPixelSizeToDialog(self
.this
,arg0
.this
)
317 return "<C wxWindow instance>"
318 class wxWindow(wxWindowPtr
):
319 def __init__(self
,arg0
,arg1
,*args
) :
320 argl
= map(None,args
)
321 try: argl
[0] = argl
[0].this
323 try: argl
[1] = argl
[1].this
326 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
328 wx
._StdWindowCallbacks
(self
)
333 class wxPanelPtr(wxWindowPtr
):
334 def __init__(self
,this
):
337 def InitDialog(self
):
338 val
= windowsc
.wxPanel_InitDialog(self
.this
)
341 return "<C wxPanel instance>"
342 class wxPanel(wxPanelPtr
):
343 def __init__(self
,arg0
,arg1
,*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_wxPanel
,(arg0
.this
,arg1
,)+args
)
352 wx
._StdWindowCallbacks
(self
)
357 class wxDialogPtr(wxPanelPtr
):
358 def __init__(self
,this
):
361 def Centre(self
,*args
):
362 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
364 def EndModal(self
,arg0
):
365 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
368 val
= windowsc
.wxDialog_GetTitle(self
.this
)
370 def Iconize(self
,arg0
):
371 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
373 def IsIconized(self
):
374 val
= windowsc
.wxDialog_IsIconized(self
.this
)
376 def SetModal(self
,arg0
):
377 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
380 val
= windowsc
.wxDialog_IsModal(self
.this
)
382 def SetTitle(self
,arg0
):
383 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
386 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
389 val
= windowsc
.wxDialog_ShowModal(self
.this
)
392 return "<C wxDialog instance>"
393 class wxDialog(wxDialogPtr
):
394 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
395 argl
= map(None,args
)
396 try: argl
[0] = argl
[0].this
398 try: argl
[1] = argl
[1].this
401 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
403 wx
._StdDialogCallbacks
(self
)
408 class wxScrolledWindowPtr(wxWindowPtr
):
409 def __init__(self
,this
):
412 def EnableScrolling(self
,arg0
,arg1
):
413 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
415 def GetScrollPixelsPerUnit(self
):
416 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
418 def GetVirtualSize(self
):
419 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
421 def IsRetained(self
):
422 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
424 def PrepareDC(self
,arg0
):
425 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
427 def Scroll(self
,arg0
,arg1
):
428 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
430 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
431 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
434 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
437 return "<C wxScrolledWindow instance>"
438 class wxScrolledWindow(wxScrolledWindowPtr
):
439 def __init__(self
,arg0
,*args
) :
440 argl
= map(None,args
)
441 try: argl
[1] = argl
[1].this
443 try: argl
[2] = argl
[2].this
446 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
448 wx
._StdWindowCallbacks
(self
)
449 wx
._StdOnScrollCallbacks
(self
)
454 class wxMenuPtr(wxEvtHandlerPtr
):
455 def __init__(self
,this
):
458 def Append(self
,arg0
,arg1
,*args
):
459 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
461 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
462 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
464 def AppendSeparator(self
):
465 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
468 val
= windowsc
.wxMenu_Break(self
.this
)
470 def Check(self
,arg0
,arg1
):
471 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
473 def Enable(self
,arg0
,arg1
):
474 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
476 def FindItem(self
,arg0
):
477 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
480 val
= windowsc
.wxMenu_GetTitle(self
.this
)
482 def SetTitle(self
,arg0
):
483 val
= windowsc
.wxMenu_SetTitle(self
.this
,arg0
)
485 def FindItemForId(self
,arg0
):
486 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
487 val
= wxMenuItemPtr(val
)
489 def GetHelpString(self
,arg0
):
490 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
492 def GetLabel(self
,arg0
):
493 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
495 def SetHelpString(self
,arg0
,arg1
):
496 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
498 def IsChecked(self
,arg0
):
499 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
501 def IsEnabled(self
,arg0
):
502 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
504 def SetLabel(self
,arg0
,arg1
):
505 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
508 return "<C wxMenu instance>"
509 class wxMenu(wxMenuPtr
):
510 def __init__(self
,*args
) :
511 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
517 class wxPyMenuPtr(wxMenuPtr
):
518 def __init__(self
,this
):
522 if self
.thisown
== 1 :
523 windowsc
.delete_wxPyMenu(self
.this
)
525 return "<C wxPyMenu instance>"
526 class wxPyMenu(wxPyMenuPtr
):
527 def __init__(self
,*args
) :
528 self
.this
= apply(windowsc
.new_wxPyMenu
,()+args
)
534 class wxMenuBarPtr(wxEvtHandlerPtr
):
535 def __init__(self
,this
):
538 def Append(self
,arg0
,arg1
):
539 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
541 def Check(self
,arg0
,arg1
):
542 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
544 def Checked(self
,arg0
):
545 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
547 def Enable(self
,arg0
,arg1
):
548 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
550 def Enabled(self
,arg0
):
551 val
= windowsc
.wxMenuBar_Enabled(self
.this
,arg0
)
553 def FindMenuItem(self
,arg0
,arg1
):
554 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
556 def FindItemForId(self
,arg0
):
557 val
= windowsc
.wxMenuBar_FindItemForId(self
.this
,arg0
)
558 val
= wxMenuItemPtr(val
)
560 def EnableTop(self
,arg0
,arg1
):
561 val
= windowsc
.wxMenuBar_EnableTop(self
.this
,arg0
,arg1
)
563 def GetHelpString(self
,arg0
):
564 val
= windowsc
.wxMenuBar_GetHelpString(self
.this
,arg0
)
566 def GetLabel(self
,arg0
):
567 val
= windowsc
.wxMenuBar_GetLabel(self
.this
,arg0
)
569 def SetHelpString(self
,arg0
,arg1
):
570 val
= windowsc
.wxMenuBar_SetHelpString(self
.this
,arg0
,arg1
)
572 def SetLabel(self
,arg0
,arg1
):
573 val
= windowsc
.wxMenuBar_SetLabel(self
.this
,arg0
,arg1
)
575 def GetLabelTop(self
,arg0
):
576 val
= windowsc
.wxMenuBar_GetLabelTop(self
.this
,arg0
)
578 def SetLabelTop(self
,arg0
,arg1
):
579 val
= windowsc
.wxMenuBar_SetLabelTop(self
.this
,arg0
,arg1
)
581 def GetMenuCount(self
):
582 val
= windowsc
.wxMenuBar_GetMenuCount(self
.this
)
584 def GetMenu(self
,arg0
):
585 val
= windowsc
.wxMenuBar_GetMenu(self
.this
,arg0
)
589 return "<C wxMenuBar instance>"
590 class wxMenuBar(wxMenuBarPtr
):
592 self
.this
= windowsc
.new_wxMenuBar()
598 class wxMenuItemPtr
:
599 def __init__(self
,this
):
602 def IsSeparator(self
):
603 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
606 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
609 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
611 def IsCheckable(self
):
612 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
615 val
= windowsc
.wxMenuItem_GetId(self
.this
)
617 def GetSubMenu(self
):
618 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
621 def SetName(self
,arg0
):
622 val
= windowsc
.wxMenuItem_SetName(self
.this
,arg0
)
624 def DeleteSubMenu(self
):
625 val
= windowsc
.wxMenuItem_DeleteSubMenu(self
.this
)
628 val
= windowsc
.wxMenuItem_GetName(self
.this
)
631 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
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
)
643 return "<C wxMenuItem instance>"
644 class wxMenuItem(wxMenuItemPtr
):
645 def __init__(self
,this
):
653 #-------------- FUNCTION WRAPPERS ------------------
655 def wxWindow_FindFocus():
656 val
= windowsc
.wxWindow_FindFocus()
657 val
= wxWindowPtr(val
)
662 #-------------- VARIABLE WRAPPERS ------------------