1 # This file was created automatically by SWIG.
9 def wxDLG_PNT(win
, point_or_x
, y
=None):
11 return win
.ConvertDialogPointToPixels(point_or_x
)
13 return win
.ConvertDialogPointToPixels(wxPoint(point_or_x
, y
))
15 def wxDLG_SZE(win
, size_width
, height
=None):
17 return win
.ConvertDialogSizeToPixels(size_width
)
19 return win
.ConvertDialogSizeToPixels(wxSize(size_width
, height
))
21 class wxEvtHandlerPtr
:
22 def __init__(self
,this
):
25 def ProcessEvent(self
, *_args
, **_kwargs
):
26 val
= apply(windowsc
.wxEvtHandler_ProcessEvent
,(self
,) + _args
, _kwargs
)
28 def Connect(self
, *_args
, **_kwargs
):
29 val
= apply(windowsc
.wxEvtHandler_Connect
,(self
,) + _args
, _kwargs
)
32 return "<C wxEvtHandler instance at %s>" % (self
.this
,)
33 class wxEvtHandler(wxEvtHandlerPtr
):
34 def __init__(self
,this
):
40 class wxWindowPtr(wxEvtHandlerPtr
):
41 def __init__(self
,this
):
44 def CaptureMouse(self
, *_args
, **_kwargs
):
45 val
= apply(windowsc
.wxWindow_CaptureMouse
,(self
,) + _args
, _kwargs
)
47 def Center(self
, *_args
, **_kwargs
):
48 val
= apply(windowsc
.wxWindow_Center
,(self
,) + _args
, _kwargs
)
50 def Centre(self
, *_args
, **_kwargs
):
51 val
= apply(windowsc
.wxWindow_Centre
,(self
,) + _args
, _kwargs
)
53 def CentreOnParent(self
, *_args
, **_kwargs
):
54 val
= apply(windowsc
.wxWindow_CentreOnParent
,(self
,) + _args
, _kwargs
)
56 def CenterOnParent(self
, *_args
, **_kwargs
):
57 val
= apply(windowsc
.wxWindow_CenterOnParent
,(self
,) + _args
, _kwargs
)
59 def ClientToScreenXY(self
, *_args
, **_kwargs
):
60 val
= apply(windowsc
.wxWindow_ClientToScreenXY
,(self
,) + _args
, _kwargs
)
62 def ClientToScreen(self
, *_args
, **_kwargs
):
63 val
= apply(windowsc
.wxWindow_ClientToScreen
,(self
,) + _args
, _kwargs
)
64 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
66 def Close(self
, *_args
, **_kwargs
):
67 val
= apply(windowsc
.wxWindow_Close
,(self
,) + _args
, _kwargs
)
69 def Destroy(self
, *_args
, **_kwargs
):
70 val
= apply(windowsc
.wxWindow_Destroy
,(self
,) + _args
, _kwargs
)
72 def DestroyChildren(self
, *_args
, **_kwargs
):
73 val
= apply(windowsc
.wxWindow_DestroyChildren
,(self
,) + _args
, _kwargs
)
75 def Enable(self
, *_args
, **_kwargs
):
76 val
= apply(windowsc
.wxWindow_Enable
,(self
,) + _args
, _kwargs
)
78 def FindWindowById(self
, *_args
, **_kwargs
):
79 val
= apply(windowsc
.wxWindow_FindWindowById
,(self
,) + _args
, _kwargs
)
80 if val
: val
= wxWindowPtr(val
)
82 def FindWindowByName(self
, *_args
, **_kwargs
):
83 val
= apply(windowsc
.wxWindow_FindWindowByName
,(self
,) + _args
, _kwargs
)
84 if val
: val
= wxWindowPtr(val
)
86 def Fit(self
, *_args
, **_kwargs
):
87 val
= apply(windowsc
.wxWindow_Fit
,(self
,) + _args
, _kwargs
)
89 def GetBackgroundColour(self
, *_args
, **_kwargs
):
90 val
= apply(windowsc
.wxWindow_GetBackgroundColour
,(self
,) + _args
, _kwargs
)
91 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
93 def GetChildren(self
, *_args
, **_kwargs
):
94 val
= apply(windowsc
.wxWindow_GetChildren
,(self
,) + _args
, _kwargs
)
96 def GetCharHeight(self
, *_args
, **_kwargs
):
97 val
= apply(windowsc
.wxWindow_GetCharHeight
,(self
,) + _args
, _kwargs
)
99 def GetCharWidth(self
, *_args
, **_kwargs
):
100 val
= apply(windowsc
.wxWindow_GetCharWidth
,(self
,) + _args
, _kwargs
)
102 def GetClientSizeTuple(self
, *_args
, **_kwargs
):
103 val
= apply(windowsc
.wxWindow_GetClientSizeTuple
,(self
,) + _args
, _kwargs
)
105 def GetClientSize(self
, *_args
, **_kwargs
):
106 val
= apply(windowsc
.wxWindow_GetClientSize
,(self
,) + _args
, _kwargs
)
107 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
109 def GetConstraints(self
, *_args
, **_kwargs
):
110 val
= apply(windowsc
.wxWindow_GetConstraints
,(self
,) + _args
, _kwargs
)
111 if val
: val
= wxLayoutConstraintsPtr(val
)
113 def GetEventHandler(self
, *_args
, **_kwargs
):
114 val
= apply(windowsc
.wxWindow_GetEventHandler
,(self
,) + _args
, _kwargs
)
115 if val
: val
= wxEvtHandlerPtr(val
)
117 def GetFont(self
, *_args
, **_kwargs
):
118 val
= apply(windowsc
.wxWindow_GetFont
,(self
,) + _args
, _kwargs
)
119 if val
: val
= wxFontPtr(val
)
121 def GetForegroundColour(self
, *_args
, **_kwargs
):
122 val
= apply(windowsc
.wxWindow_GetForegroundColour
,(self
,) + _args
, _kwargs
)
123 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
125 def GetGrandParent(self
, *_args
, **_kwargs
):
126 val
= apply(windowsc
.wxWindow_GetGrandParent
,(self
,) + _args
, _kwargs
)
127 if val
: val
= wxWindowPtr(val
)
129 def GetId(self
, *_args
, **_kwargs
):
130 val
= apply(windowsc
.wxWindow_GetId
,(self
,) + _args
, _kwargs
)
132 def GetLabel(self
, *_args
, **_kwargs
):
133 val
= apply(windowsc
.wxWindow_GetLabel
,(self
,) + _args
, _kwargs
)
135 def SetLabel(self
, *_args
, **_kwargs
):
136 val
= apply(windowsc
.wxWindow_SetLabel
,(self
,) + _args
, _kwargs
)
138 def GetName(self
, *_args
, **_kwargs
):
139 val
= apply(windowsc
.wxWindow_GetName
,(self
,) + _args
, _kwargs
)
141 def GetParent(self
, *_args
, **_kwargs
):
142 val
= apply(windowsc
.wxWindow_GetParent
,(self
,) + _args
, _kwargs
)
143 if val
: val
= wxWindowPtr(val
)
145 def GetPositionTuple(self
, *_args
, **_kwargs
):
146 val
= apply(windowsc
.wxWindow_GetPositionTuple
,(self
,) + _args
, _kwargs
)
148 def GetPosition(self
, *_args
, **_kwargs
):
149 val
= apply(windowsc
.wxWindow_GetPosition
,(self
,) + _args
, _kwargs
)
150 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
152 def GetRect(self
, *_args
, **_kwargs
):
153 val
= apply(windowsc
.wxWindow_GetRect
,(self
,) + _args
, _kwargs
)
154 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
156 def GetScrollThumb(self
, *_args
, **_kwargs
):
157 val
= apply(windowsc
.wxWindow_GetScrollThumb
,(self
,) + _args
, _kwargs
)
159 def GetScrollPos(self
, *_args
, **_kwargs
):
160 val
= apply(windowsc
.wxWindow_GetScrollPos
,(self
,) + _args
, _kwargs
)
162 def GetScrollRange(self
, *_args
, **_kwargs
):
163 val
= apply(windowsc
.wxWindow_GetScrollRange
,(self
,) + _args
, _kwargs
)
165 def GetSizeTuple(self
, *_args
, **_kwargs
):
166 val
= apply(windowsc
.wxWindow_GetSizeTuple
,(self
,) + _args
, _kwargs
)
168 def GetSize(self
, *_args
, **_kwargs
):
169 val
= apply(windowsc
.wxWindow_GetSize
,(self
,) + _args
, _kwargs
)
170 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
172 def GetTextExtent(self
, *_args
, **_kwargs
):
173 val
= apply(windowsc
.wxWindow_GetTextExtent
,(self
,) + _args
, _kwargs
)
175 def GetFullTextExtent(self
, *_args
, **_kwargs
):
176 val
= apply(windowsc
.wxWindow_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
178 def GetTitle(self
, *_args
, **_kwargs
):
179 val
= apply(windowsc
.wxWindow_GetTitle
,(self
,) + _args
, _kwargs
)
181 def GetUpdateRegion(self
, *_args
, **_kwargs
):
182 val
= apply(windowsc
.wxWindow_GetUpdateRegion
,(self
,) + _args
, _kwargs
)
183 if val
: val
= wxRegionPtr(val
) ; val
.thisown
= 1
185 def GetWindowStyleFlag(self
, *_args
, **_kwargs
):
186 val
= apply(windowsc
.wxWindow_GetWindowStyleFlag
,(self
,) + _args
, _kwargs
)
188 def Hide(self
, *_args
, **_kwargs
):
189 val
= apply(windowsc
.wxWindow_Hide
,(self
,) + _args
, _kwargs
)
191 def InitDialog(self
, *_args
, **_kwargs
):
192 val
= apply(windowsc
.wxWindow_InitDialog
,(self
,) + _args
, _kwargs
)
194 def IsEnabled(self
, *_args
, **_kwargs
):
195 val
= apply(windowsc
.wxWindow_IsEnabled
,(self
,) + _args
, _kwargs
)
197 def IsRetained(self
, *_args
, **_kwargs
):
198 val
= apply(windowsc
.wxWindow_IsRetained
,(self
,) + _args
, _kwargs
)
200 def IsShown(self
, *_args
, **_kwargs
):
201 val
= apply(windowsc
.wxWindow_IsShown
,(self
,) + _args
, _kwargs
)
203 def IsTopLevel(self
, *_args
, **_kwargs
):
204 val
= apply(windowsc
.wxWindow_IsTopLevel
,(self
,) + _args
, _kwargs
)
206 def Layout(self
, *_args
, **_kwargs
):
207 val
= apply(windowsc
.wxWindow_Layout
,(self
,) + _args
, _kwargs
)
209 def LoadFromResource(self
, *_args
, **_kwargs
):
210 val
= apply(windowsc
.wxWindow_LoadFromResource
,(self
,) + _args
, _kwargs
)
212 def Lower(self
, *_args
, **_kwargs
):
213 val
= apply(windowsc
.wxWindow_Lower
,(self
,) + _args
, _kwargs
)
215 def MakeModal(self
, *_args
, **_kwargs
):
216 val
= apply(windowsc
.wxWindow_MakeModal
,(self
,) + _args
, _kwargs
)
218 def MoveXY(self
, *_args
, **_kwargs
):
219 val
= apply(windowsc
.wxWindow_MoveXY
,(self
,) + _args
, _kwargs
)
221 def Move(self
, *_args
, **_kwargs
):
222 val
= apply(windowsc
.wxWindow_Move
,(self
,) + _args
, _kwargs
)
224 def PopEventHandler(self
, *_args
, **_kwargs
):
225 val
= apply(windowsc
.wxWindow_PopEventHandler
,(self
,) + _args
, _kwargs
)
226 if val
: val
= wxEvtHandlerPtr(val
)
228 def PushEventHandler(self
, *_args
, **_kwargs
):
229 val
= apply(windowsc
.wxWindow_PushEventHandler
,(self
,) + _args
, _kwargs
)
231 def PopupMenuXY(self
, *_args
, **_kwargs
):
232 val
= apply(windowsc
.wxWindow_PopupMenuXY
,(self
,) + _args
, _kwargs
)
234 def PopupMenu(self
, *_args
, **_kwargs
):
235 val
= apply(windowsc
.wxWindow_PopupMenu
,(self
,) + _args
, _kwargs
)
237 def Raise(self
, *_args
, **_kwargs
):
238 val
= apply(windowsc
.wxWindow_Raise
,(self
,) + _args
, _kwargs
)
240 def Refresh(self
, *_args
, **_kwargs
):
241 val
= apply(windowsc
.wxWindow_Refresh
,(self
,) + _args
, _kwargs
)
243 def ReleaseMouse(self
, *_args
, **_kwargs
):
244 val
= apply(windowsc
.wxWindow_ReleaseMouse
,(self
,) + _args
, _kwargs
)
246 def Reparent(self
, *_args
, **_kwargs
):
247 val
= apply(windowsc
.wxWindow_Reparent
,(self
,) + _args
, _kwargs
)
249 def ScreenToClientXY(self
, *_args
, **_kwargs
):
250 val
= apply(windowsc
.wxWindow_ScreenToClientXY
,(self
,) + _args
, _kwargs
)
252 def ScreenToClient(self
, *_args
, **_kwargs
):
253 val
= apply(windowsc
.wxWindow_ScreenToClient
,(self
,) + _args
, _kwargs
)
254 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
256 def ScrollWindow(self
, *_args
, **_kwargs
):
257 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
,) + _args
, _kwargs
)
259 def SetAcceleratorTable(self
, *_args
, **_kwargs
):
260 val
= apply(windowsc
.wxWindow_SetAcceleratorTable
,(self
,) + _args
, _kwargs
)
262 def SetAutoLayout(self
, *_args
, **_kwargs
):
263 val
= apply(windowsc
.wxWindow_SetAutoLayout
,(self
,) + _args
, _kwargs
)
265 def SetBackgroundColour(self
, *_args
, **_kwargs
):
266 val
= apply(windowsc
.wxWindow_SetBackgroundColour
,(self
,) + _args
, _kwargs
)
268 def SetConstraints(self
, *_args
, **_kwargs
):
269 val
= apply(windowsc
.wxWindow_SetConstraints
,(self
,) + _args
, _kwargs
)
271 def SetFocus(self
, *_args
, **_kwargs
):
272 val
= apply(windowsc
.wxWindow_SetFocus
,(self
,) + _args
, _kwargs
)
274 def SetFont(self
, *_args
, **_kwargs
):
275 val
= apply(windowsc
.wxWindow_SetFont
,(self
,) + _args
, _kwargs
)
277 def SetForegroundColour(self
, *_args
, **_kwargs
):
278 val
= apply(windowsc
.wxWindow_SetForegroundColour
,(self
,) + _args
, _kwargs
)
280 def SetId(self
, *_args
, **_kwargs
):
281 val
= apply(windowsc
.wxWindow_SetId
,(self
,) + _args
, _kwargs
)
283 def SetName(self
, *_args
, **_kwargs
):
284 val
= apply(windowsc
.wxWindow_SetName
,(self
,) + _args
, _kwargs
)
286 def SetScrollbar(self
, *_args
, **_kwargs
):
287 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
,) + _args
, _kwargs
)
289 def SetScrollPos(self
, *_args
, **_kwargs
):
290 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
,) + _args
, _kwargs
)
292 def SetDimensions(self
, *_args
, **_kwargs
):
293 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
,) + _args
, _kwargs
)
295 def SetSize(self
, *_args
, **_kwargs
):
296 val
= apply(windowsc
.wxWindow_SetSize
,(self
,) + _args
, _kwargs
)
298 def SetPosition(self
, *_args
, **_kwargs
):
299 val
= apply(windowsc
.wxWindow_SetPosition
,(self
,) + _args
, _kwargs
)
301 def SetSizeHints(self
, *_args
, **_kwargs
):
302 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
,) + _args
, _kwargs
)
304 def SetClientSizeWH(self
, *_args
, **_kwargs
):
305 val
= apply(windowsc
.wxWindow_SetClientSizeWH
,(self
,) + _args
, _kwargs
)
307 def SetClientSize(self
, *_args
, **_kwargs
):
308 val
= apply(windowsc
.wxWindow_SetClientSize
,(self
,) + _args
, _kwargs
)
310 def SetCursor(self
, *_args
, **_kwargs
):
311 val
= apply(windowsc
.wxWindow_SetCursor
,(self
,) + _args
, _kwargs
)
313 def SetEventHandler(self
, *_args
, **_kwargs
):
314 val
= apply(windowsc
.wxWindow_SetEventHandler
,(self
,) + _args
, _kwargs
)
316 def SetTitle(self
, *_args
, **_kwargs
):
317 val
= apply(windowsc
.wxWindow_SetTitle
,(self
,) + _args
, _kwargs
)
319 def Show(self
, *_args
, **_kwargs
):
320 val
= apply(windowsc
.wxWindow_Show
,(self
,) + _args
, _kwargs
)
322 def TransferDataFromWindow(self
, *_args
, **_kwargs
):
323 val
= apply(windowsc
.wxWindow_TransferDataFromWindow
,(self
,) + _args
, _kwargs
)
325 def TransferDataToWindow(self
, *_args
, **_kwargs
):
326 val
= apply(windowsc
.wxWindow_TransferDataToWindow
,(self
,) + _args
, _kwargs
)
328 def Validate(self
, *_args
, **_kwargs
):
329 val
= apply(windowsc
.wxWindow_Validate
,(self
,) + _args
, _kwargs
)
331 def WarpPointer(self
, *_args
, **_kwargs
):
332 val
= apply(windowsc
.wxWindow_WarpPointer
,(self
,) + _args
, _kwargs
)
334 def ConvertDialogPointToPixels(self
, *_args
, **_kwargs
):
335 val
= apply(windowsc
.wxWindow_ConvertDialogPointToPixels
,(self
,) + _args
, _kwargs
)
336 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
338 def ConvertDialogSizeToPixels(self
, *_args
, **_kwargs
):
339 val
= apply(windowsc
.wxWindow_ConvertDialogSizeToPixels
,(self
,) + _args
, _kwargs
)
340 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
342 def DLG_PNT(self
, *_args
, **_kwargs
):
343 val
= apply(windowsc
.wxWindow_DLG_PNT
,(self
,) + _args
, _kwargs
)
344 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
346 def DLG_SZE(self
, *_args
, **_kwargs
):
347 val
= apply(windowsc
.wxWindow_DLG_SZE
,(self
,) + _args
, _kwargs
)
348 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
350 def ConvertPixelPointToDialog(self
, *_args
, **_kwargs
):
351 val
= apply(windowsc
.wxWindow_ConvertPixelPointToDialog
,(self
,) + _args
, _kwargs
)
352 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
354 def ConvertPixelSizeToDialog(self
, *_args
, **_kwargs
):
355 val
= apply(windowsc
.wxWindow_ConvertPixelSizeToDialog
,(self
,) + _args
, _kwargs
)
356 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
358 def SetToolTipString(self
, *_args
, **_kwargs
):
359 val
= apply(windowsc
.wxWindow_SetToolTipString
,(self
,) + _args
, _kwargs
)
361 def SetToolTip(self
, *_args
, **_kwargs
):
362 val
= apply(windowsc
.wxWindow_SetToolTip
,(self
,) + _args
, _kwargs
)
364 def GetToolTip(self
, *_args
, **_kwargs
):
365 val
= apply(windowsc
.wxWindow_GetToolTip
,(self
,) + _args
, _kwargs
)
366 if val
: val
= wxToolTipPtr(val
)
369 return "<C wxWindow instance at %s>" % (self
.this
,)
370 class wxWindow(wxWindowPtr
):
371 def __init__(self
,*_args
,**_kwargs
):
372 self
.this
= apply(windowsc
.new_wxWindow
,_args
,_kwargs
)
374 wx
._StdWindowCallbacks
(self
)
379 class wxPanelPtr(wxWindowPtr
):
380 def __init__(self
,this
):
383 def InitDialog(self
, *_args
, **_kwargs
):
384 val
= apply(windowsc
.wxPanel_InitDialog
,(self
,) + _args
, _kwargs
)
386 def GetDefaultItem(self
, *_args
, **_kwargs
):
387 val
= apply(windowsc
.wxPanel_GetDefaultItem
,(self
,) + _args
, _kwargs
)
388 if val
: val
= wxButtonPtr(val
)
390 def SetDefaultItem(self
, *_args
, **_kwargs
):
391 val
= apply(windowsc
.wxPanel_SetDefaultItem
,(self
,) + _args
, _kwargs
)
394 return "<C wxPanel instance at %s>" % (self
.this
,)
396 def GetDefaultItem(self
):
398 val
= windowsc
.wxPanel_GetDefaultItem(self
.this
)
399 val
= controls
.wxButtonPtr(val
)
402 class wxPanel(wxPanelPtr
):
403 def __init__(self
,*_args
,**_kwargs
):
404 self
.this
= apply(windowsc
.new_wxPanel
,_args
,_kwargs
)
406 wx
._StdWindowCallbacks
(self
)
411 class wxDialogPtr(wxPanelPtr
):
412 def __init__(self
,this
):
415 def Centre(self
, *_args
, **_kwargs
):
416 val
= apply(windowsc
.wxDialog_Centre
,(self
,) + _args
, _kwargs
)
418 def EndModal(self
, *_args
, **_kwargs
):
419 val
= apply(windowsc
.wxDialog_EndModal
,(self
,) + _args
, _kwargs
)
421 def GetTitle(self
, *_args
, **_kwargs
):
422 val
= apply(windowsc
.wxDialog_GetTitle
,(self
,) + _args
, _kwargs
)
424 def Iconize(self
, *_args
, **_kwargs
):
425 val
= apply(windowsc
.wxDialog_Iconize
,(self
,) + _args
, _kwargs
)
427 def IsIconized(self
, *_args
, **_kwargs
):
428 val
= apply(windowsc
.wxDialog_IsIconized
,(self
,) + _args
, _kwargs
)
430 def SetModal(self
, *_args
, **_kwargs
):
431 val
= apply(windowsc
.wxDialog_SetModal
,(self
,) + _args
, _kwargs
)
433 def IsModal(self
, *_args
, **_kwargs
):
434 val
= apply(windowsc
.wxDialog_IsModal
,(self
,) + _args
, _kwargs
)
436 def SetTitle(self
, *_args
, **_kwargs
):
437 val
= apply(windowsc
.wxDialog_SetTitle
,(self
,) + _args
, _kwargs
)
439 def Show(self
, *_args
, **_kwargs
):
440 val
= apply(windowsc
.wxDialog_Show
,(self
,) + _args
, _kwargs
)
442 def ShowModal(self
, *_args
, **_kwargs
):
443 val
= apply(windowsc
.wxDialog_ShowModal
,(self
,) + _args
, _kwargs
)
445 def GetReturnCode(self
, *_args
, **_kwargs
):
446 val
= apply(windowsc
.wxDialog_GetReturnCode
,(self
,) + _args
, _kwargs
)
448 def SetReturnCode(self
, *_args
, **_kwargs
):
449 val
= apply(windowsc
.wxDialog_SetReturnCode
,(self
,) + _args
, _kwargs
)
452 return "<C wxDialog instance at %s>" % (self
.this
,)
453 class wxDialog(wxDialogPtr
):
454 def __init__(self
,*_args
,**_kwargs
):
455 self
.this
= apply(windowsc
.new_wxDialog
,_args
,_kwargs
)
457 wx
._StdDialogCallbacks
(self
)
462 class wxScrolledWindowPtr(wxPanelPtr
):
463 def __init__(self
,this
):
466 def EnableScrolling(self
, *_args
, **_kwargs
):
467 val
= apply(windowsc
.wxScrolledWindow_EnableScrolling
,(self
,) + _args
, _kwargs
)
469 def GetScrollPixelsPerUnit(self
, *_args
, **_kwargs
):
470 val
= apply(windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit
,(self
,) + _args
, _kwargs
)
472 def GetVirtualSize(self
, *_args
, **_kwargs
):
473 val
= apply(windowsc
.wxScrolledWindow_GetVirtualSize
,(self
,) + _args
, _kwargs
)
475 def IsRetained(self
, *_args
, **_kwargs
):
476 val
= apply(windowsc
.wxScrolledWindow_IsRetained
,(self
,) + _args
, _kwargs
)
478 def PrepareDC(self
, *_args
, **_kwargs
):
479 val
= apply(windowsc
.wxScrolledWindow_PrepareDC
,(self
,) + _args
, _kwargs
)
481 def Scroll(self
, *_args
, **_kwargs
):
482 val
= apply(windowsc
.wxScrolledWindow_Scroll
,(self
,) + _args
, _kwargs
)
484 def SetScrollbars(self
, *_args
, **_kwargs
):
485 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
,) + _args
, _kwargs
)
487 def ViewStart(self
, *_args
, **_kwargs
):
488 val
= apply(windowsc
.wxScrolledWindow_ViewStart
,(self
,) + _args
, _kwargs
)
491 return "<C wxScrolledWindow instance at %s>" % (self
.this
,)
492 class wxScrolledWindow(wxScrolledWindowPtr
):
493 def __init__(self
,*_args
,**_kwargs
):
494 self
.this
= apply(windowsc
.new_wxScrolledWindow
,_args
,_kwargs
)
496 wx
._StdWindowCallbacks
(self
)
497 wx
._StdOnScrollCallbacks
(self
)
502 class wxMenuPtr(wxEvtHandlerPtr
):
503 def __init__(self
,this
):
506 def Append(self
, *_args
, **_kwargs
):
507 val
= apply(windowsc
.wxMenu_Append
,(self
,) + _args
, _kwargs
)
509 def AppendMenu(self
, *_args
, **_kwargs
):
510 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
,) + _args
, _kwargs
)
512 def AppendItem(self
, *_args
, **_kwargs
):
513 val
= apply(windowsc
.wxMenu_AppendItem
,(self
,) + _args
, _kwargs
)
515 def AppendSeparator(self
, *_args
, **_kwargs
):
516 val
= apply(windowsc
.wxMenu_AppendSeparator
,(self
,) + _args
, _kwargs
)
518 def Break(self
, *_args
, **_kwargs
):
519 val
= apply(windowsc
.wxMenu_Break
,(self
,) + _args
, _kwargs
)
521 def Check(self
, *_args
, **_kwargs
):
522 val
= apply(windowsc
.wxMenu_Check
,(self
,) + _args
, _kwargs
)
524 def Enable(self
, *_args
, **_kwargs
):
525 val
= apply(windowsc
.wxMenu_Enable
,(self
,) + _args
, _kwargs
)
527 def FindItem(self
, *_args
, **_kwargs
):
528 val
= apply(windowsc
.wxMenu_FindItem
,(self
,) + _args
, _kwargs
)
530 def GetTitle(self
, *_args
, **_kwargs
):
531 val
= apply(windowsc
.wxMenu_GetTitle
,(self
,) + _args
, _kwargs
)
533 def SetTitle(self
, *_args
, **_kwargs
):
534 val
= apply(windowsc
.wxMenu_SetTitle
,(self
,) + _args
, _kwargs
)
536 def FindItemForId(self
, *_args
, **_kwargs
):
537 val
= apply(windowsc
.wxMenu_FindItemForId
,(self
,) + _args
, _kwargs
)
538 if val
: val
= wxMenuItemPtr(val
)
540 def GetHelpString(self
, *_args
, **_kwargs
):
541 val
= apply(windowsc
.wxMenu_GetHelpString
,(self
,) + _args
, _kwargs
)
543 def GetLabel(self
, *_args
, **_kwargs
):
544 val
= apply(windowsc
.wxMenu_GetLabel
,(self
,) + _args
, _kwargs
)
546 def SetHelpString(self
, *_args
, **_kwargs
):
547 val
= apply(windowsc
.wxMenu_SetHelpString
,(self
,) + _args
, _kwargs
)
549 def IsChecked(self
, *_args
, **_kwargs
):
550 val
= apply(windowsc
.wxMenu_IsChecked
,(self
,) + _args
, _kwargs
)
552 def IsEnabled(self
, *_args
, **_kwargs
):
553 val
= apply(windowsc
.wxMenu_IsEnabled
,(self
,) + _args
, _kwargs
)
555 def SetLabel(self
, *_args
, **_kwargs
):
556 val
= apply(windowsc
.wxMenu_SetLabel
,(self
,) + _args
, _kwargs
)
558 def UpdateUI(self
, *_args
, **_kwargs
):
559 val
= apply(windowsc
.wxMenu_UpdateUI
,(self
,) + _args
, _kwargs
)
561 def Destroy(self
, *_args
, **_kwargs
):
562 val
= apply(windowsc
.wxMenu_Destroy
,(self
,) + _args
, _kwargs
)
565 return "<C wxMenu instance at %s>" % (self
.this
,)
566 class wxMenu(wxMenuPtr
):
567 def __init__(self
,*_args
,**_kwargs
):
568 self
.this
= apply(windowsc
.new_wxMenu
,_args
,_kwargs
)
574 class wxMenuBarPtr(wxEvtHandlerPtr
):
575 def __init__(self
,this
):
578 def Append(self
, *_args
, **_kwargs
):
579 val
= apply(windowsc
.wxMenuBar_Append
,(self
,) + _args
, _kwargs
)
581 def Check(self
, *_args
, **_kwargs
):
582 val
= apply(windowsc
.wxMenuBar_Check
,(self
,) + _args
, _kwargs
)
584 def Checked(self
, *_args
, **_kwargs
):
585 val
= apply(windowsc
.wxMenuBar_Checked
,(self
,) + _args
, _kwargs
)
587 def Enable(self
, *_args
, **_kwargs
):
588 val
= apply(windowsc
.wxMenuBar_Enable
,(self
,) + _args
, _kwargs
)
590 def Enabled(self
, *_args
, **_kwargs
):
591 val
= apply(windowsc
.wxMenuBar_Enabled
,(self
,) + _args
, _kwargs
)
593 def FindMenuItem(self
, *_args
, **_kwargs
):
594 val
= apply(windowsc
.wxMenuBar_FindMenuItem
,(self
,) + _args
, _kwargs
)
596 def FindItemForId(self
, *_args
, **_kwargs
):
597 val
= apply(windowsc
.wxMenuBar_FindItemForId
,(self
,) + _args
, _kwargs
)
598 if val
: val
= wxMenuItemPtr(val
)
600 def SetLabel(self
, *_args
, **_kwargs
):
601 val
= apply(windowsc
.wxMenuBar_SetLabel
,(self
,) + _args
, _kwargs
)
603 def EnableTop(self
, *_args
, **_kwargs
):
604 val
= apply(windowsc
.wxMenuBar_EnableTop
,(self
,) + _args
, _kwargs
)
606 def GetHelpString(self
, *_args
, **_kwargs
):
607 val
= apply(windowsc
.wxMenuBar_GetHelpString
,(self
,) + _args
, _kwargs
)
609 def GetLabel(self
, *_args
, **_kwargs
):
610 val
= apply(windowsc
.wxMenuBar_GetLabel
,(self
,) + _args
, _kwargs
)
612 def SetHelpString(self
, *_args
, **_kwargs
):
613 val
= apply(windowsc
.wxMenuBar_SetHelpString
,(self
,) + _args
, _kwargs
)
615 def GetLabelTop(self
, *_args
, **_kwargs
):
616 val
= apply(windowsc
.wxMenuBar_GetLabelTop
,(self
,) + _args
, _kwargs
)
618 def SetLabelTop(self
, *_args
, **_kwargs
):
619 val
= apply(windowsc
.wxMenuBar_SetLabelTop
,(self
,) + _args
, _kwargs
)
621 def GetMenuCount(self
, *_args
, **_kwargs
):
622 val
= apply(windowsc
.wxMenuBar_GetMenuCount
,(self
,) + _args
, _kwargs
)
624 def GetMenu(self
, *_args
, **_kwargs
):
625 val
= apply(windowsc
.wxMenuBar_GetMenu
,(self
,) + _args
, _kwargs
)
626 if val
: val
= wxMenuPtr(val
)
629 return "<C wxMenuBar instance at %s>" % (self
.this
,)
630 class wxMenuBar(wxMenuBarPtr
):
631 def __init__(self
,*_args
,**_kwargs
):
632 self
.this
= apply(windowsc
.new_wxMenuBar
,_args
,_kwargs
)
638 class wxMenuItemPtr
:
639 def __init__(self
,this
):
642 def IsSeparator(self
, *_args
, **_kwargs
):
643 val
= apply(windowsc
.wxMenuItem_IsSeparator
,(self
,) + _args
, _kwargs
)
645 def IsEnabled(self
, *_args
, **_kwargs
):
646 val
= apply(windowsc
.wxMenuItem_IsEnabled
,(self
,) + _args
, _kwargs
)
648 def IsChecked(self
, *_args
, **_kwargs
):
649 val
= apply(windowsc
.wxMenuItem_IsChecked
,(self
,) + _args
, _kwargs
)
651 def IsCheckable(self
, *_args
, **_kwargs
):
652 val
= apply(windowsc
.wxMenuItem_IsCheckable
,(self
,) + _args
, _kwargs
)
654 def GetId(self
, *_args
, **_kwargs
):
655 val
= apply(windowsc
.wxMenuItem_GetId
,(self
,) + _args
, _kwargs
)
657 def GetSubMenu(self
, *_args
, **_kwargs
):
658 val
= apply(windowsc
.wxMenuItem_GetSubMenu
,(self
,) + _args
, _kwargs
)
659 if val
: val
= wxMenuPtr(val
)
661 def SetName(self
, *_args
, **_kwargs
):
662 val
= apply(windowsc
.wxMenuItem_SetName
,(self
,) + _args
, _kwargs
)
664 def GetName(self
, *_args
, **_kwargs
):
665 val
= apply(windowsc
.wxMenuItem_GetName
,(self
,) + _args
, _kwargs
)
667 def GetHelp(self
, *_args
, **_kwargs
):
668 val
= apply(windowsc
.wxMenuItem_GetHelp
,(self
,) + _args
, _kwargs
)
670 def SetHelp(self
, *_args
, **_kwargs
):
671 val
= apply(windowsc
.wxMenuItem_SetHelp
,(self
,) + _args
, _kwargs
)
673 def Enable(self
, *_args
, **_kwargs
):
674 val
= apply(windowsc
.wxMenuItem_Enable
,(self
,) + _args
, _kwargs
)
676 def Check(self
, *_args
, **_kwargs
):
677 val
= apply(windowsc
.wxMenuItem_Check
,(self
,) + _args
, _kwargs
)
680 return "<C wxMenuItem instance at %s>" % (self
.this
,)
681 class wxMenuItem(wxMenuItemPtr
):
682 def __init__(self
,*_args
,**_kwargs
):
683 self
.this
= apply(windowsc
.new_wxMenuItem
,_args
,_kwargs
)
691 #-------------- FUNCTION WRAPPERS ------------------
695 #-------------- VARIABLE WRAPPERS ------------------