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 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
)
156 val
= windowsc
.wxWindow_GetTitle(self
.this
)
158 def GetWindowStyleFlag(self
):
159 val
= windowsc
.wxWindow_GetWindowStyleFlag(self
.this
)
161 def InitDialog(self
):
162 val
= windowsc
.wxWindow_InitDialog(self
.this
)
165 val
= windowsc
.wxWindow_IsEnabled(self
.this
)
167 def IsRetained(self
):
168 val
= windowsc
.wxWindow_IsRetained(self
.this
)
171 val
= windowsc
.wxWindow_IsShown(self
.this
)
174 val
= windowsc
.wxWindow_Layout(self
.this
)
176 def LoadFromResource(self
,arg0
,arg1
,*args
):
177 val
= apply(windowsc
.wxWindow_LoadFromResource
,(self
.this
,arg0
.this
,arg1
,)+args
)
180 val
= windowsc
.wxWindow_Lower(self
.this
)
182 def MakeModal(self
,arg0
):
183 val
= windowsc
.wxWindow_MakeModal(self
.this
,arg0
)
185 def Move(self
,arg0
,arg1
):
186 val
= windowsc
.wxWindow_Move(self
.this
,arg0
,arg1
)
188 def PopupMenu(self
,arg0
,arg1
,arg2
):
189 val
= windowsc
.wxWindow_PopupMenu(self
.this
,arg0
.this
,arg1
,arg2
)
192 val
= windowsc
.wxWindow_Raise(self
.this
)
194 def Refresh(self
,*args
):
195 argl
= map(None,args
)
196 try: argl
[1] = argl
[1].this
199 val
= apply(windowsc
.wxWindow_Refresh
,(self
.this
,)+args
)
201 def ReleaseMouse(self
):
202 val
= windowsc
.wxWindow_ReleaseMouse(self
.this
)
204 def ScreenToClient(self
,arg0
,arg1
):
205 val
= windowsc
.wxWindow_ScreenToClient(self
.this
,arg0
,arg1
)
207 def ScrollWindow(self
,arg0
,arg1
,*args
):
208 argl
= map(None,args
)
209 try: argl
[0] = argl
[0].this
212 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
.this
,arg0
,arg1
,)+args
)
214 def SetAcceleratorTable(self
,arg0
):
215 val
= windowsc
.wxWindow_SetAcceleratorTable(self
.this
,arg0
.this
)
217 def SetAutoLayout(self
,arg0
):
218 val
= windowsc
.wxWindow_SetAutoLayout(self
.this
,arg0
)
220 def SetBackgroundColour(self
,arg0
):
221 val
= windowsc
.wxWindow_SetBackgroundColour(self
.this
,arg0
.this
)
223 def SetConstraints(self
,arg0
):
224 val
= windowsc
.wxWindow_SetConstraints(self
.this
,arg0
.this
)
226 def SetDoubleClick(self
,arg0
):
227 val
= windowsc
.wxWindow_SetDoubleClick(self
.this
,arg0
)
230 val
= windowsc
.wxWindow_SetFocus(self
.this
)
232 def SetFont(self
,arg0
):
233 val
= windowsc
.wxWindow_SetFont(self
.this
,arg0
.this
)
235 def SetForegroundColour(self
,arg0
):
236 val
= windowsc
.wxWindow_SetForegroundColour(self
.this
,arg0
.this
)
238 def SetId(self
,arg0
):
239 val
= windowsc
.wxWindow_SetId(self
.this
,arg0
)
241 def SetName(self
,arg0
):
242 val
= windowsc
.wxWindow_SetName(self
.this
,arg0
)
244 def SetReturnCode(self
,arg0
):
245 val
= windowsc
.wxWindow_SetReturnCode(self
.this
,arg0
)
247 def SetScrollbar(self
,arg0
,arg1
,arg2
,arg3
,*args
):
248 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
250 def SetScrollPos(self
,arg0
,arg1
,*args
):
251 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
.this
,arg0
,arg1
,)+args
)
253 def SetDimensions(self
,arg0
,arg1
,arg2
,arg3
,*args
):
254 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
256 def SetSize(self
,arg0
):
257 val
= windowsc
.wxWindow_SetSize(self
.this
,arg0
.this
)
259 def SetPosition(self
,arg0
):
260 val
= windowsc
.wxWindow_SetPosition(self
.this
,arg0
.this
)
262 def SetSizeHints(self
,*args
):
263 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
.this
,)+args
)
265 def SetClientSize(self
,arg0
,arg1
):
266 val
= windowsc
.wxWindow_SetClientSize(self
.this
,arg0
,arg1
)
268 def SetCursor(self
,arg0
):
269 val
= windowsc
.wxWindow_SetCursor(self
.this
,arg0
.this
)
271 def SetTitle(self
,arg0
):
272 val
= windowsc
.wxWindow_SetTitle(self
.this
,arg0
)
275 val
= windowsc
.wxWindow_Show(self
.this
,arg0
)
277 def TransferDataFromWindow(self
):
278 val
= windowsc
.wxWindow_TransferDataFromWindow(self
.this
)
280 def TransferDataToWindow(self
):
281 val
= windowsc
.wxWindow_TransferDataToWindow(self
.this
)
284 val
= windowsc
.wxWindow_Validate(self
.this
)
286 def WarpPointer(self
,arg0
,arg1
):
287 val
= windowsc
.wxWindow_WarpPointer(self
.this
,arg0
,arg1
)
289 def ConvertDialogPointToPixels(self
,arg0
):
290 val
= windowsc
.wxWindow_ConvertDialogPointToPixels(self
.this
,arg0
.this
)
291 val
= wxPointPtr(val
)
294 def ConvertDialogSizeToPixels(self
,arg0
):
295 val
= windowsc
.wxWindow_ConvertDialogSizeToPixels(self
.this
,arg0
.this
)
299 def ConvertPixelPointToDialog(self
,arg0
):
300 val
= windowsc
.wxWindow_ConvertPixelPointToDialog(self
.this
,arg0
.this
)
301 val
= wxPointPtr(val
)
304 def ConvertPixelSizeToDialog(self
,arg0
):
305 val
= windowsc
.wxWindow_ConvertPixelSizeToDialog(self
.this
,arg0
.this
)
310 return "<C wxWindow instance>"
311 class wxWindow(wxWindowPtr
):
312 def __init__(self
,arg0
,arg1
,*args
) :
313 argl
= map(None,args
)
314 try: argl
[0] = argl
[0].this
316 try: argl
[1] = argl
[1].this
319 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
321 wx
._StdWindowCallbacks
(self
)
326 class wxPanelPtr(wxWindowPtr
):
327 def __init__(self
,this
):
330 def InitDialog(self
):
331 val
= windowsc
.wxPanel_InitDialog(self
.this
)
334 return "<C wxPanel instance>"
335 class wxPanel(wxPanelPtr
):
336 def __init__(self
,arg0
,arg1
,*args
) :
337 argl
= map(None,args
)
338 try: argl
[0] = argl
[0].this
340 try: argl
[1] = argl
[1].this
343 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
345 wx
._StdWindowCallbacks
(self
)
350 class wxDialogPtr(wxPanelPtr
):
351 def __init__(self
,this
):
354 def Centre(self
,*args
):
355 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
357 def EndModal(self
,arg0
):
358 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
361 val
= windowsc
.wxDialog_GetTitle(self
.this
)
363 def Iconize(self
,arg0
):
364 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
366 def IsIconized(self
):
367 val
= windowsc
.wxDialog_IsIconized(self
.this
)
369 def SetModal(self
,arg0
):
370 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
373 val
= windowsc
.wxDialog_IsModal(self
.this
)
375 def SetTitle(self
,arg0
):
376 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
379 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
382 val
= windowsc
.wxDialog_ShowModal(self
.this
)
385 return "<C wxDialog instance>"
386 class wxDialog(wxDialogPtr
):
387 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
388 argl
= map(None,args
)
389 try: argl
[0] = argl
[0].this
391 try: argl
[1] = argl
[1].this
394 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
396 wx
._StdDialogCallbacks
(self
)
401 class wxScrolledWindowPtr(wxWindowPtr
):
402 def __init__(self
,this
):
405 def EnableScrolling(self
,arg0
,arg1
):
406 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
408 def GetScrollPixelsPerUnit(self
):
409 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
411 def GetVirtualSize(self
):
412 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
414 def IsRetained(self
):
415 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
417 def PrepareDC(self
,arg0
):
418 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
420 def Scroll(self
,arg0
,arg1
):
421 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
423 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
424 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
427 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
430 return "<C wxScrolledWindow instance>"
431 class wxScrolledWindow(wxScrolledWindowPtr
):
432 def __init__(self
,arg0
,*args
) :
433 argl
= map(None,args
)
434 try: argl
[1] = argl
[1].this
436 try: argl
[2] = argl
[2].this
439 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
441 wx
._StdWindowCallbacks
(self
)
442 wx
._StdOnScrollCallbacks
(self
)
447 class wxMenuPtr(wxEvtHandlerPtr
):
448 def __init__(self
,this
):
451 def Append(self
,arg0
,arg1
,*args
):
452 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
454 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
455 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
457 def AppendSeparator(self
):
458 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
461 val
= windowsc
.wxMenu_Break(self
.this
)
463 def Check(self
,arg0
,arg1
):
464 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
466 def Enable(self
,arg0
,arg1
):
467 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
469 def FindItem(self
,arg0
):
470 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
473 val
= windowsc
.wxMenu_GetTitle(self
.this
)
475 def SetTitle(self
,arg0
):
476 val
= windowsc
.wxMenu_SetTitle(self
.this
,arg0
)
478 def FindItemForId(self
,arg0
):
479 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
480 val
= wxMenuItemPtr(val
)
482 def GetHelpString(self
,arg0
):
483 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
485 def GetLabel(self
,arg0
):
486 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
488 def SetHelpString(self
,arg0
,arg1
):
489 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
491 def IsChecked(self
,arg0
):
492 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
494 def IsEnabled(self
,arg0
):
495 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
497 def SetLabel(self
,arg0
,arg1
):
498 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
501 return "<C wxMenu instance>"
502 class wxMenu(wxMenuPtr
):
503 def __init__(self
,*args
) :
504 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
510 class wxPyMenuPtr(wxMenuPtr
):
511 def __init__(self
,this
):
515 if self
.thisown
== 1 :
516 windowsc
.delete_wxPyMenu(self
.this
)
518 return "<C wxPyMenu instance>"
519 class wxPyMenu(wxPyMenuPtr
):
520 def __init__(self
,*args
) :
521 self
.this
= apply(windowsc
.new_wxPyMenu
,()+args
)
527 class wxMenuBarPtr(wxEvtHandlerPtr
):
528 def __init__(self
,this
):
531 def Append(self
,arg0
,arg1
):
532 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
534 def Check(self
,arg0
,arg1
):
535 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
537 def Checked(self
,arg0
):
538 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
540 def Enable(self
,arg0
,arg1
):
541 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
543 def Enabled(self
,arg0
):
544 val
= windowsc
.wxMenuBar_Enabled(self
.this
,arg0
)
546 def FindMenuItem(self
,arg0
,arg1
):
547 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
549 def GetMenuCount(self
):
550 val
= windowsc
.wxMenuBar_GetMenuCount(self
.this
)
552 def GetMenu(self
,arg0
):
553 val
= windowsc
.wxMenuBar_GetMenu(self
.this
,arg0
)
557 return "<C wxMenuBar instance>"
558 class wxMenuBar(wxMenuBarPtr
):
560 self
.this
= windowsc
.new_wxMenuBar()
566 class wxMenuItemPtr
:
567 def __init__(self
,this
):
570 def IsSeparator(self
):
571 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
574 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
577 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
579 def IsCheckable(self
):
580 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
583 val
= windowsc
.wxMenuItem_GetId(self
.this
)
585 def GetSubMenu(self
):
586 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
589 def SetName(self
,arg0
):
590 val
= windowsc
.wxMenuItem_SetName(self
.this
,arg0
)
593 val
= windowsc
.wxMenuItem_GetName(self
.this
)
596 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
598 def SetHelp(self
,arg0
):
599 val
= windowsc
.wxMenuItem_SetHelp(self
.this
,arg0
)
601 def Enable(self
,*args
):
602 val
= apply(windowsc
.wxMenuItem_Enable
,(self
.this
,)+args
)
604 def Check(self
,*args
):
605 val
= apply(windowsc
.wxMenuItem_Check
,(self
.this
,)+args
)
608 return "<C wxMenuItem instance>"
609 class wxMenuItem(wxMenuItemPtr
):
610 def __init__(self
,this
):
618 #-------------- FUNCTION WRAPPERS ------------------
622 #-------------- VARIABLE WRAPPERS ------------------