1 # This file was created automatically by SWIG.
8 class wxEvtHandlerPtr
:
9 def __init__(self
,this
):
12 def Connect(self
,arg0
,arg1
,arg2
,arg3
):
13 val
= windowsc
.wxEvtHandler_Connect(self
.this
,arg0
,arg1
,arg2
,arg3
)
16 return "<C wxEvtHandler instance>"
17 class wxEvtHandler(wxEvtHandlerPtr
):
18 def __init__(self
,this
):
24 class wxWindowPtr(wxEvtHandlerPtr
):
25 def __init__(self
,this
):
28 def CaptureMouse(self
):
29 val
= windowsc
.wxWindow_CaptureMouse(self
.this
)
31 def Center(self
,*args
):
32 val
= apply(windowsc
.wxWindow_Center
,(self
.this
,)+args
)
34 def Centre(self
,*args
):
35 val
= apply(windowsc
.wxWindow_Centre
,(self
.this
,)+args
)
37 def ClientToScreen(self
,arg0
,arg1
):
38 val
= windowsc
.wxWindow_ClientToScreen(self
.this
,arg0
,arg1
)
40 def Close(self
,*args
):
41 val
= apply(windowsc
.wxWindow_Close
,(self
.this
,)+args
)
44 val
= windowsc
.wxWindow_Destroy(self
.this
)
46 def DestroyChildren(self
):
47 val
= windowsc
.wxWindow_DestroyChildren(self
.this
)
49 def DragAcceptFiles(self
,arg0
):
50 val
= windowsc
.wxWindow_DragAcceptFiles(self
.this
,arg0
)
52 def Enable(self
,arg0
):
53 val
= windowsc
.wxWindow_Enable(self
.this
,arg0
)
55 def FindWindowByID(self
,arg0
):
56 val
= windowsc
.wxWindow_FindWindowByID(self
.this
,arg0
)
57 val
= wxWindowPtr(val
)
59 def FindWindowByName(self
,arg0
):
60 val
= windowsc
.wxWindow_FindWindowByName(self
.this
,arg0
)
61 val
= wxWindowPtr(val
)
64 val
= windowsc
.wxWindow_Fit(self
.this
)
66 def GetBackgroundColour(self
):
67 val
= windowsc
.wxWindow_GetBackgroundColour(self
.this
)
68 val
= wxColourPtr(val
)
71 def GetCharHeight(self
):
72 val
= windowsc
.wxWindow_GetCharHeight(self
.this
)
74 def GetCharWidth(self
):
75 val
= windowsc
.wxWindow_GetCharWidth(self
.this
)
77 def GetClientSize(self
):
78 val
= windowsc
.wxWindow_GetClientSize(self
.this
)
80 def GetConstraints(self
):
81 val
= windowsc
.wxWindow_GetConstraints(self
.this
)
82 val
= wxLayoutConstraintsPtr(val
)
84 def GetDefaultItem(self
):
85 val
= windowsc
.wxWindow_GetDefaultItem(self
.this
)
86 val
= wxButtonPtr(val
)
89 val
= windowsc
.wxWindow_GetFont(self
.this
)
92 def GetForegroundColour(self
):
93 val
= windowsc
.wxWindow_GetForegroundColour(self
.this
)
94 val
= wxColourPtr(val
)
97 def GetGrandParent(self
):
98 val
= windowsc
.wxWindow_GetGrandParent(self
.this
)
99 val
= wxWindowPtr(val
)
102 val
= windowsc
.wxWindow_GetId(self
.this
)
104 def GetPosition(self
):
105 val
= windowsc
.wxWindow_GetPosition(self
.this
)
108 val
= windowsc
.wxWindow_GetLabel(self
.this
)
111 val
= windowsc
.wxWindow_GetName(self
.this
)
114 val
= windowsc
.wxWindow_GetParent(self
.this
)
115 val
= wxWindowPtr(val
)
117 def GetReturnCode(self
):
118 val
= windowsc
.wxWindow_GetReturnCode(self
.this
)
120 def GetScrollThumb(self
,arg0
):
121 val
= windowsc
.wxWindow_GetScrollThumb(self
.this
,arg0
)
123 def GetScrollPos(self
,arg0
):
124 val
= windowsc
.wxWindow_GetScrollPos(self
.this
,arg0
)
126 def GetScrollRange(self
,arg0
):
127 val
= windowsc
.wxWindow_GetScrollRange(self
.this
,arg0
)
130 val
= windowsc
.wxWindow_GetSize(self
.this
)
132 def GetTextExtent(self
,arg0
):
133 val
= windowsc
.wxWindow_GetTextExtent(self
.this
,arg0
)
136 val
= windowsc
.wxWindow_GetTitle(self
.this
)
138 def GetWindowStyleFlag(self
):
139 val
= windowsc
.wxWindow_GetWindowStyleFlag(self
.this
)
141 def InitDialog(self
):
142 val
= windowsc
.wxWindow_InitDialog(self
.this
)
145 val
= windowsc
.wxWindow_IsEnabled(self
.this
)
147 def IsRetained(self
):
148 val
= windowsc
.wxWindow_IsRetained(self
.this
)
151 val
= windowsc
.wxWindow_IsShown(self
.this
)
154 val
= windowsc
.wxWindow_Layout(self
.this
)
156 def LoadFromResource(self
,arg0
,arg1
,*args
):
157 val
= apply(windowsc
.wxWindow_LoadFromResource
,(self
.this
,arg0
.this
,arg1
,)+args
)
160 val
= windowsc
.wxWindow_Lower(self
.this
)
162 def MakeModal(self
,arg0
):
163 val
= windowsc
.wxWindow_MakeModal(self
.this
,arg0
)
165 def Move(self
,arg0
,arg1
):
166 val
= windowsc
.wxWindow_Move(self
.this
,arg0
,arg1
)
168 def PopupMenu(self
,arg0
,arg1
,arg2
):
169 val
= windowsc
.wxWindow_PopupMenu(self
.this
,arg0
.this
,arg1
,arg2
)
172 val
= windowsc
.wxWindow_Raise(self
.this
)
174 def Refresh(self
,*args
):
175 argl
= map(None,args
)
176 try: argl
[1] = argl
[1].this
179 val
= apply(windowsc
.wxWindow_Refresh
,(self
.this
,)+args
)
181 def ReleaseMouse(self
):
182 val
= windowsc
.wxWindow_ReleaseMouse(self
.this
)
184 def ScreenToClient(self
,arg0
,arg1
):
185 val
= windowsc
.wxWindow_ScreenToClient(self
.this
,arg0
,arg1
)
187 def ScrollWindow(self
,arg0
,arg1
,*args
):
188 argl
= map(None,args
)
189 try: argl
[0] = argl
[0].this
192 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
.this
,arg0
,arg1
,)+args
)
194 def SetAutoLayout(self
,arg0
):
195 val
= windowsc
.wxWindow_SetAutoLayout(self
.this
,arg0
)
197 def SetBackgroundColour(self
,arg0
):
198 val
= windowsc
.wxWindow_SetBackgroundColour(self
.this
,arg0
.this
)
200 def SetConstraints(self
,arg0
):
201 val
= windowsc
.wxWindow_SetConstraints(self
.this
,arg0
.this
)
203 def SetDoubleClick(self
,arg0
):
204 val
= windowsc
.wxWindow_SetDoubleClick(self
.this
,arg0
)
207 val
= windowsc
.wxWindow_SetFocus(self
.this
)
209 def SetFont(self
,arg0
):
210 val
= windowsc
.wxWindow_SetFont(self
.this
,arg0
.this
)
212 def SetForegroundColour(self
,arg0
):
213 val
= windowsc
.wxWindow_SetForegroundColour(self
.this
,arg0
.this
)
215 def SetId(self
,arg0
):
216 val
= windowsc
.wxWindow_SetId(self
.this
,arg0
)
218 def SetName(self
,arg0
):
219 val
= windowsc
.wxWindow_SetName(self
.this
,arg0
)
221 def SetReturnCode(self
,arg0
):
222 val
= windowsc
.wxWindow_SetReturnCode(self
.this
,arg0
)
224 def SetScrollbar(self
,arg0
,arg1
,arg2
,arg3
,*args
):
225 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
227 def SetScrollPos(self
,arg0
,arg1
,*args
):
228 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
.this
,arg0
,arg1
,)+args
)
230 def SetDimensions(self
,arg0
,arg1
,arg2
,arg3
,*args
):
231 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
233 def SetSize(self
,arg0
):
234 val
= windowsc
.wxWindow_SetSize(self
.this
,arg0
.this
)
236 def SetPosition(self
,arg0
):
237 val
= windowsc
.wxWindow_SetPosition(self
.this
,arg0
.this
)
239 def SetSizeHints(self
,*args
):
240 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
.this
,)+args
)
242 def SetClientSize(self
,arg0
,arg1
):
243 val
= windowsc
.wxWindow_SetClientSize(self
.this
,arg0
,arg1
)
245 def SetCursor(self
,arg0
):
246 val
= windowsc
.wxWindow_SetCursor(self
.this
,arg0
.this
)
248 def SetTitle(self
,arg0
):
249 val
= windowsc
.wxWindow_SetTitle(self
.this
,arg0
)
252 val
= windowsc
.wxWindow_Show(self
.this
,arg0
)
254 def TransferDataFromWindow(self
):
255 val
= windowsc
.wxWindow_TransferDataFromWindow(self
.this
)
257 def TransferDataToWindow(self
):
258 val
= windowsc
.wxWindow_TransferDataToWindow(self
.this
)
261 val
= windowsc
.wxWindow_Validate(self
.this
)
263 def WarpPointer(self
,arg0
,arg1
):
264 val
= windowsc
.wxWindow_WarpPointer(self
.this
,arg0
,arg1
)
267 return "<C wxWindow instance>"
268 class wxWindow(wxWindowPtr
):
269 def __init__(self
,arg0
,arg1
,*args
) :
270 argl
= map(None,args
)
271 try: argl
[0] = argl
[0].this
273 try: argl
[1] = argl
[1].this
276 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
278 wxp
._StdWindowCallbacks
(self
)
283 class wxPanelPtr(wxWindowPtr
):
284 def __init__(self
,this
):
287 def InitDialog(self
):
288 val
= windowsc
.wxPanel_InitDialog(self
.this
)
291 return "<C wxPanel instance>"
292 class wxPanel(wxPanelPtr
):
293 def __init__(self
,arg0
,arg1
,*args
) :
294 argl
= map(None,args
)
295 try: argl
[0] = argl
[0].this
297 try: argl
[1] = argl
[1].this
300 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
302 wxp
._StdWindowCallbacks
(self
)
307 class wxDialogPtr(wxPanelPtr
):
308 def __init__(self
,this
):
311 def Centre(self
,*args
):
312 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
314 def EndModal(self
,arg0
):
315 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
318 val
= windowsc
.wxDialog_GetTitle(self
.this
)
320 def Iconize(self
,arg0
):
321 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
323 def IsIconized(self
):
324 val
= windowsc
.wxDialog_IsIconized(self
.this
)
326 def SetModal(self
,arg0
):
327 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
330 val
= windowsc
.wxDialog_IsModal(self
.this
)
332 def SetTitle(self
,arg0
):
333 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
336 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
339 val
= windowsc
.wxDialog_ShowModal(self
.this
)
342 return "<C wxDialog instance>"
343 class wxDialog(wxDialogPtr
):
344 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
345 argl
= map(None,args
)
346 try: argl
[0] = argl
[0].this
348 try: argl
[1] = argl
[1].this
351 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
353 wxp
._StdDialogCallbacks
(self
)
358 class wxScrolledWindowPtr(wxWindowPtr
):
359 def __init__(self
,this
):
362 def EnableScrolling(self
,arg0
,arg1
):
363 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
365 def GetScrollPixelsPerUnit(self
):
366 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
368 def GetVirtualSize(self
):
369 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
371 def IsRetained(self
):
372 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
374 def PrepareDC(self
,arg0
):
375 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
377 def Scroll(self
,arg0
,arg1
):
378 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
380 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
381 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
384 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
387 return "<C wxScrolledWindow instance>"
388 class wxScrolledWindow(wxScrolledWindowPtr
):
389 def __init__(self
,arg0
,*args
) :
390 argl
= map(None,args
)
391 try: argl
[1] = argl
[1].this
393 try: argl
[2] = argl
[2].this
396 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
398 wxp
._StdWindowCallbacks
(self
)
399 wxp
._StdOnScrollCallbacks
(self
)
404 class wxMenuPtr(wxEvtHandlerPtr
):
405 def __init__(self
,this
):
408 def Append(self
,arg0
,arg1
,*args
):
409 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
411 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
412 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
414 def AppendSeparator(self
):
415 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
418 val
= windowsc
.wxMenu_Break(self
.this
)
420 def Check(self
,arg0
,arg1
):
421 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
423 def Enable(self
,arg0
,arg1
):
424 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
426 def FindItem(self
,arg0
):
427 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
430 val
= windowsc
.wxMenu_GetTitle(self
.this
)
432 def SetTitle(self
,arg0
):
433 val
= windowsc
.wxMenu_SetTitle(self
.this
,arg0
)
435 def FindItemForId(self
,arg0
):
436 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
437 val
= wxMenuItemPtr(val
)
439 def GetHelpString(self
,arg0
):
440 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
442 def GetLabel(self
,arg0
):
443 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
445 def SetHelpString(self
,arg0
,arg1
):
446 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
448 def IsChecked(self
,arg0
):
449 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
451 def IsEnabled(self
,arg0
):
452 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
454 def SetLabel(self
,arg0
,arg1
):
455 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
458 return "<C wxMenu instance>"
459 class wxMenu(wxMenuPtr
):
460 def __init__(self
,*args
) :
461 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
467 class wxPyMenuPtr(wxMenuPtr
):
468 def __init__(self
,this
):
472 if self
.thisown
== 1 :
473 windowsc
.delete_wxPyMenu(self
.this
)
475 return "<C wxPyMenu instance>"
476 class wxPyMenu(wxPyMenuPtr
):
477 def __init__(self
,*args
) :
478 self
.this
= apply(windowsc
.new_wxPyMenu
,()+args
)
484 class wxMenuBarPtr(wxEvtHandlerPtr
):
485 def __init__(self
,this
):
488 def Append(self
,arg0
,arg1
):
489 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
491 def Check(self
,arg0
,arg1
):
492 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
494 def Checked(self
,arg0
):
495 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
497 def Enable(self
,arg0
,arg1
):
498 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
500 def Enabled(self
,arg0
):
501 val
= windowsc
.wxMenuBar_Enabled(self
.this
,arg0
)
503 def FindMenuItem(self
,arg0
,arg1
):
504 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
506 def FindItemForId(self
,arg0
):
507 val
= windowsc
.wxMenuBar_FindItemForId(self
.this
,arg0
)
508 val
= wxMenuItemPtr(val
)
510 def EnableTop(self
,arg0
,arg1
):
511 val
= windowsc
.wxMenuBar_EnableTop(self
.this
,arg0
,arg1
)
513 def GetHelpString(self
,arg0
):
514 val
= windowsc
.wxMenuBar_GetHelpString(self
.this
,arg0
)
516 def GetLabel(self
,arg0
):
517 val
= windowsc
.wxMenuBar_GetLabel(self
.this
,arg0
)
519 def SetHelpString(self
,arg0
,arg1
):
520 val
= windowsc
.wxMenuBar_SetHelpString(self
.this
,arg0
,arg1
)
522 def SetLabel(self
,arg0
,arg1
):
523 val
= windowsc
.wxMenuBar_SetLabel(self
.this
,arg0
,arg1
)
525 def GetLabelTop(self
,arg0
):
526 val
= windowsc
.wxMenuBar_GetLabelTop(self
.this
,arg0
)
528 def SetLabelTop(self
,arg0
,arg1
):
529 val
= windowsc
.wxMenuBar_SetLabelTop(self
.this
,arg0
,arg1
)
531 def GetMenuCount(self
):
532 val
= windowsc
.wxMenuBar_GetMenuCount(self
.this
)
534 def GetMenu(self
,arg0
):
535 val
= windowsc
.wxMenuBar_GetMenu(self
.this
,arg0
)
539 return "<C wxMenuBar instance>"
540 class wxMenuBar(wxMenuBarPtr
):
542 self
.this
= windowsc
.new_wxMenuBar()
548 class wxMenuItemPtr
:
549 def __init__(self
,this
):
552 def IsSeparator(self
):
553 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
556 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
559 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
561 def IsCheckable(self
):
562 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
565 val
= windowsc
.wxMenuItem_GetId(self
.this
)
567 def GetSubMenu(self
):
568 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
571 def SetName(self
,arg0
):
572 val
= windowsc
.wxMenuItem_SetName(self
.this
,arg0
)
574 def DeleteSubMenu(self
):
575 val
= windowsc
.wxMenuItem_DeleteSubMenu(self
.this
)
578 val
= windowsc
.wxMenuItem_GetName(self
.this
)
581 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
583 def SetHelp(self
,arg0
):
584 val
= windowsc
.wxMenuItem_SetHelp(self
.this
,arg0
)
586 def Enable(self
,*args
):
587 val
= apply(windowsc
.wxMenuItem_Enable
,(self
.this
,)+args
)
589 def Check(self
,*args
):
590 val
= apply(windowsc
.wxMenuItem_Check
,(self
.this
,)+args
)
593 return "<C wxMenuItem instance>"
594 class wxMenuItem(wxMenuItemPtr
):
595 def __init__(self
,this
):
603 #-------------- FUNCTION WRAPPERS ------------------
605 def wxWindow_FindFocus():
606 val
= windowsc
.wxWindow_FindFocus()
607 val
= wxWindowPtr(val
)
612 #-------------- VARIABLE WRAPPERS ------------------