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 GetScrollThumb(self
,arg0
):
136 val
= windowsc
.wxWindow_GetScrollThumb(self
.this
,arg0
)
138 def GetScrollPos(self
,arg0
):
139 val
= windowsc
.wxWindow_GetScrollPos(self
.this
,arg0
)
141 def GetScrollRange(self
,arg0
):
142 val
= windowsc
.wxWindow_GetScrollRange(self
.this
,arg0
)
144 def GetSizeTuple(self
):
145 val
= windowsc
.wxWindow_GetSizeTuple(self
.this
)
148 val
= windowsc
.wxWindow_GetSize(self
.this
)
152 def GetTextExtent(self
,arg0
):
153 val
= windowsc
.wxWindow_GetTextExtent(self
.this
,arg0
)
155 def GetFullTextExtent(self
,arg0
,*args
):
156 argl
= map(None,args
)
157 try: argl
[0] = argl
[0].this
160 val
= apply(windowsc
.wxWindow_GetFullTextExtent
,(self
.this
,arg0
,)+args
)
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 MoveXY(self
,arg0
,arg1
):
193 val
= windowsc
.wxWindow_MoveXY(self
.this
,arg0
,arg1
)
196 val
= windowsc
.wxWindow_Move(self
.this
,arg0
.this
)
198 def PopupMenu(self
,arg0
,arg1
,arg2
):
199 val
= windowsc
.wxWindow_PopupMenu(self
.this
,arg0
.this
,arg1
,arg2
)
202 val
= windowsc
.wxWindow_Raise(self
.this
)
204 def Refresh(self
,*args
):
205 argl
= map(None,args
)
206 try: argl
[1] = argl
[1].this
209 val
= apply(windowsc
.wxWindow_Refresh
,(self
.this
,)+args
)
211 def ReleaseMouse(self
):
212 val
= windowsc
.wxWindow_ReleaseMouse(self
.this
)
214 def ScreenToClientXY(self
,arg0
,arg1
):
215 val
= windowsc
.wxWindow_ScreenToClientXY(self
.this
,arg0
,arg1
)
217 def ScrollWindow(self
,arg0
,arg1
,*args
):
218 argl
= map(None,args
)
219 try: argl
[0] = argl
[0].this
222 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
.this
,arg0
,arg1
,)+args
)
224 def SetAcceleratorTable(self
,arg0
):
225 val
= windowsc
.wxWindow_SetAcceleratorTable(self
.this
,arg0
.this
)
227 def SetAutoLayout(self
,arg0
):
228 val
= windowsc
.wxWindow_SetAutoLayout(self
.this
,arg0
)
230 def SetBackgroundColour(self
,arg0
):
231 val
= windowsc
.wxWindow_SetBackgroundColour(self
.this
,arg0
.this
)
233 def SetConstraints(self
,arg0
):
234 val
= windowsc
.wxWindow_SetConstraints(self
.this
,arg0
.this
)
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 SetScrollbar(self
,arg0
,arg1
,arg2
,arg3
,*args
):
252 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
254 def SetScrollPos(self
,arg0
,arg1
,*args
):
255 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
.this
,arg0
,arg1
,)+args
)
257 def SetDimensions(self
,arg0
,arg1
,arg2
,arg3
,*args
):
258 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
260 def SetSize(self
,arg0
):
261 val
= windowsc
.wxWindow_SetSize(self
.this
,arg0
.this
)
263 def SetPosition(self
,arg0
):
264 val
= windowsc
.wxWindow_SetPosition(self
.this
,arg0
.this
)
266 def SetSizeHints(self
,*args
):
267 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
.this
,)+args
)
269 def SetClientSizeWH(self
,arg0
,arg1
):
270 val
= windowsc
.wxWindow_SetClientSizeWH(self
.this
,arg0
,arg1
)
272 def SetClientSize(self
,arg0
):
273 val
= windowsc
.wxWindow_SetClientSize(self
.this
,arg0
.this
)
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 DLG_PNT(self
,arg0
):
307 val
= windowsc
.wxWindow_DLG_PNT(self
.this
,arg0
.this
)
308 val
= wxPointPtr(val
)
311 def DLG_SZE(self
,arg0
):
312 val
= windowsc
.wxWindow_DLG_SZE(self
.this
,arg0
.this
)
316 def ConvertPixelPointToDialog(self
,arg0
):
317 val
= windowsc
.wxWindow_ConvertPixelPointToDialog(self
.this
,arg0
.this
)
318 val
= wxPointPtr(val
)
321 def ConvertPixelSizeToDialog(self
,arg0
):
322 val
= windowsc
.wxWindow_ConvertPixelSizeToDialog(self
.this
,arg0
.this
)
326 def SetToolTipString(self
,arg0
):
327 val
= windowsc
.wxWindow_SetToolTipString(self
.this
,arg0
)
329 def SetToolTip(self
,arg0
):
330 val
= windowsc
.wxWindow_SetToolTip(self
.this
,arg0
.this
)
332 def GetToolTip(self
):
333 val
= windowsc
.wxWindow_GetToolTip(self
.this
)
334 val
= wxToolTipPtr(val
)
337 return "<C wxWindow instance>"
338 class wxWindow(wxWindowPtr
):
339 def __init__(self
,arg0
,arg1
,*args
) :
340 argl
= map(None,args
)
341 try: argl
[0] = argl
[0].this
343 try: argl
[1] = argl
[1].this
346 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
348 wx
._StdWindowCallbacks
(self
)
353 class wxPanelPtr(wxWindowPtr
):
354 def __init__(self
,this
):
357 def InitDialog(self
):
358 val
= windowsc
.wxPanel_InitDialog(self
.this
)
361 return "<C wxPanel instance>"
362 class wxPanel(wxPanelPtr
):
363 def __init__(self
,arg0
,arg1
,*args
) :
364 argl
= map(None,args
)
365 try: argl
[0] = argl
[0].this
367 try: argl
[1] = argl
[1].this
370 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
372 wx
._StdWindowCallbacks
(self
)
377 class wxDialogPtr(wxPanelPtr
):
378 def __init__(self
,this
):
381 def Centre(self
,*args
):
382 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
384 def EndModal(self
,arg0
):
385 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
388 val
= windowsc
.wxDialog_GetTitle(self
.this
)
390 def Iconize(self
,arg0
):
391 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
393 def IsIconized(self
):
394 val
= windowsc
.wxDialog_IsIconized(self
.this
)
396 def SetModal(self
,arg0
):
397 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
400 val
= windowsc
.wxDialog_IsModal(self
.this
)
402 def SetTitle(self
,arg0
):
403 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
406 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
409 val
= windowsc
.wxDialog_ShowModal(self
.this
)
411 def GetReturnCode(self
):
412 val
= windowsc
.wxDialog_GetReturnCode(self
.this
)
414 def SetReturnCode(self
,arg0
):
415 val
= windowsc
.wxDialog_SetReturnCode(self
.this
,arg0
)
418 return "<C wxDialog instance>"
419 class wxDialog(wxDialogPtr
):
420 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
421 argl
= map(None,args
)
422 try: argl
[0] = argl
[0].this
424 try: argl
[1] = argl
[1].this
427 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
429 wx
._StdDialogCallbacks
(self
)
434 class wxScrolledWindowPtr(wxWindowPtr
):
435 def __init__(self
,this
):
438 def EnableScrolling(self
,arg0
,arg1
):
439 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
441 def GetScrollPixelsPerUnit(self
):
442 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
444 def GetVirtualSize(self
):
445 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
447 def IsRetained(self
):
448 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
450 def PrepareDC(self
,arg0
):
451 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
453 def Scroll(self
,arg0
,arg1
):
454 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
456 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
457 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
460 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
463 return "<C wxScrolledWindow instance>"
464 class wxScrolledWindow(wxScrolledWindowPtr
):
465 def __init__(self
,arg0
,*args
) :
466 argl
= map(None,args
)
467 try: argl
[1] = argl
[1].this
469 try: argl
[2] = argl
[2].this
472 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
474 wx
._StdWindowCallbacks
(self
)
475 wx
._StdOnScrollCallbacks
(self
)
480 class wxMenuPtr(wxEvtHandlerPtr
):
481 def __init__(self
,this
):
484 def Append(self
,arg0
,arg1
,*args
):
485 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
487 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
488 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
490 def AppendSeparator(self
):
491 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
494 val
= windowsc
.wxMenu_Break(self
.this
)
496 def Check(self
,arg0
,arg1
):
497 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
499 def Enable(self
,arg0
,arg1
):
500 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
502 def FindItem(self
,arg0
):
503 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
506 val
= windowsc
.wxMenu_GetTitle(self
.this
)
508 def SetTitle(self
,arg0
):
509 val
= windowsc
.wxMenu_SetTitle(self
.this
,arg0
)
511 def FindItemForId(self
,arg0
):
512 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
513 val
= wxMenuItemPtr(val
)
515 def GetHelpString(self
,arg0
):
516 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
518 def GetLabel(self
,arg0
):
519 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
521 def SetHelpString(self
,arg0
,arg1
):
522 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
524 def IsChecked(self
,arg0
):
525 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
527 def IsEnabled(self
,arg0
):
528 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
530 def SetLabel(self
,arg0
,arg1
):
531 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
534 return "<C wxMenu instance>"
535 class wxMenu(wxMenuPtr
):
536 def __init__(self
,*args
) :
537 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
543 class wxPyMenuPtr(wxMenuPtr
):
544 def __init__(self
,this
):
548 if self
.thisown
== 1 :
549 windowsc
.delete_wxPyMenu(self
.this
)
551 return "<C wxPyMenu instance>"
552 class wxPyMenu(wxPyMenuPtr
):
553 def __init__(self
,*args
) :
554 self
.this
= apply(windowsc
.new_wxPyMenu
,()+args
)
560 class wxMenuBarPtr(wxEvtHandlerPtr
):
561 def __init__(self
,this
):
564 def Append(self
,arg0
,arg1
):
565 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
567 def Check(self
,arg0
,arg1
):
568 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
570 def Checked(self
,arg0
):
571 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
573 def Enable(self
,arg0
,arg1
):
574 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
576 def Enabled(self
,arg0
):
577 val
= windowsc
.wxMenuBar_Enabled(self
.this
,arg0
)
579 def FindMenuItem(self
,arg0
,arg1
):
580 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
582 def FindItemForId(self
,arg0
):
583 val
= windowsc
.wxMenuBar_FindItemForId(self
.this
,arg0
)
584 val
= wxMenuItemPtr(val
)
586 def GetMenuCount(self
):
587 val
= windowsc
.wxMenuBar_GetMenuCount(self
.this
)
589 def GetMenu(self
,arg0
):
590 val
= windowsc
.wxMenuBar_GetMenu(self
.this
,arg0
)
594 return "<C wxMenuBar instance>"
595 class wxMenuBar(wxMenuBarPtr
):
597 self
.this
= windowsc
.new_wxMenuBar()
603 class wxMenuItemPtr
:
604 def __init__(self
,this
):
607 def IsSeparator(self
):
608 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
611 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
614 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
616 def IsCheckable(self
):
617 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
620 val
= windowsc
.wxMenuItem_GetId(self
.this
)
622 def GetSubMenu(self
):
623 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
626 def SetName(self
,arg0
):
627 val
= windowsc
.wxMenuItem_SetName(self
.this
,arg0
)
630 val
= windowsc
.wxMenuItem_GetName(self
.this
)
633 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
635 def SetHelp(self
,arg0
):
636 val
= windowsc
.wxMenuItem_SetHelp(self
.this
,arg0
)
638 def Enable(self
,*args
):
639 val
= apply(windowsc
.wxMenuItem_Enable
,(self
.this
,)+args
)
641 def Check(self
,*args
):
642 val
= apply(windowsc
.wxMenuItem_Check
,(self
.this
,)+args
)
645 return "<C wxMenuItem instance>"
646 class wxMenuItem(wxMenuItemPtr
):
648 self
.this
= windowsc
.new_wxMenuItem()
656 #-------------- FUNCTION WRAPPERS ------------------
660 #-------------- VARIABLE WRAPPERS ------------------