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
.ConvertDialogSizeToPixels(size
)
15 class wxEvtHandlerPtr
:
16 def __init__(self
,this
):
19 def ProcessEvent(self
,arg0
):
20 val
= windowsc
.wxEvtHandler_ProcessEvent(self
.this
,arg0
.this
)
22 def Connect(self
,arg0
,arg1
,arg2
,arg3
):
23 val
= windowsc
.wxEvtHandler_Connect(self
.this
,arg0
,arg1
,arg2
,arg3
)
26 return "<C wxEvtHandler instance>"
27 class wxEvtHandler(wxEvtHandlerPtr
):
28 def __init__(self
,this
):
34 class wxWindowPtr(wxEvtHandlerPtr
):
35 def __init__(self
,this
):
38 def CaptureMouse(self
):
39 val
= windowsc
.wxWindow_CaptureMouse(self
.this
)
41 def Center(self
,*args
):
42 val
= apply(windowsc
.wxWindow_Center
,(self
.this
,)+args
)
44 def Centre(self
,*args
):
45 val
= apply(windowsc
.wxWindow_Centre
,(self
.this
,)+args
)
47 def ClientToScreenXY(self
,arg0
,arg1
):
48 val
= windowsc
.wxWindow_ClientToScreenXY(self
.this
,arg0
,arg1
)
50 def Close(self
,*args
):
51 val
= apply(windowsc
.wxWindow_Close
,(self
.this
,)+args
)
54 val
= windowsc
.wxWindow_Destroy(self
.this
)
56 def DestroyChildren(self
):
57 val
= windowsc
.wxWindow_DestroyChildren(self
.this
)
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
)
97 val
= windowsc
.wxWindow_GetFont(self
.this
)
100 def GetForegroundColour(self
):
101 val
= windowsc
.wxWindow_GetForegroundColour(self
.this
)
102 val
= wxColourPtr(val
)
105 def GetGrandParent(self
):
106 val
= windowsc
.wxWindow_GetGrandParent(self
.this
)
107 val
= wxWindowPtr(val
)
110 val
= windowsc
.wxWindow_GetId(self
.this
)
113 val
= windowsc
.wxWindow_GetLabel(self
.this
)
116 val
= windowsc
.wxWindow_GetName(self
.this
)
119 val
= windowsc
.wxWindow_GetParent(self
.this
)
120 val
= wxWindowPtr(val
)
122 def GetPositionTuple(self
):
123 val
= windowsc
.wxWindow_GetPositionTuple(self
.this
)
125 def GetPosition(self
):
126 val
= windowsc
.wxWindow_GetPosition(self
.this
)
127 val
= wxPointPtr(val
)
131 val
= windowsc
.wxWindow_GetRect(self
.this
)
135 def GetReturnCode(self
):
136 val
= windowsc
.wxWindow_GetReturnCode(self
.this
)
138 def GetScrollThumb(self
,arg0
):
139 val
= windowsc
.wxWindow_GetScrollThumb(self
.this
,arg0
)
141 def GetScrollPos(self
,arg0
):
142 val
= windowsc
.wxWindow_GetScrollPos(self
.this
,arg0
)
144 def GetScrollRange(self
,arg0
):
145 val
= windowsc
.wxWindow_GetScrollRange(self
.this
,arg0
)
147 def GetSizeTuple(self
):
148 val
= windowsc
.wxWindow_GetSizeTuple(self
.this
)
151 val
= windowsc
.wxWindow_GetSize(self
.this
)
155 def GetTextExtent(self
,arg0
):
156 val
= windowsc
.wxWindow_GetTextExtent(self
.this
,arg0
)
158 def GetFullTextExtent(self
,arg0
,*args
):
159 argl
= map(None,args
)
160 try: argl
[0] = argl
[0].this
163 val
= apply(windowsc
.wxWindow_GetFullTextExtent
,(self
.this
,arg0
,)+args
)
166 val
= windowsc
.wxWindow_GetTitle(self
.this
)
168 def GetWindowStyleFlag(self
):
169 val
= windowsc
.wxWindow_GetWindowStyleFlag(self
.this
)
171 def InitDialog(self
):
172 val
= windowsc
.wxWindow_InitDialog(self
.this
)
175 val
= windowsc
.wxWindow_IsEnabled(self
.this
)
177 def IsRetained(self
):
178 val
= windowsc
.wxWindow_IsRetained(self
.this
)
181 val
= windowsc
.wxWindow_IsShown(self
.this
)
184 val
= windowsc
.wxWindow_Layout(self
.this
)
186 def LoadFromResource(self
,arg0
,arg1
,*args
):
187 val
= apply(windowsc
.wxWindow_LoadFromResource
,(self
.this
,arg0
.this
,arg1
,)+args
)
190 val
= windowsc
.wxWindow_Lower(self
.this
)
192 def MakeModal(self
,arg0
):
193 val
= windowsc
.wxWindow_MakeModal(self
.this
,arg0
)
195 def MoveXY(self
,arg0
,arg1
):
196 val
= windowsc
.wxWindow_MoveXY(self
.this
,arg0
,arg1
)
199 val
= windowsc
.wxWindow_Move(self
.this
,arg0
.this
)
201 def PopupMenu(self
,arg0
,arg1
,arg2
):
202 val
= windowsc
.wxWindow_PopupMenu(self
.this
,arg0
.this
,arg1
,arg2
)
205 val
= windowsc
.wxWindow_Raise(self
.this
)
207 def Refresh(self
,*args
):
208 argl
= map(None,args
)
209 try: argl
[1] = argl
[1].this
212 val
= apply(windowsc
.wxWindow_Refresh
,(self
.this
,)+args
)
214 def ReleaseMouse(self
):
215 val
= windowsc
.wxWindow_ReleaseMouse(self
.this
)
217 def ScreenToClientXY(self
,arg0
,arg1
):
218 val
= windowsc
.wxWindow_ScreenToClientXY(self
.this
,arg0
,arg1
)
220 def ScrollWindow(self
,arg0
,arg1
,*args
):
221 argl
= map(None,args
)
222 try: argl
[0] = argl
[0].this
225 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
.this
,arg0
,arg1
,)+args
)
227 def SetAcceleratorTable(self
,arg0
):
228 val
= windowsc
.wxWindow_SetAcceleratorTable(self
.this
,arg0
.this
)
230 def SetAutoLayout(self
,arg0
):
231 val
= windowsc
.wxWindow_SetAutoLayout(self
.this
,arg0
)
233 def SetBackgroundColour(self
,arg0
):
234 val
= windowsc
.wxWindow_SetBackgroundColour(self
.this
,arg0
.this
)
236 def SetConstraints(self
,arg0
):
237 val
= windowsc
.wxWindow_SetConstraints(self
.this
,arg0
.this
)
239 def SetDoubleClick(self
,arg0
):
240 val
= windowsc
.wxWindow_SetDoubleClick(self
.this
,arg0
)
243 val
= windowsc
.wxWindow_SetFocus(self
.this
)
245 def SetFont(self
,arg0
):
246 val
= windowsc
.wxWindow_SetFont(self
.this
,arg0
.this
)
248 def SetForegroundColour(self
,arg0
):
249 val
= windowsc
.wxWindow_SetForegroundColour(self
.this
,arg0
.this
)
251 def SetId(self
,arg0
):
252 val
= windowsc
.wxWindow_SetId(self
.this
,arg0
)
254 def SetName(self
,arg0
):
255 val
= windowsc
.wxWindow_SetName(self
.this
,arg0
)
257 def SetReturnCode(self
,arg0
):
258 val
= windowsc
.wxWindow_SetReturnCode(self
.this
,arg0
)
260 def SetScrollbar(self
,arg0
,arg1
,arg2
,arg3
,*args
):
261 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
263 def SetScrollPos(self
,arg0
,arg1
,*args
):
264 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
.this
,arg0
,arg1
,)+args
)
266 def SetDimensions(self
,arg0
,arg1
,arg2
,arg3
,*args
):
267 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
269 def SetSize(self
,arg0
):
270 val
= windowsc
.wxWindow_SetSize(self
.this
,arg0
.this
)
272 def SetPosition(self
,arg0
):
273 val
= windowsc
.wxWindow_SetPosition(self
.this
,arg0
.this
)
275 def SetSizeHints(self
,*args
):
276 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
.this
,)+args
)
278 def SetClientSizeWH(self
,arg0
,arg1
):
279 val
= windowsc
.wxWindow_SetClientSizeWH(self
.this
,arg0
,arg1
)
281 def SetClientSize(self
,arg0
):
282 val
= windowsc
.wxWindow_SetClientSize(self
.this
,arg0
.this
)
284 def SetCursor(self
,arg0
):
285 val
= windowsc
.wxWindow_SetCursor(self
.this
,arg0
.this
)
287 def SetTitle(self
,arg0
):
288 val
= windowsc
.wxWindow_SetTitle(self
.this
,arg0
)
291 val
= windowsc
.wxWindow_Show(self
.this
,arg0
)
293 def TransferDataFromWindow(self
):
294 val
= windowsc
.wxWindow_TransferDataFromWindow(self
.this
)
296 def TransferDataToWindow(self
):
297 val
= windowsc
.wxWindow_TransferDataToWindow(self
.this
)
300 val
= windowsc
.wxWindow_Validate(self
.this
)
302 def WarpPointer(self
,arg0
,arg1
):
303 val
= windowsc
.wxWindow_WarpPointer(self
.this
,arg0
,arg1
)
305 def ConvertDialogPointToPixels(self
,arg0
):
306 val
= windowsc
.wxWindow_ConvertDialogPointToPixels(self
.this
,arg0
.this
)
307 val
= wxPointPtr(val
)
310 def ConvertDialogSizeToPixels(self
,arg0
):
311 val
= windowsc
.wxWindow_ConvertDialogSizeToPixels(self
.this
,arg0
.this
)
315 def DLG_PNT(self
,arg0
):
316 val
= windowsc
.wxWindow_DLG_PNT(self
.this
,arg0
.this
)
317 val
= wxPointPtr(val
)
320 def DLG_SZE(self
,arg0
):
321 val
= windowsc
.wxWindow_DLG_SZE(self
.this
,arg0
.this
)
325 def ConvertPixelPointToDialog(self
,arg0
):
326 val
= windowsc
.wxWindow_ConvertPixelPointToDialog(self
.this
,arg0
.this
)
327 val
= wxPointPtr(val
)
330 def ConvertPixelSizeToDialog(self
,arg0
):
331 val
= windowsc
.wxWindow_ConvertPixelSizeToDialog(self
.this
,arg0
.this
)
335 def SetToolTipString(self
,arg0
):
336 val
= windowsc
.wxWindow_SetToolTipString(self
.this
,arg0
)
338 def SetToolTip(self
,arg0
):
339 val
= windowsc
.wxWindow_SetToolTip(self
.this
,arg0
.this
)
341 def GetToolTip(self
):
342 val
= windowsc
.wxWindow_GetToolTip(self
.this
)
343 val
= wxToolTipPtr(val
)
346 return "<C wxWindow instance>"
347 class wxWindow(wxWindowPtr
):
348 def __init__(self
,arg0
,arg1
,*args
) :
349 argl
= map(None,args
)
350 try: argl
[0] = argl
[0].this
352 try: argl
[1] = argl
[1].this
355 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
357 wx
._StdWindowCallbacks
(self
)
362 class wxPanelPtr(wxWindowPtr
):
363 def __init__(self
,this
):
366 def InitDialog(self
):
367 val
= windowsc
.wxPanel_InitDialog(self
.this
)
370 return "<C wxPanel instance>"
371 class wxPanel(wxPanelPtr
):
372 def __init__(self
,arg0
,arg1
,*args
) :
373 argl
= map(None,args
)
374 try: argl
[0] = argl
[0].this
376 try: argl
[1] = argl
[1].this
379 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
381 wx
._StdWindowCallbacks
(self
)
386 class wxDialogPtr(wxPanelPtr
):
387 def __init__(self
,this
):
390 def Centre(self
,*args
):
391 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
393 def EndModal(self
,arg0
):
394 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
397 val
= windowsc
.wxDialog_GetTitle(self
.this
)
399 def Iconize(self
,arg0
):
400 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
402 def IsIconized(self
):
403 val
= windowsc
.wxDialog_IsIconized(self
.this
)
405 def SetModal(self
,arg0
):
406 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
409 val
= windowsc
.wxDialog_IsModal(self
.this
)
411 def SetTitle(self
,arg0
):
412 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
415 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
418 val
= windowsc
.wxDialog_ShowModal(self
.this
)
421 return "<C wxDialog instance>"
422 class wxDialog(wxDialogPtr
):
423 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
424 argl
= map(None,args
)
425 try: argl
[0] = argl
[0].this
427 try: argl
[1] = argl
[1].this
430 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
432 wx
._StdDialogCallbacks
(self
)
437 class wxScrolledWindowPtr(wxWindowPtr
):
438 def __init__(self
,this
):
441 def EnableScrolling(self
,arg0
,arg1
):
442 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
444 def GetScrollPixelsPerUnit(self
):
445 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
447 def GetVirtualSize(self
):
448 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
450 def IsRetained(self
):
451 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
453 def PrepareDC(self
,arg0
):
454 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
456 def Scroll(self
,arg0
,arg1
):
457 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
459 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
460 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
463 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
466 return "<C wxScrolledWindow instance>"
467 class wxScrolledWindow(wxScrolledWindowPtr
):
468 def __init__(self
,arg0
,*args
) :
469 argl
= map(None,args
)
470 try: argl
[1] = argl
[1].this
472 try: argl
[2] = argl
[2].this
475 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
477 wx
._StdWindowCallbacks
(self
)
478 wx
._StdOnScrollCallbacks
(self
)
483 class wxMenuPtr(wxEvtHandlerPtr
):
484 def __init__(self
,this
):
487 def Append(self
,arg0
,arg1
,*args
):
488 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
490 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
491 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
493 def AppendSeparator(self
):
494 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
497 val
= windowsc
.wxMenu_Break(self
.this
)
499 def Check(self
,arg0
,arg1
):
500 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
502 def Enable(self
,arg0
,arg1
):
503 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
505 def FindItem(self
,arg0
):
506 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
509 val
= windowsc
.wxMenu_GetTitle(self
.this
)
511 def SetTitle(self
,arg0
):
512 val
= windowsc
.wxMenu_SetTitle(self
.this
,arg0
)
514 def FindItemForId(self
,arg0
):
515 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
516 val
= wxMenuItemPtr(val
)
518 def GetHelpString(self
,arg0
):
519 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
521 def GetLabel(self
,arg0
):
522 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
524 def SetHelpString(self
,arg0
,arg1
):
525 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
527 def IsChecked(self
,arg0
):
528 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
530 def IsEnabled(self
,arg0
):
531 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
533 def SetLabel(self
,arg0
,arg1
):
534 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
537 return "<C wxMenu instance>"
538 class wxMenu(wxMenuPtr
):
539 def __init__(self
,*args
) :
540 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
546 class wxPyMenuPtr(wxMenuPtr
):
547 def __init__(self
,this
):
551 if self
.thisown
== 1 :
552 windowsc
.delete_wxPyMenu(self
.this
)
554 return "<C wxPyMenu instance>"
555 class wxPyMenu(wxPyMenuPtr
):
556 def __init__(self
,*args
) :
557 self
.this
= apply(windowsc
.new_wxPyMenu
,()+args
)
563 class wxMenuBarPtr(wxEvtHandlerPtr
):
564 def __init__(self
,this
):
567 def Append(self
,arg0
,arg1
):
568 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
570 def Check(self
,arg0
,arg1
):
571 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
573 def Checked(self
,arg0
):
574 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
576 def Enable(self
,arg0
,arg1
):
577 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
579 def Enabled(self
,arg0
):
580 val
= windowsc
.wxMenuBar_Enabled(self
.this
,arg0
)
582 def FindMenuItem(self
,arg0
,arg1
):
583 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
585 def FindItemForId(self
,arg0
):
586 val
= windowsc
.wxMenuBar_FindItemForId(self
.this
,arg0
)
587 val
= wxMenuItemPtr(val
)
589 def GetMenuCount(self
):
590 val
= windowsc
.wxMenuBar_GetMenuCount(self
.this
)
592 def GetMenu(self
,arg0
):
593 val
= windowsc
.wxMenuBar_GetMenu(self
.this
,arg0
)
597 return "<C wxMenuBar instance>"
598 class wxMenuBar(wxMenuBarPtr
):
600 self
.this
= windowsc
.new_wxMenuBar()
606 class wxMenuItemPtr
:
607 def __init__(self
,this
):
610 def IsSeparator(self
):
611 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
614 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
617 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
619 def IsCheckable(self
):
620 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
623 val
= windowsc
.wxMenuItem_GetId(self
.this
)
625 def GetSubMenu(self
):
626 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
629 def SetName(self
,arg0
):
630 val
= windowsc
.wxMenuItem_SetName(self
.this
,arg0
)
633 val
= windowsc
.wxMenuItem_GetName(self
.this
)
636 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
638 def SetHelp(self
,arg0
):
639 val
= windowsc
.wxMenuItem_SetHelp(self
.this
,arg0
)
641 def Enable(self
,*args
):
642 val
= apply(windowsc
.wxMenuItem_Enable
,(self
.this
,)+args
)
644 def Check(self
,*args
):
645 val
= apply(windowsc
.wxMenuItem_Check
,(self
.this
,)+args
)
648 return "<C wxMenuItem instance>"
649 class wxMenuItem(wxMenuItemPtr
):
651 self
.this
= windowsc
.new_wxMenuItem()
659 #-------------- FUNCTION WRAPPERS ------------------
663 #-------------- VARIABLE WRAPPERS ------------------