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 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 ClientToScreenXY(self
,arg0
,arg1
):
45 val
= windowsc
.wxWindow_ClientToScreenXY(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 Enable(self
,arg0
):
57 val
= windowsc
.wxWindow_Enable(self
.this
,arg0
)
59 def FindWindowById(self
,arg0
):
60 val
= windowsc
.wxWindow_FindWindowById(self
.this
,arg0
)
61 val
= wxWindowPtr(val
)
63 def FindWindowByName(self
,arg0
):
64 val
= windowsc
.wxWindow_FindWindowByName(self
.this
,arg0
)
65 val
= wxWindowPtr(val
)
68 val
= windowsc
.wxWindow_Fit(self
.this
)
70 def GetBackgroundColour(self
):
71 val
= windowsc
.wxWindow_GetBackgroundColour(self
.this
)
72 val
= wxColourPtr(val
)
75 def GetCharHeight(self
):
76 val
= windowsc
.wxWindow_GetCharHeight(self
.this
)
78 def GetCharWidth(self
):
79 val
= windowsc
.wxWindow_GetCharWidth(self
.this
)
81 def GetClientSizeTuple(self
):
82 val
= windowsc
.wxWindow_GetClientSizeTuple(self
.this
)
84 def GetClientSize(self
):
85 val
= windowsc
.wxWindow_GetClientSize(self
.this
)
89 def GetConstraints(self
):
90 val
= windowsc
.wxWindow_GetConstraints(self
.this
)
91 val
= wxLayoutConstraintsPtr(val
)
94 val
= windowsc
.wxWindow_GetFont(self
.this
)
97 def GetForegroundColour(self
):
98 val
= windowsc
.wxWindow_GetForegroundColour(self
.this
)
99 val
= wxColourPtr(val
)
102 def GetGrandParent(self
):
103 val
= windowsc
.wxWindow_GetGrandParent(self
.this
)
104 val
= wxWindowPtr(val
)
107 val
= windowsc
.wxWindow_GetId(self
.this
)
110 val
= windowsc
.wxWindow_GetLabel(self
.this
)
113 val
= windowsc
.wxWindow_GetName(self
.this
)
116 val
= windowsc
.wxWindow_GetParent(self
.this
)
117 val
= wxWindowPtr(val
)
119 def GetPositionTuple(self
):
120 val
= windowsc
.wxWindow_GetPositionTuple(self
.this
)
122 def GetPosition(self
):
123 val
= windowsc
.wxWindow_GetPosition(self
.this
)
124 val
= wxPointPtr(val
)
128 val
= windowsc
.wxWindow_GetRect(self
.this
)
132 def GetReturnCode(self
):
133 val
= windowsc
.wxWindow_GetReturnCode(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
)
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 ScreenToClientXY(self
,arg0
,arg1
):
212 val
= windowsc
.wxWindow_ScreenToClientXY(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 SetClientSizeWH(self
,arg0
,arg1
):
273 val
= windowsc
.wxWindow_SetClientSizeWH(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
)
316 def SetToolTipString(self
,arg0
):
317 val
= windowsc
.wxWindow_SetToolTipString(self
.this
,arg0
)
319 def SetToolTip(self
,arg0
):
320 val
= windowsc
.wxWindow_SetToolTip(self
.this
,arg0
.this
)
322 def GetToolTip(self
):
323 val
= windowsc
.wxWindow_GetToolTip(self
.this
)
324 val
= wxToolTipPtr(val
)
327 return "<C wxWindow instance>"
328 class wxWindow(wxWindowPtr
):
329 def __init__(self
,arg0
,arg1
,*args
) :
330 argl
= map(None,args
)
331 try: argl
[0] = argl
[0].this
333 try: argl
[1] = argl
[1].this
336 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
338 wx
._StdWindowCallbacks
(self
)
343 class wxPanelPtr(wxWindowPtr
):
344 def __init__(self
,this
):
347 def InitDialog(self
):
348 val
= windowsc
.wxPanel_InitDialog(self
.this
)
351 return "<C wxPanel instance>"
352 class wxPanel(wxPanelPtr
):
353 def __init__(self
,arg0
,arg1
,*args
) :
354 argl
= map(None,args
)
355 try: argl
[0] = argl
[0].this
357 try: argl
[1] = argl
[1].this
360 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
362 wx
._StdWindowCallbacks
(self
)
367 class wxDialogPtr(wxPanelPtr
):
368 def __init__(self
,this
):
371 def Centre(self
,*args
):
372 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
374 def EndModal(self
,arg0
):
375 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
378 val
= windowsc
.wxDialog_GetTitle(self
.this
)
380 def Iconize(self
,arg0
):
381 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
383 def IsIconized(self
):
384 val
= windowsc
.wxDialog_IsIconized(self
.this
)
386 def SetModal(self
,arg0
):
387 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
390 val
= windowsc
.wxDialog_IsModal(self
.this
)
392 def SetTitle(self
,arg0
):
393 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
396 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
399 val
= windowsc
.wxDialog_ShowModal(self
.this
)
402 return "<C wxDialog instance>"
403 class wxDialog(wxDialogPtr
):
404 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
405 argl
= map(None,args
)
406 try: argl
[0] = argl
[0].this
408 try: argl
[1] = argl
[1].this
411 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
413 wx
._StdDialogCallbacks
(self
)
418 class wxScrolledWindowPtr(wxWindowPtr
):
419 def __init__(self
,this
):
422 def EnableScrolling(self
,arg0
,arg1
):
423 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
425 def GetScrollPixelsPerUnit(self
):
426 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
428 def GetVirtualSize(self
):
429 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
431 def IsRetained(self
):
432 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
434 def PrepareDC(self
,arg0
):
435 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
437 def Scroll(self
,arg0
,arg1
):
438 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
440 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
441 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
444 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
447 return "<C wxScrolledWindow instance>"
448 class wxScrolledWindow(wxScrolledWindowPtr
):
449 def __init__(self
,arg0
,*args
) :
450 argl
= map(None,args
)
451 try: argl
[1] = argl
[1].this
453 try: argl
[2] = argl
[2].this
456 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
458 wx
._StdWindowCallbacks
(self
)
459 wx
._StdOnScrollCallbacks
(self
)
464 class wxMenuPtr(wxEvtHandlerPtr
):
465 def __init__(self
,this
):
468 def Append(self
,arg0
,arg1
,*args
):
469 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
471 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
472 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
474 def AppendSeparator(self
):
475 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
478 val
= windowsc
.wxMenu_Break(self
.this
)
480 def Check(self
,arg0
,arg1
):
481 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
483 def Enable(self
,arg0
,arg1
):
484 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
486 def FindItem(self
,arg0
):
487 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
490 val
= windowsc
.wxMenu_GetTitle(self
.this
)
492 def SetTitle(self
,arg0
):
493 val
= windowsc
.wxMenu_SetTitle(self
.this
,arg0
)
495 def FindItemForId(self
,arg0
):
496 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
497 val
= wxMenuItemPtr(val
)
499 def GetHelpString(self
,arg0
):
500 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
502 def GetLabel(self
,arg0
):
503 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
505 def SetHelpString(self
,arg0
,arg1
):
506 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
508 def IsChecked(self
,arg0
):
509 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
511 def IsEnabled(self
,arg0
):
512 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
514 def SetLabel(self
,arg0
,arg1
):
515 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
518 return "<C wxMenu instance>"
519 class wxMenu(wxMenuPtr
):
520 def __init__(self
,*args
) :
521 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
527 class wxPyMenuPtr(wxMenuPtr
):
528 def __init__(self
,this
):
532 if self
.thisown
== 1 :
533 windowsc
.delete_wxPyMenu(self
.this
)
535 return "<C wxPyMenu instance>"
536 class wxPyMenu(wxPyMenuPtr
):
537 def __init__(self
,*args
) :
538 self
.this
= apply(windowsc
.new_wxPyMenu
,()+args
)
544 class wxMenuBarPtr(wxEvtHandlerPtr
):
545 def __init__(self
,this
):
548 def Append(self
,arg0
,arg1
):
549 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
551 def Check(self
,arg0
,arg1
):
552 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
554 def Checked(self
,arg0
):
555 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
557 def Enable(self
,arg0
,arg1
):
558 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
560 def Enabled(self
,arg0
):
561 val
= windowsc
.wxMenuBar_Enabled(self
.this
,arg0
)
563 def FindMenuItem(self
,arg0
,arg1
):
564 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
566 def FindItemForId(self
,arg0
):
567 val
= windowsc
.wxMenuBar_FindItemForId(self
.this
,arg0
)
568 val
= wxMenuItemPtr(val
)
570 def GetMenuCount(self
):
571 val
= windowsc
.wxMenuBar_GetMenuCount(self
.this
)
573 def GetMenu(self
,arg0
):
574 val
= windowsc
.wxMenuBar_GetMenu(self
.this
,arg0
)
578 return "<C wxMenuBar instance>"
579 class wxMenuBar(wxMenuBarPtr
):
581 self
.this
= windowsc
.new_wxMenuBar()
587 class wxMenuItemPtr
:
588 def __init__(self
,this
):
591 def IsSeparator(self
):
592 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
595 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
598 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
600 def IsCheckable(self
):
601 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
604 val
= windowsc
.wxMenuItem_GetId(self
.this
)
606 def GetSubMenu(self
):
607 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
610 def SetName(self
,arg0
):
611 val
= windowsc
.wxMenuItem_SetName(self
.this
,arg0
)
614 val
= windowsc
.wxMenuItem_GetName(self
.this
)
617 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
619 def SetHelp(self
,arg0
):
620 val
= windowsc
.wxMenuItem_SetHelp(self
.this
,arg0
)
622 def Enable(self
,*args
):
623 val
= apply(windowsc
.wxMenuItem_Enable
,(self
.this
,)+args
)
625 def Check(self
,*args
):
626 val
= apply(windowsc
.wxMenuItem_Check
,(self
.this
,)+args
)
629 return "<C wxMenuItem instance>"
630 class wxMenuItem(wxMenuItemPtr
):
631 def __init__(self
,this
):
639 #-------------- FUNCTION WRAPPERS ------------------
643 #-------------- VARIABLE WRAPPERS ------------------