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
)
98 def GetForegroundColour(self
):
99 val
= windowsc
.wxWindow_GetForegroundColour(self
.this
)
100 val
= wxColourPtr(val
)
103 def GetGrandParent(self
):
104 val
= windowsc
.wxWindow_GetGrandParent(self
.this
)
105 val
= wxWindowPtr(val
)
108 val
= windowsc
.wxWindow_GetId(self
.this
)
111 val
= windowsc
.wxWindow_GetLabel(self
.this
)
114 val
= windowsc
.wxWindow_GetName(self
.this
)
117 val
= windowsc
.wxWindow_GetParent(self
.this
)
118 val
= wxWindowPtr(val
)
120 def GetPositionTuple(self
):
121 val
= windowsc
.wxWindow_GetPositionTuple(self
.this
)
123 def GetReturnCode(self
):
124 val
= windowsc
.wxWindow_GetReturnCode(self
.this
)
126 def GetScrollThumb(self
,arg0
):
127 val
= windowsc
.wxWindow_GetScrollThumb(self
.this
,arg0
)
129 def GetScrollPos(self
,arg0
):
130 val
= windowsc
.wxWindow_GetScrollPos(self
.this
,arg0
)
132 def GetScrollRange(self
,arg0
):
133 val
= windowsc
.wxWindow_GetScrollRange(self
.this
,arg0
)
135 def GetSizeTuple(self
):
136 val
= windowsc
.wxWindow_GetSizeTuple(self
.this
)
138 def GetTextExtent(self
,arg0
):
139 val
= windowsc
.wxWindow_GetTextExtent(self
.this
,arg0
)
142 val
= windowsc
.wxWindow_GetTitle(self
.this
)
144 def GetWindowStyleFlag(self
):
145 val
= windowsc
.wxWindow_GetWindowStyleFlag(self
.this
)
147 def InitDialog(self
):
148 val
= windowsc
.wxWindow_InitDialog(self
.this
)
151 val
= windowsc
.wxWindow_IsEnabled(self
.this
)
153 def IsRetained(self
):
154 val
= windowsc
.wxWindow_IsRetained(self
.this
)
157 val
= windowsc
.wxWindow_IsShown(self
.this
)
160 val
= windowsc
.wxWindow_Layout(self
.this
)
162 def LoadFromResource(self
,arg0
,arg1
,*args
):
163 val
= apply(windowsc
.wxWindow_LoadFromResource
,(self
.this
,arg0
.this
,arg1
,)+args
)
166 val
= windowsc
.wxWindow_Lower(self
.this
)
168 def MakeModal(self
,arg0
):
169 val
= windowsc
.wxWindow_MakeModal(self
.this
,arg0
)
171 def Move(self
,arg0
,arg1
):
172 val
= windowsc
.wxWindow_Move(self
.this
,arg0
,arg1
)
174 def PopupMenu(self
,arg0
,arg1
,arg2
):
175 val
= windowsc
.wxWindow_PopupMenu(self
.this
,arg0
.this
,arg1
,arg2
)
178 val
= windowsc
.wxWindow_Raise(self
.this
)
180 def Refresh(self
,*args
):
181 argl
= map(None,args
)
182 try: argl
[1] = argl
[1].this
185 val
= apply(windowsc
.wxWindow_Refresh
,(self
.this
,)+args
)
187 def ReleaseMouse(self
):
188 val
= windowsc
.wxWindow_ReleaseMouse(self
.this
)
190 def ScreenToClient(self
,arg0
,arg1
):
191 val
= windowsc
.wxWindow_ScreenToClient(self
.this
,arg0
,arg1
)
193 def ScrollWindow(self
,arg0
,arg1
,*args
):
194 argl
= map(None,args
)
195 try: argl
[0] = argl
[0].this
198 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
.this
,arg0
,arg1
,)+args
)
200 def SetAcceleratorTable(self
,arg0
):
201 val
= windowsc
.wxWindow_SetAcceleratorTable(self
.this
,arg0
.this
)
203 def SetAutoLayout(self
,arg0
):
204 val
= windowsc
.wxWindow_SetAutoLayout(self
.this
,arg0
)
206 def SetBackgroundColour(self
,arg0
):
207 val
= windowsc
.wxWindow_SetBackgroundColour(self
.this
,arg0
.this
)
209 def SetConstraints(self
,arg0
):
210 val
= windowsc
.wxWindow_SetConstraints(self
.this
,arg0
.this
)
212 def SetDoubleClick(self
,arg0
):
213 val
= windowsc
.wxWindow_SetDoubleClick(self
.this
,arg0
)
216 val
= windowsc
.wxWindow_SetFocus(self
.this
)
218 def SetFont(self
,arg0
):
219 val
= windowsc
.wxWindow_SetFont(self
.this
,arg0
.this
)
221 def SetForegroundColour(self
,arg0
):
222 val
= windowsc
.wxWindow_SetForegroundColour(self
.this
,arg0
.this
)
224 def SetId(self
,arg0
):
225 val
= windowsc
.wxWindow_SetId(self
.this
,arg0
)
227 def SetName(self
,arg0
):
228 val
= windowsc
.wxWindow_SetName(self
.this
,arg0
)
230 def SetReturnCode(self
,arg0
):
231 val
= windowsc
.wxWindow_SetReturnCode(self
.this
,arg0
)
233 def SetScrollbar(self
,arg0
,arg1
,arg2
,arg3
,*args
):
234 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
236 def SetScrollPos(self
,arg0
,arg1
,*args
):
237 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
.this
,arg0
,arg1
,)+args
)
239 def SetDimensions(self
,arg0
,arg1
,arg2
,arg3
,*args
):
240 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
242 def SetSize(self
,arg0
):
243 val
= windowsc
.wxWindow_SetSize(self
.this
,arg0
.this
)
245 def SetPosition(self
,arg0
):
246 val
= windowsc
.wxWindow_SetPosition(self
.this
,arg0
.this
)
248 def SetSizeHints(self
,*args
):
249 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
.this
,)+args
)
251 def SetClientSize(self
,arg0
,arg1
):
252 val
= windowsc
.wxWindow_SetClientSize(self
.this
,arg0
,arg1
)
254 def SetCursor(self
,arg0
):
255 val
= windowsc
.wxWindow_SetCursor(self
.this
,arg0
.this
)
257 def SetTitle(self
,arg0
):
258 val
= windowsc
.wxWindow_SetTitle(self
.this
,arg0
)
261 val
= windowsc
.wxWindow_Show(self
.this
,arg0
)
263 def TransferDataFromWindow(self
):
264 val
= windowsc
.wxWindow_TransferDataFromWindow(self
.this
)
266 def TransferDataToWindow(self
):
267 val
= windowsc
.wxWindow_TransferDataToWindow(self
.this
)
270 val
= windowsc
.wxWindow_Validate(self
.this
)
272 def ConvertDialogPointToPixels(self
,arg0
):
273 val
= windowsc
.wxWindow_ConvertDialogPointToPixels(self
.this
,arg0
.this
)
274 val
= wxPointPtr(val
)
277 def ConvertDialogSizeToPixels(self
,arg0
):
278 val
= windowsc
.wxWindow_ConvertDialogSizeToPixels(self
.this
,arg0
.this
)
282 def ConvertPixelPointToDialog(self
,arg0
):
283 val
= windowsc
.wxWindow_ConvertPixelPointToDialog(self
.this
,arg0
.this
)
284 val
= wxPointPtr(val
)
287 def ConvertPixelSizeToDialog(self
,arg0
):
288 val
= windowsc
.wxWindow_ConvertPixelSizeToDialog(self
.this
,arg0
.this
)
293 return "<C wxWindow instance>"
294 class wxWindow(wxWindowPtr
):
295 def __init__(self
,arg0
,arg1
,*args
) :
296 argl
= map(None,args
)
297 try: argl
[0] = argl
[0].this
299 try: argl
[1] = argl
[1].this
302 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
304 wx
._StdWindowCallbacks
(self
)
309 class wxPanelPtr(wxWindowPtr
):
310 def __init__(self
,this
):
313 def InitDialog(self
):
314 val
= windowsc
.wxPanel_InitDialog(self
.this
)
317 return "<C wxPanel instance>"
318 class wxPanel(wxPanelPtr
):
319 def __init__(self
,arg0
,arg1
,*args
) :
320 argl
= map(None,args
)
321 try: argl
[0] = argl
[0].this
323 try: argl
[1] = argl
[1].this
326 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
328 wx
._StdWindowCallbacks
(self
)
333 class wxDialogPtr(wxPanelPtr
):
334 def __init__(self
,this
):
337 def Centre(self
,*args
):
338 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
340 def EndModal(self
,arg0
):
341 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
344 val
= windowsc
.wxDialog_GetTitle(self
.this
)
346 def Iconize(self
,arg0
):
347 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
349 def IsIconized(self
):
350 val
= windowsc
.wxDialog_IsIconized(self
.this
)
352 def SetModal(self
,arg0
):
353 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
356 val
= windowsc
.wxDialog_IsModal(self
.this
)
358 def SetTitle(self
,arg0
):
359 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
362 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
365 val
= windowsc
.wxDialog_ShowModal(self
.this
)
368 return "<C wxDialog instance>"
369 class wxDialog(wxDialogPtr
):
370 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
371 argl
= map(None,args
)
372 try: argl
[0] = argl
[0].this
374 try: argl
[1] = argl
[1].this
377 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
379 wx
._StdDialogCallbacks
(self
)
384 class wxScrolledWindowPtr(wxWindowPtr
):
385 def __init__(self
,this
):
388 def EnableScrolling(self
,arg0
,arg1
):
389 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
391 def GetScrollPixelsPerUnit(self
):
392 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
394 def GetVirtualSize(self
):
395 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
397 def IsRetained(self
):
398 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
400 def PrepareDC(self
,arg0
):
401 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
403 def Scroll(self
,arg0
,arg1
):
404 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
406 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
407 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
410 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
413 return "<C wxScrolledWindow instance>"
414 class wxScrolledWindow(wxScrolledWindowPtr
):
415 def __init__(self
,arg0
,*args
) :
416 argl
= map(None,args
)
417 try: argl
[1] = argl
[1].this
419 try: argl
[2] = argl
[2].this
422 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
424 wx
._StdWindowCallbacks
(self
)
425 wx
._StdOnScrollCallbacks
(self
)
430 class wxMenuPtr(wxEvtHandlerPtr
):
431 def __init__(self
,this
):
434 def Append(self
,arg0
,arg1
,*args
):
435 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
437 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
438 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
440 def AppendSeparator(self
):
441 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
444 val
= windowsc
.wxMenu_Break(self
.this
)
446 def Check(self
,arg0
,arg1
):
447 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
449 def Enable(self
,arg0
,arg1
):
450 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
452 def FindItem(self
,arg0
):
453 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
455 def FindItemForId(self
,arg0
):
456 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
457 val
= wxMenuItemPtr(val
)
459 def GetHelpString(self
,arg0
):
460 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
462 def GetLabel(self
,arg0
):
463 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
465 def SetHelpString(self
,arg0
,arg1
):
466 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
468 def IsChecked(self
,arg0
):
469 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
471 def IsEnabled(self
,arg0
):
472 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
474 def SetLabel(self
,arg0
,arg1
):
475 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
478 return "<C wxMenu instance>"
479 class wxMenu(wxMenuPtr
):
480 def __init__(self
,*args
) :
481 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
487 class wxPyMenuPtr(wxMenuPtr
):
488 def __init__(self
,this
):
492 if self
.thisown
== 1 :
493 windowsc
.delete_wxPyMenu(self
.this
)
495 return "<C wxPyMenu instance>"
496 class wxPyMenu(wxPyMenuPtr
):
497 def __init__(self
,*args
) :
498 self
.this
= apply(windowsc
.new_wxPyMenu
,()+args
)
504 class wxMenuBarPtr(wxEvtHandlerPtr
):
505 def __init__(self
,this
):
508 def Append(self
,arg0
,arg1
):
509 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
511 def Check(self
,arg0
,arg1
):
512 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
514 def Checked(self
,arg0
):
515 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
517 def Enable(self
,arg0
,arg1
):
518 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
520 def Enabled(self
,arg0
):
521 val
= windowsc
.wxMenuBar_Enabled(self
.this
,arg0
)
523 def FindMenuItem(self
,arg0
,arg1
):
524 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
526 def FindItemForId(self
,arg0
):
527 val
= windowsc
.wxMenuBar_FindItemForId(self
.this
,arg0
)
528 val
= wxMenuItemPtr(val
)
530 def GetMenuCount(self
):
531 val
= windowsc
.wxMenuBar_GetMenuCount(self
.this
)
533 def GetMenu(self
,arg0
):
534 val
= windowsc
.wxMenuBar_GetMenu(self
.this
,arg0
)
538 return "<C wxMenuBar instance>"
539 class wxMenuBar(wxMenuBarPtr
):
541 self
.this
= windowsc
.new_wxMenuBar()
547 class wxMenuItemPtr
:
548 def __init__(self
,this
):
551 def IsSeparator(self
):
552 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
555 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
558 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
560 def IsCheckable(self
):
561 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
564 val
= windowsc
.wxMenuItem_GetId(self
.this
)
566 def GetSubMenu(self
):
567 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
571 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
573 def SetHelp(self
,arg0
):
574 val
= windowsc
.wxMenuItem_SetHelp(self
.this
,arg0
)
576 def Enable(self
,*args
):
577 val
= apply(windowsc
.wxMenuItem_Enable
,(self
.this
,)+args
)
579 def Check(self
,*args
):
580 val
= apply(windowsc
.wxMenuItem_Check
,(self
.this
,)+args
)
583 return "<C wxMenuItem instance>"
584 class wxMenuItem(wxMenuItemPtr
):
585 def __init__(self
,this
):
593 #-------------- FUNCTION WRAPPERS ------------------
597 #-------------- VARIABLE WRAPPERS ------------------