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 Enable(self
,arg0
):
50 val
= windowsc
.wxWindow_Enable(self
.this
,arg0
)
52 def FindWindowByID(self
,arg0
):
53 val
= windowsc
.wxWindow_FindWindowByID(self
.this
,arg0
)
54 val
= wxWindowPtr(val
)
56 def FindWindowByName(self
,arg0
):
57 val
= windowsc
.wxWindow_FindWindowByName(self
.this
,arg0
)
58 val
= wxWindowPtr(val
)
61 val
= windowsc
.wxWindow_Fit(self
.this
)
63 def GetBackgroundColour(self
):
64 val
= windowsc
.wxWindow_GetBackgroundColour(self
.this
)
65 val
= wxColourPtr(val
)
68 def GetCharHeight(self
):
69 val
= windowsc
.wxWindow_GetCharHeight(self
.this
)
71 def GetCharWidth(self
):
72 val
= windowsc
.wxWindow_GetCharWidth(self
.this
)
74 def GetClientSize(self
):
75 val
= windowsc
.wxWindow_GetClientSize(self
.this
)
77 def GetConstraints(self
):
78 val
= windowsc
.wxWindow_GetConstraints(self
.this
)
79 val
= wxLayoutConstraintsPtr(val
)
82 val
= windowsc
.wxWindow_GetFont(self
.this
)
85 def GetForegroundColour(self
):
86 val
= windowsc
.wxWindow_GetForegroundColour(self
.this
)
87 val
= wxColourPtr(val
)
90 def GetGrandParent(self
):
91 val
= windowsc
.wxWindow_GetGrandParent(self
.this
)
92 val
= wxWindowPtr(val
)
95 val
= windowsc
.wxWindow_GetId(self
.this
)
97 def GetPosition(self
):
98 val
= windowsc
.wxWindow_GetPosition(self
.this
)
101 val
= windowsc
.wxWindow_GetLabel(self
.this
)
104 val
= windowsc
.wxWindow_GetName(self
.this
)
107 val
= windowsc
.wxWindow_GetParent(self
.this
)
108 val
= wxWindowPtr(val
)
110 def GetReturnCode(self
):
111 val
= windowsc
.wxWindow_GetReturnCode(self
.this
)
113 def GetScrollThumb(self
,arg0
):
114 val
= windowsc
.wxWindow_GetScrollThumb(self
.this
,arg0
)
116 def GetScrollPos(self
,arg0
):
117 val
= windowsc
.wxWindow_GetScrollPos(self
.this
,arg0
)
119 def GetScrollRange(self
,arg0
):
120 val
= windowsc
.wxWindow_GetScrollRange(self
.this
,arg0
)
123 val
= windowsc
.wxWindow_GetSize(self
.this
)
125 def GetTextExtent(self
,arg0
):
126 val
= windowsc
.wxWindow_GetTextExtent(self
.this
,arg0
)
129 val
= windowsc
.wxWindow_GetTitle(self
.this
)
131 def GetWindowStyleFlag(self
):
132 val
= windowsc
.wxWindow_GetWindowStyleFlag(self
.this
)
134 def InitDialog(self
):
135 val
= windowsc
.wxWindow_InitDialog(self
.this
)
138 val
= windowsc
.wxWindow_IsEnabled(self
.this
)
140 def IsRetained(self
):
141 val
= windowsc
.wxWindow_IsRetained(self
.this
)
144 val
= windowsc
.wxWindow_IsShown(self
.this
)
147 val
= windowsc
.wxWindow_Layout(self
.this
)
149 def LoadFromResource(self
,arg0
,arg1
,*args
):
150 val
= apply(windowsc
.wxWindow_LoadFromResource
,(self
.this
,arg0
.this
,arg1
,)+args
)
153 val
= windowsc
.wxWindow_Lower(self
.this
)
155 def MakeModal(self
,arg0
):
156 val
= windowsc
.wxWindow_MakeModal(self
.this
,arg0
)
158 def Move(self
,arg0
,arg1
):
159 val
= windowsc
.wxWindow_Move(self
.this
,arg0
,arg1
)
161 def PopupMenu(self
,arg0
,arg1
,arg2
):
162 val
= windowsc
.wxWindow_PopupMenu(self
.this
,arg0
.this
,arg1
,arg2
)
165 val
= windowsc
.wxWindow_Raise(self
.this
)
167 def Refresh(self
,*args
):
168 argl
= map(None,args
)
169 try: argl
[1] = argl
[1].this
172 val
= apply(windowsc
.wxWindow_Refresh
,(self
.this
,)+args
)
174 def ReleaseMouse(self
):
175 val
= windowsc
.wxWindow_ReleaseMouse(self
.this
)
177 def ScreenToClient(self
,arg0
,arg1
):
178 val
= windowsc
.wxWindow_ScreenToClient(self
.this
,arg0
,arg1
)
180 def ScrollWindow(self
,arg0
,arg1
,*args
):
181 argl
= map(None,args
)
182 try: argl
[0] = argl
[0].this
185 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
.this
,arg0
,arg1
,)+args
)
187 def SetAutoLayout(self
,arg0
):
188 val
= windowsc
.wxWindow_SetAutoLayout(self
.this
,arg0
)
190 def SetBackgroundColour(self
,arg0
):
191 val
= windowsc
.wxWindow_SetBackgroundColour(self
.this
,arg0
.this
)
193 def SetConstraints(self
,arg0
):
194 val
= windowsc
.wxWindow_SetConstraints(self
.this
,arg0
.this
)
196 def SetDoubleClick(self
,arg0
):
197 val
= windowsc
.wxWindow_SetDoubleClick(self
.this
,arg0
)
200 val
= windowsc
.wxWindow_SetFocus(self
.this
)
202 def SetFont(self
,arg0
):
203 val
= windowsc
.wxWindow_SetFont(self
.this
,arg0
.this
)
205 def SetForegroundColour(self
,arg0
):
206 val
= windowsc
.wxWindow_SetForegroundColour(self
.this
,arg0
.this
)
208 def SetId(self
,arg0
):
209 val
= windowsc
.wxWindow_SetId(self
.this
,arg0
)
211 def SetName(self
,arg0
):
212 val
= windowsc
.wxWindow_SetName(self
.this
,arg0
)
214 def SetReturnCode(self
,arg0
):
215 val
= windowsc
.wxWindow_SetReturnCode(self
.this
,arg0
)
217 def SetScrollbar(self
,arg0
,arg1
,arg2
,arg3
,*args
):
218 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
220 def SetScrollPos(self
,arg0
,arg1
,*args
):
221 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
.this
,arg0
,arg1
,)+args
)
223 def SetDimensions(self
,arg0
,arg1
,arg2
,arg3
,*args
):
224 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
226 def SetSize(self
,arg0
):
227 val
= windowsc
.wxWindow_SetSize(self
.this
,arg0
.this
)
229 def SetPosition(self
,arg0
):
230 val
= windowsc
.wxWindow_SetPosition(self
.this
,arg0
.this
)
232 def SetSizeHints(self
,*args
):
233 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
.this
,)+args
)
235 def SetClientSize(self
,arg0
,arg1
):
236 val
= windowsc
.wxWindow_SetClientSize(self
.this
,arg0
,arg1
)
238 def SetCursor(self
,arg0
):
239 val
= windowsc
.wxWindow_SetCursor(self
.this
,arg0
.this
)
241 def SetTitle(self
,arg0
):
242 val
= windowsc
.wxWindow_SetTitle(self
.this
,arg0
)
245 val
= windowsc
.wxWindow_Show(self
.this
,arg0
)
247 def TransferDataFromWindow(self
):
248 val
= windowsc
.wxWindow_TransferDataFromWindow(self
.this
)
250 def TransferDataToWindow(self
):
251 val
= windowsc
.wxWindow_TransferDataToWindow(self
.this
)
254 val
= windowsc
.wxWindow_Validate(self
.this
)
257 return "<C wxWindow instance>"
258 class wxWindow(wxWindowPtr
):
259 def __init__(self
,arg0
,arg1
,*args
) :
260 argl
= map(None,args
)
261 try: argl
[0] = argl
[0].this
263 try: argl
[1] = argl
[1].this
266 self
.this
= apply(windowsc
.new_wxWindow
,(arg0
.this
,arg1
,)+args
)
268 wxp
._StdWindowCallbacks
(self
)
273 class wxPanelPtr(wxWindowPtr
):
274 def __init__(self
,this
):
277 def InitDialog(self
):
278 val
= windowsc
.wxPanel_InitDialog(self
.this
)
281 return "<C wxPanel instance>"
282 class wxPanel(wxPanelPtr
):
283 def __init__(self
,arg0
,arg1
,*args
) :
284 argl
= map(None,args
)
285 try: argl
[0] = argl
[0].this
287 try: argl
[1] = argl
[1].this
290 self
.this
= apply(windowsc
.new_wxPanel
,(arg0
.this
,arg1
,)+args
)
292 wxp
._StdWindowCallbacks
(self
)
297 class wxDialogPtr(wxPanelPtr
):
298 def __init__(self
,this
):
301 def Centre(self
,*args
):
302 val
= apply(windowsc
.wxDialog_Centre
,(self
.this
,)+args
)
304 def EndModal(self
,arg0
):
305 val
= windowsc
.wxDialog_EndModal(self
.this
,arg0
)
308 val
= windowsc
.wxDialog_GetTitle(self
.this
)
310 def Iconize(self
,arg0
):
311 val
= windowsc
.wxDialog_Iconize(self
.this
,arg0
)
313 def IsIconized(self
):
314 val
= windowsc
.wxDialog_IsIconized(self
.this
)
316 def SetModal(self
,arg0
):
317 val
= windowsc
.wxDialog_SetModal(self
.this
,arg0
)
320 val
= windowsc
.wxDialog_IsModal(self
.this
)
322 def SetTitle(self
,arg0
):
323 val
= windowsc
.wxDialog_SetTitle(self
.this
,arg0
)
326 val
= windowsc
.wxDialog_Show(self
.this
,arg0
)
329 val
= windowsc
.wxDialog_ShowModal(self
.this
)
332 return "<C wxDialog instance>"
333 class wxDialog(wxDialogPtr
):
334 def __init__(self
,arg0
,arg1
,arg2
,*args
) :
335 argl
= map(None,args
)
336 try: argl
[0] = argl
[0].this
338 try: argl
[1] = argl
[1].this
341 self
.this
= apply(windowsc
.new_wxDialog
,(arg0
.this
,arg1
,arg2
,)+args
)
343 wxp
._StdDialogCallbacks
(self
)
348 class wxScrolledWindowPtr(wxWindowPtr
):
349 def __init__(self
,this
):
352 def EnableScrolling(self
,arg0
,arg1
):
353 val
= windowsc
.wxScrolledWindow_EnableScrolling(self
.this
,arg0
,arg1
)
355 def GetScrollPixelsPerUnit(self
):
356 val
= windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit(self
.this
)
358 def GetVirtualSize(self
):
359 val
= windowsc
.wxScrolledWindow_GetVirtualSize(self
.this
)
361 def IsRetained(self
):
362 val
= windowsc
.wxScrolledWindow_IsRetained(self
.this
)
364 def PrepareDC(self
,arg0
):
365 val
= windowsc
.wxScrolledWindow_PrepareDC(self
.this
,arg0
.this
)
367 def Scroll(self
,arg0
,arg1
):
368 val
= windowsc
.wxScrolledWindow_Scroll(self
.this
,arg0
,arg1
)
370 def SetScrollbars(self
,arg0
,arg1
,arg2
,arg3
,*args
):
371 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
.this
,arg0
,arg1
,arg2
,arg3
,)+args
)
374 val
= windowsc
.wxScrolledWindow_ViewStart(self
.this
)
377 return "<C wxScrolledWindow instance>"
378 class wxScrolledWindow(wxScrolledWindowPtr
):
379 def __init__(self
,arg0
,*args
) :
380 argl
= map(None,args
)
381 try: argl
[1] = argl
[1].this
383 try: argl
[2] = argl
[2].this
386 self
.this
= apply(windowsc
.new_wxScrolledWindow
,(arg0
.this
,)+args
)
388 wxp
._StdWindowCallbacks
(self
)
389 wxp
._StdOnScrollCallbacks
(self
)
394 class wxMenuPtr(wxEvtHandlerPtr
):
395 def __init__(self
,this
):
398 def Append(self
,arg0
,arg1
,*args
):
399 val
= apply(windowsc
.wxMenu_Append
,(self
.this
,arg0
,arg1
,)+args
)
401 def AppendMenu(self
,arg0
,arg1
,arg2
,*args
):
402 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
.this
,arg0
,arg1
,arg2
.this
,)+args
)
404 def AppendSeparator(self
):
405 val
= windowsc
.wxMenu_AppendSeparator(self
.this
)
408 val
= windowsc
.wxMenu_Break(self
.this
)
410 def Check(self
,arg0
,arg1
):
411 val
= windowsc
.wxMenu_Check(self
.this
,arg0
,arg1
)
413 def Enable(self
,arg0
,arg1
):
414 val
= windowsc
.wxMenu_Enable(self
.this
,arg0
,arg1
)
416 def FindItem(self
,arg0
):
417 val
= windowsc
.wxMenu_FindItem(self
.this
,arg0
)
419 def FindItemForId(self
,arg0
):
420 val
= windowsc
.wxMenu_FindItemForId(self
.this
,arg0
)
421 val
= wxMenuItemPtr(val
)
423 def GetHelpString(self
,arg0
):
424 val
= windowsc
.wxMenu_GetHelpString(self
.this
,arg0
)
426 def GetLabel(self
,arg0
):
427 val
= windowsc
.wxMenu_GetLabel(self
.this
,arg0
)
429 def SetHelpString(self
,arg0
,arg1
):
430 val
= windowsc
.wxMenu_SetHelpString(self
.this
,arg0
,arg1
)
432 def IsChecked(self
,arg0
):
433 val
= windowsc
.wxMenu_IsChecked(self
.this
,arg0
)
435 def IsEnabled(self
,arg0
):
436 val
= windowsc
.wxMenu_IsEnabled(self
.this
,arg0
)
438 def SetLabel(self
,arg0
,arg1
):
439 val
= windowsc
.wxMenu_SetLabel(self
.this
,arg0
,arg1
)
442 return "<C wxMenu instance>"
443 class wxMenu(wxMenuPtr
):
444 def __init__(self
,*args
) :
445 self
.this
= apply(windowsc
.new_wxMenu
,()+args
)
451 class wxPyMenuPtr(wxMenuPtr
):
452 def __init__(self
,this
):
456 if self
.thisown
== 1 :
457 windowsc
.delete_wxPyMenu(self
.this
)
459 return "<C wxPyMenu instance>"
460 class wxPyMenu(wxPyMenuPtr
):
461 def __init__(self
,*args
) :
462 self
.this
= apply(windowsc
.new_wxPyMenu
,()+args
)
468 class wxMenuBarPtr(wxEvtHandlerPtr
):
469 def __init__(self
,this
):
472 def Append(self
,arg0
,arg1
):
473 val
= windowsc
.wxMenuBar_Append(self
.this
,arg0
.this
,arg1
)
475 def Check(self
,arg0
,arg1
):
476 val
= windowsc
.wxMenuBar_Check(self
.this
,arg0
,arg1
)
478 def Checked(self
,arg0
):
479 val
= windowsc
.wxMenuBar_Checked(self
.this
,arg0
)
481 def Enable(self
,arg0
,arg1
):
482 val
= windowsc
.wxMenuBar_Enable(self
.this
,arg0
,arg1
)
484 def Enabled(self
,arg0
):
485 val
= windowsc
.wxMenuBar_Enabled(self
.this
,arg0
)
487 def FindMenuItem(self
,arg0
,arg1
):
488 val
= windowsc
.wxMenuBar_FindMenuItem(self
.this
,arg0
,arg1
)
490 def FindItemForId(self
,arg0
):
491 val
= windowsc
.wxMenuBar_FindItemForId(self
.this
,arg0
)
492 val
= wxMenuItemPtr(val
)
494 def GetMenuCount(self
):
495 val
= windowsc
.wxMenuBar_GetMenuCount(self
.this
)
497 def GetMenu(self
,arg0
):
498 val
= windowsc
.wxMenuBar_GetMenu(self
.this
,arg0
)
502 return "<C wxMenuBar instance>"
503 class wxMenuBar(wxMenuBarPtr
):
505 self
.this
= windowsc
.new_wxMenuBar()
511 class wxMenuItemPtr
:
512 def __init__(self
,this
):
515 def IsSeparator(self
):
516 val
= windowsc
.wxMenuItem_IsSeparator(self
.this
)
519 val
= windowsc
.wxMenuItem_IsEnabled(self
.this
)
522 val
= windowsc
.wxMenuItem_IsChecked(self
.this
)
524 def IsCheckable(self
):
525 val
= windowsc
.wxMenuItem_IsCheckable(self
.this
)
528 val
= windowsc
.wxMenuItem_GetId(self
.this
)
530 def GetSubMenu(self
):
531 val
= windowsc
.wxMenuItem_GetSubMenu(self
.this
)
535 val
= windowsc
.wxMenuItem_GetHelp(self
.this
)
537 def SetHelp(self
,arg0
):
538 val
= windowsc
.wxMenuItem_SetHelp(self
.this
,arg0
)
540 def Enable(self
,*args
):
541 val
= apply(windowsc
.wxMenuItem_Enable
,(self
.this
,)+args
)
543 def Check(self
,*args
):
544 val
= apply(windowsc
.wxMenuItem_Check
,(self
.this
,)+args
)
547 return "<C wxMenuItem instance>"
548 class wxMenuItem(wxMenuItemPtr
):
549 def __init__(self
,this
):
557 #-------------- FUNCTION WRAPPERS ------------------
561 #-------------- VARIABLE WRAPPERS ------------------