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
)
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
)
236 def SetDoubleClick(self
,arg0
):
237 val
= windowsc
.wxWindow_SetDoubleClick(self
.this
,arg0
)
240 val
= windowsc
.wxWindow_SetFocus(self
.this
)
242 def SetFont(self
,arg0
):
243 val
= windowsc
.wxWindow_SetFont(self
.this
,arg0
.this
)
245 def SetForegroundColour(self
,arg0
):
246 val
= windowsc
.wxWindow_SetForegroundColour(self
.this
,arg0
.this
)
248 def SetId(self
,arg0
):
249 val
= windowsc
.wxWindow_SetId(self
.this
,arg0
)
251 def SetName(self
,arg0
):
252 val
= windowsc
.wxWindow_SetName(self
.this
,arg0
)
254 def SetReturnCode(self
,arg0
):
255 val
= windowsc
.wxWindow_SetReturnCode(self
.this
,arg0
)
257 def SetScrollbar(self
,arg0
,arg1
,arg2
,arg3
,*args
):
258 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
260 def SetScrollPos(self
,arg0
,arg1
,*args
):
261 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
.this
,arg0
,arg1
,)+args
)
263 def SetDimensions(self
,arg0
,arg1
,arg2
,arg3
,*args
):
264 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
266 def SetSize(self
,arg0
):
267 val
= windowsc
.wxWindow_SetSize(self
.this
,arg0
.this
)
269 def SetPosition(self
,arg0
):
270 val
= windowsc
.wxWindow_SetPosition(self
.this
,arg0
.this
)
272 def SetSizeHints(self
,*args
):
273 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
.this
,)+args
)
275 def SetClientSizeWH(self
,arg0
,arg1
):
276 val
= windowsc
.wxWindow_SetClientSizeWH(self
.this
,arg0
,arg1
)
278 def SetClientSize(self
,arg0
):
279 val
= windowsc
.wxWindow_SetClientSize(self
.this
,arg0
.this
)
281 def SetCursor(self
,arg0
):
282 val
= windowsc
.wxWindow_SetCursor(self
.this
,arg0
.this
)
284 def SetTitle(self
,arg0
):
285 val
= windowsc
.wxWindow_SetTitle(self
.this
,arg0
)
288 val
= windowsc
.wxWindow_Show(self
.this
,arg0
)
290 def TransferDataFromWindow(self
):
291 val
= windowsc
.wxWindow_TransferDataFromWindow(self
.this
)
293 def TransferDataToWindow(self
):
294 val
= windowsc
.wxWindow_TransferDataToWindow(self
.this
)
297 val
= windowsc
.wxWindow_Validate(self
.this
)
299 def WarpPointer(self
,arg0
,arg1
):
300 val
= windowsc
.wxWindow_WarpPointer(self
.this
,arg0
,arg1
)
302 def ConvertDialogPointToPixels(self
,arg0
):
303 val
= windowsc
.wxWindow_ConvertDialogPointToPixels(self
.this
,arg0
.this
)
304 val
= wxPointPtr(val
)
307 def ConvertDialogSizeToPixels(self
,arg0
):
308 val
= windowsc
.wxWindow_ConvertDialogSizeToPixels(self
.this
,arg0
.this
)
312 def ConvertPixelPointToDialog(self
,arg0
):
313 val
= windowsc
.wxWindow_ConvertPixelPointToDialog(self
.this
,arg0
.this
)
314 val
= wxPointPtr(val
)
317 def ConvertPixelSizeToDialog(self
,arg0
):
318 val
= windowsc
.wxWindow_ConvertPixelSizeToDialog(self
.this
,arg0
.this
)
322 def SetToolTipString(self
,arg0
):
323 val
= windowsc
.wxWindow_SetToolTipString(self
.this
,arg0
)
325 def SetToolTip(self
,arg0
):
326 val
= windowsc
.wxWindow_SetToolTip(self
.this
,arg0
.this
)
328 def GetToolTip(self
):
329 val
= windowsc
.wxWindow_GetToolTip(self
.this
)
330 val
= wxToolTipPtr(val
)
333 return "<C wxWindow instance>"
334 class wxWindow(wxWindowPtr
):
335 def __init__(self
,arg0
,arg1
,*args
) :
336 argl
= map(None,args
)
337 try: argl
[0] = argl
[0].this
339 try: argl
[1] = argl
[1].this
342 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
344 wx
._StdWindowCallbacks
(self
)
349 class wxPanelPtr(wxWindowPtr
):
350 def __init__(self
,this
):
353 def InitDialog(self
):
354 val
= windowsc
.wxPanel_InitDialog(self
.this
)
357 return "<C wxPanel instance>"
358 class wxPanel(wxPanelPtr
):
359 def __init__(self
,arg0
,arg1
,*args
) :
360 argl
= map(None,args
)
361 try: argl
[0] = argl
[0].this
363 try: argl
[1] = argl
[1].this
366 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
368 wx
._StdWindowCallbacks
(self
)
373 class wxDialogPtr(wxPanelPtr
):
374 def __init__(self
,this
):
377 def Centre(self
,*args
):
378 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
380 def EndModal(self
,arg0
):
381 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
384 val
= windowsc
.wxDialog_GetTitle(self
.this
)
386 def Iconize(self
,arg0
):
387 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
389 def IsIconized(self
):
390 val
= windowsc
.wxDialog_IsIconized(self
.this
)
392 def SetModal(self
,arg0
):
393 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
396 val
= windowsc
.wxDialog_IsModal(self
.this
)
398 def SetTitle(self
,arg0
):
399 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
402 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
405 val
= windowsc
.wxDialog_ShowModal(self
.this
)
408 return "<C wxDialog instance>"
409 class wxDialog(wxDialogPtr
):
410 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
411 argl
= map(None,args
)
412 try: argl
[0] = argl
[0].this
414 try: argl
[1] = argl
[1].this
417 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
419 wx
._StdDialogCallbacks
(self
)
424 class wxScrolledWindowPtr(wxWindowPtr
):
425 def __init__(self
,this
):
428 def EnableScrolling(self
,arg0
,arg1
):
429 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
431 def GetScrollPixelsPerUnit(self
):
432 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
434 def GetVirtualSize(self
):
435 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
437 def IsRetained(self
):
438 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
440 def PrepareDC(self
,arg0
):
441 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
443 def Scroll(self
,arg0
,arg1
):
444 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
446 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
447 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
450 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
453 return "<C wxScrolledWindow instance>"
454 class wxScrolledWindow(wxScrolledWindowPtr
):
455 def __init__(self
,arg0
,*args
) :
456 argl
= map(None,args
)
457 try: argl
[1] = argl
[1].this
459 try: argl
[2] = argl
[2].this
462 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
464 wx
._StdWindowCallbacks
(self
)
465 wx
._StdOnScrollCallbacks
(self
)
470 class wxMenuPtr(wxEvtHandlerPtr
):
471 def __init__(self
,this
):
474 def Append(self
,arg0
,arg1
,*args
):
475 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
477 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
478 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
480 def AppendSeparator(self
):
481 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
484 val
= windowsc
.wxMenu_Break(self
.this
)
486 def Check(self
,arg0
,arg1
):
487 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
489 def Enable(self
,arg0
,arg1
):
490 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
492 def FindItem(self
,arg0
):
493 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
496 val
= windowsc
.wxMenu_GetTitle(self
.this
)
498 def SetTitle(self
,arg0
):
499 val
= windowsc
.wxMenu_SetTitle(self
.this
,arg0
)
501 def FindItemForId(self
,arg0
):
502 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
503 val
= wxMenuItemPtr(val
)
505 def GetHelpString(self
,arg0
):
506 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
508 def GetLabel(self
,arg0
):
509 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
511 def SetHelpString(self
,arg0
,arg1
):
512 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
514 def IsChecked(self
,arg0
):
515 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
517 def IsEnabled(self
,arg0
):
518 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
520 def SetLabel(self
,arg0
,arg1
):
521 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
524 return "<C wxMenu instance>"
525 class wxMenu(wxMenuPtr
):
526 def __init__(self
,*args
) :
527 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
533 class wxPyMenuPtr(wxMenuPtr
):
534 def __init__(self
,this
):
538 if self
.thisown
== 1 :
539 windowsc
.delete_wxPyMenu(self
.this
)
541 return "<C wxPyMenu instance>"
542 class wxPyMenu(wxPyMenuPtr
):
543 def __init__(self
,*args
) :
544 self
.this
= apply(windowsc
.new_wxPyMenu
,()+args
)
550 class wxMenuBarPtr(wxEvtHandlerPtr
):
551 def __init__(self
,this
):
554 def Append(self
,arg0
,arg1
):
555 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
557 def Check(self
,arg0
,arg1
):
558 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
560 def Checked(self
,arg0
):
561 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
563 def Enable(self
,arg0
,arg1
):
564 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
566 def Enabled(self
,arg0
):
567 val
= windowsc
.wxMenuBar_Enabled(self
.this
,arg0
)
569 def FindMenuItem(self
,arg0
,arg1
):
570 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
572 def FindItemForId(self
,arg0
):
573 val
= windowsc
.wxMenuBar_FindItemForId(self
.this
,arg0
)
574 val
= wxMenuItemPtr(val
)
576 def GetMenuCount(self
):
577 val
= windowsc
.wxMenuBar_GetMenuCount(self
.this
)
579 def GetMenu(self
,arg0
):
580 val
= windowsc
.wxMenuBar_GetMenu(self
.this
,arg0
)
584 return "<C wxMenuBar instance>"
585 class wxMenuBar(wxMenuBarPtr
):
587 self
.this
= windowsc
.new_wxMenuBar()
593 class wxMenuItemPtr
:
594 def __init__(self
,this
):
597 def IsSeparator(self
):
598 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
601 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
604 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
606 def IsCheckable(self
):
607 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
610 val
= windowsc
.wxMenuItem_GetId(self
.this
)
612 def GetSubMenu(self
):
613 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
616 def SetName(self
,arg0
):
617 val
= windowsc
.wxMenuItem_SetName(self
.this
,arg0
)
620 val
= windowsc
.wxMenuItem_GetName(self
.this
)
623 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
625 def SetHelp(self
,arg0
):
626 val
= windowsc
.wxMenuItem_SetHelp(self
.this
,arg0
)
628 def Enable(self
,*args
):
629 val
= apply(windowsc
.wxMenuItem_Enable
,(self
.this
,)+args
)
631 def Check(self
,*args
):
632 val
= apply(windowsc
.wxMenuItem_Check
,(self
.this
,)+args
)
635 return "<C wxMenuItem instance>"
636 class wxMenuItem(wxMenuItemPtr
):
637 def __init__(self
,this
):
645 #-------------- FUNCTION WRAPPERS ------------------
649 #-------------- VARIABLE WRAPPERS ------------------