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 DragAcceptFiles(self
, *_args
, **_kwargs
):
76 val
= apply(windowsc
.wxWindow_DragAcceptFiles
,(self
,) + _args
, _kwargs
)
78 def Enable(self
, *_args
, **_kwargs
):
79 val
= apply(windowsc
.wxWindow_Enable
,(self
,) + _args
, _kwargs
)
81 def FindWindowById(self
, *_args
, **_kwargs
):
82 val
= apply(windowsc
.wxWindow_FindWindowById
,(self
,) + _args
, _kwargs
)
83 if val
: val
= wxWindowPtr(val
)
85 def FindWindowByName(self
, *_args
, **_kwargs
):
86 val
= apply(windowsc
.wxWindow_FindWindowByName
,(self
,) + _args
, _kwargs
)
87 if val
: val
= wxWindowPtr(val
)
89 def Fit(self
, *_args
, **_kwargs
):
90 val
= apply(windowsc
.wxWindow_Fit
,(self
,) + _args
, _kwargs
)
92 def GetBackgroundColour(self
, *_args
, **_kwargs
):
93 val
= apply(windowsc
.wxWindow_GetBackgroundColour
,(self
,) + _args
, _kwargs
)
94 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
96 def GetChildren(self
, *_args
, **_kwargs
):
97 val
= apply(windowsc
.wxWindow_GetChildren
,(self
,) + _args
, _kwargs
)
99 def GetCharHeight(self
, *_args
, **_kwargs
):
100 val
= apply(windowsc
.wxWindow_GetCharHeight
,(self
,) + _args
, _kwargs
)
102 def GetCharWidth(self
, *_args
, **_kwargs
):
103 val
= apply(windowsc
.wxWindow_GetCharWidth
,(self
,) + _args
, _kwargs
)
105 def GetClientSizeTuple(self
, *_args
, **_kwargs
):
106 val
= apply(windowsc
.wxWindow_GetClientSizeTuple
,(self
,) + _args
, _kwargs
)
108 def GetClientSize(self
, *_args
, **_kwargs
):
109 val
= apply(windowsc
.wxWindow_GetClientSize
,(self
,) + _args
, _kwargs
)
110 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
112 def GetConstraints(self
, *_args
, **_kwargs
):
113 val
= apply(windowsc
.wxWindow_GetConstraints
,(self
,) + _args
, _kwargs
)
114 if val
: val
= wxLayoutConstraintsPtr(val
)
116 def GetEventHandler(self
, *_args
, **_kwargs
):
117 val
= apply(windowsc
.wxWindow_GetEventHandler
,(self
,) + _args
, _kwargs
)
118 if val
: val
= wxEvtHandlerPtr(val
)
120 def GetFont(self
, *_args
, **_kwargs
):
121 val
= apply(windowsc
.wxWindow_GetFont
,(self
,) + _args
, _kwargs
)
122 if val
: val
= wxFontPtr(val
)
124 def GetForegroundColour(self
, *_args
, **_kwargs
):
125 val
= apply(windowsc
.wxWindow_GetForegroundColour
,(self
,) + _args
, _kwargs
)
126 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
128 def GetGrandParent(self
, *_args
, **_kwargs
):
129 val
= apply(windowsc
.wxWindow_GetGrandParent
,(self
,) + _args
, _kwargs
)
130 if val
: val
= wxWindowPtr(val
)
132 def GetId(self
, *_args
, **_kwargs
):
133 val
= apply(windowsc
.wxWindow_GetId
,(self
,) + _args
, _kwargs
)
135 def GetLabel(self
, *_args
, **_kwargs
):
136 val
= apply(windowsc
.wxWindow_GetLabel
,(self
,) + _args
, _kwargs
)
138 def SetLabel(self
, *_args
, **_kwargs
):
139 val
= apply(windowsc
.wxWindow_SetLabel
,(self
,) + _args
, _kwargs
)
141 def GetName(self
, *_args
, **_kwargs
):
142 val
= apply(windowsc
.wxWindow_GetName
,(self
,) + _args
, _kwargs
)
144 def GetParent(self
, *_args
, **_kwargs
):
145 val
= apply(windowsc
.wxWindow_GetParent
,(self
,) + _args
, _kwargs
)
146 if val
: val
= wxWindowPtr(val
)
148 def GetPositionTuple(self
, *_args
, **_kwargs
):
149 val
= apply(windowsc
.wxWindow_GetPositionTuple
,(self
,) + _args
, _kwargs
)
151 def GetPosition(self
, *_args
, **_kwargs
):
152 val
= apply(windowsc
.wxWindow_GetPosition
,(self
,) + _args
, _kwargs
)
153 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
155 def GetRect(self
, *_args
, **_kwargs
):
156 val
= apply(windowsc
.wxWindow_GetRect
,(self
,) + _args
, _kwargs
)
157 if val
: val
= wxRectPtr(val
) ; val
.thisown
= 1
159 def GetScrollThumb(self
, *_args
, **_kwargs
):
160 val
= apply(windowsc
.wxWindow_GetScrollThumb
,(self
,) + _args
, _kwargs
)
162 def GetScrollPos(self
, *_args
, **_kwargs
):
163 val
= apply(windowsc
.wxWindow_GetScrollPos
,(self
,) + _args
, _kwargs
)
165 def GetScrollRange(self
, *_args
, **_kwargs
):
166 val
= apply(windowsc
.wxWindow_GetScrollRange
,(self
,) + _args
, _kwargs
)
168 def GetSizeTuple(self
, *_args
, **_kwargs
):
169 val
= apply(windowsc
.wxWindow_GetSizeTuple
,(self
,) + _args
, _kwargs
)
171 def GetSize(self
, *_args
, **_kwargs
):
172 val
= apply(windowsc
.wxWindow_GetSize
,(self
,) + _args
, _kwargs
)
173 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
175 def GetTextExtent(self
, *_args
, **_kwargs
):
176 val
= apply(windowsc
.wxWindow_GetTextExtent
,(self
,) + _args
, _kwargs
)
178 def GetFullTextExtent(self
, *_args
, **_kwargs
):
179 val
= apply(windowsc
.wxWindow_GetFullTextExtent
,(self
,) + _args
, _kwargs
)
181 def GetTitle(self
, *_args
, **_kwargs
):
182 val
= apply(windowsc
.wxWindow_GetTitle
,(self
,) + _args
, _kwargs
)
184 def GetUpdateRegion(self
, *_args
, **_kwargs
):
185 val
= apply(windowsc
.wxWindow_GetUpdateRegion
,(self
,) + _args
, _kwargs
)
186 if val
: val
= wxRegionPtr(val
) ; val
.thisown
= 1
188 def GetWindowStyleFlag(self
, *_args
, **_kwargs
):
189 val
= apply(windowsc
.wxWindow_GetWindowStyleFlag
,(self
,) + _args
, _kwargs
)
191 def Hide(self
, *_args
, **_kwargs
):
192 val
= apply(windowsc
.wxWindow_Hide
,(self
,) + _args
, _kwargs
)
194 def InitDialog(self
, *_args
, **_kwargs
):
195 val
= apply(windowsc
.wxWindow_InitDialog
,(self
,) + _args
, _kwargs
)
197 def IsEnabled(self
, *_args
, **_kwargs
):
198 val
= apply(windowsc
.wxWindow_IsEnabled
,(self
,) + _args
, _kwargs
)
200 def IsRetained(self
, *_args
, **_kwargs
):
201 val
= apply(windowsc
.wxWindow_IsRetained
,(self
,) + _args
, _kwargs
)
203 def IsShown(self
, *_args
, **_kwargs
):
204 val
= apply(windowsc
.wxWindow_IsShown
,(self
,) + _args
, _kwargs
)
206 def IsTopLevel(self
, *_args
, **_kwargs
):
207 val
= apply(windowsc
.wxWindow_IsTopLevel
,(self
,) + _args
, _kwargs
)
209 def Layout(self
, *_args
, **_kwargs
):
210 val
= apply(windowsc
.wxWindow_Layout
,(self
,) + _args
, _kwargs
)
212 def LoadFromResource(self
, *_args
, **_kwargs
):
213 val
= apply(windowsc
.wxWindow_LoadFromResource
,(self
,) + _args
, _kwargs
)
215 def Lower(self
, *_args
, **_kwargs
):
216 val
= apply(windowsc
.wxWindow_Lower
,(self
,) + _args
, _kwargs
)
218 def MakeModal(self
, *_args
, **_kwargs
):
219 val
= apply(windowsc
.wxWindow_MakeModal
,(self
,) + _args
, _kwargs
)
221 def MoveXY(self
, *_args
, **_kwargs
):
222 val
= apply(windowsc
.wxWindow_MoveXY
,(self
,) + _args
, _kwargs
)
224 def Move(self
, *_args
, **_kwargs
):
225 val
= apply(windowsc
.wxWindow_Move
,(self
,) + _args
, _kwargs
)
227 def PopEventHandler(self
, *_args
, **_kwargs
):
228 val
= apply(windowsc
.wxWindow_PopEventHandler
,(self
,) + _args
, _kwargs
)
229 if val
: val
= wxEvtHandlerPtr(val
)
231 def PushEventHandler(self
, *_args
, **_kwargs
):
232 val
= apply(windowsc
.wxWindow_PushEventHandler
,(self
,) + _args
, _kwargs
)
234 def PopupMenuXY(self
, *_args
, **_kwargs
):
235 val
= apply(windowsc
.wxWindow_PopupMenuXY
,(self
,) + _args
, _kwargs
)
237 def PopupMenu(self
, *_args
, **_kwargs
):
238 val
= apply(windowsc
.wxWindow_PopupMenu
,(self
,) + _args
, _kwargs
)
240 def Raise(self
, *_args
, **_kwargs
):
241 val
= apply(windowsc
.wxWindow_Raise
,(self
,) + _args
, _kwargs
)
243 def Refresh(self
, *_args
, **_kwargs
):
244 val
= apply(windowsc
.wxWindow_Refresh
,(self
,) + _args
, _kwargs
)
246 def ReleaseMouse(self
, *_args
, **_kwargs
):
247 val
= apply(windowsc
.wxWindow_ReleaseMouse
,(self
,) + _args
, _kwargs
)
249 def Reparent(self
, *_args
, **_kwargs
):
250 val
= apply(windowsc
.wxWindow_Reparent
,(self
,) + _args
, _kwargs
)
252 def ScreenToClientXY(self
, *_args
, **_kwargs
):
253 val
= apply(windowsc
.wxWindow_ScreenToClientXY
,(self
,) + _args
, _kwargs
)
255 def ScreenToClient(self
, *_args
, **_kwargs
):
256 val
= apply(windowsc
.wxWindow_ScreenToClient
,(self
,) + _args
, _kwargs
)
257 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
259 def ScrollWindow(self
, *_args
, **_kwargs
):
260 val
= apply(windowsc
.wxWindow_ScrollWindow
,(self
,) + _args
, _kwargs
)
262 def SetAcceleratorTable(self
, *_args
, **_kwargs
):
263 val
= apply(windowsc
.wxWindow_SetAcceleratorTable
,(self
,) + _args
, _kwargs
)
265 def SetAutoLayout(self
, *_args
, **_kwargs
):
266 val
= apply(windowsc
.wxWindow_SetAutoLayout
,(self
,) + _args
, _kwargs
)
268 def SetBackgroundColour(self
, *_args
, **_kwargs
):
269 val
= apply(windowsc
.wxWindow_SetBackgroundColour
,(self
,) + _args
, _kwargs
)
271 def SetConstraints(self
, *_args
, **_kwargs
):
272 val
= apply(windowsc
.wxWindow_SetConstraints
,(self
,) + _args
, _kwargs
)
274 def SetFocus(self
, *_args
, **_kwargs
):
275 val
= apply(windowsc
.wxWindow_SetFocus
,(self
,) + _args
, _kwargs
)
277 def SetFont(self
, *_args
, **_kwargs
):
278 val
= apply(windowsc
.wxWindow_SetFont
,(self
,) + _args
, _kwargs
)
280 def SetForegroundColour(self
, *_args
, **_kwargs
):
281 val
= apply(windowsc
.wxWindow_SetForegroundColour
,(self
,) + _args
, _kwargs
)
283 def SetId(self
, *_args
, **_kwargs
):
284 val
= apply(windowsc
.wxWindow_SetId
,(self
,) + _args
, _kwargs
)
286 def SetName(self
, *_args
, **_kwargs
):
287 val
= apply(windowsc
.wxWindow_SetName
,(self
,) + _args
, _kwargs
)
289 def SetScrollbar(self
, *_args
, **_kwargs
):
290 val
= apply(windowsc
.wxWindow_SetScrollbar
,(self
,) + _args
, _kwargs
)
292 def SetScrollPos(self
, *_args
, **_kwargs
):
293 val
= apply(windowsc
.wxWindow_SetScrollPos
,(self
,) + _args
, _kwargs
)
295 def SetDimensions(self
, *_args
, **_kwargs
):
296 val
= apply(windowsc
.wxWindow_SetDimensions
,(self
,) + _args
, _kwargs
)
298 def SetSize(self
, *_args
, **_kwargs
):
299 val
= apply(windowsc
.wxWindow_SetSize
,(self
,) + _args
, _kwargs
)
301 def SetPosition(self
, *_args
, **_kwargs
):
302 val
= apply(windowsc
.wxWindow_SetPosition
,(self
,) + _args
, _kwargs
)
304 def SetSizeHints(self
, *_args
, **_kwargs
):
305 val
= apply(windowsc
.wxWindow_SetSizeHints
,(self
,) + _args
, _kwargs
)
307 def SetClientSizeWH(self
, *_args
, **_kwargs
):
308 val
= apply(windowsc
.wxWindow_SetClientSizeWH
,(self
,) + _args
, _kwargs
)
310 def SetClientSize(self
, *_args
, **_kwargs
):
311 val
= apply(windowsc
.wxWindow_SetClientSize
,(self
,) + _args
, _kwargs
)
313 def SetCursor(self
, *_args
, **_kwargs
):
314 val
= apply(windowsc
.wxWindow_SetCursor
,(self
,) + _args
, _kwargs
)
316 def SetEventHandler(self
, *_args
, **_kwargs
):
317 val
= apply(windowsc
.wxWindow_SetEventHandler
,(self
,) + _args
, _kwargs
)
319 def SetTitle(self
, *_args
, **_kwargs
):
320 val
= apply(windowsc
.wxWindow_SetTitle
,(self
,) + _args
, _kwargs
)
322 def Show(self
, *_args
, **_kwargs
):
323 val
= apply(windowsc
.wxWindow_Show
,(self
,) + _args
, _kwargs
)
325 def TransferDataFromWindow(self
, *_args
, **_kwargs
):
326 val
= apply(windowsc
.wxWindow_TransferDataFromWindow
,(self
,) + _args
, _kwargs
)
328 def TransferDataToWindow(self
, *_args
, **_kwargs
):
329 val
= apply(windowsc
.wxWindow_TransferDataToWindow
,(self
,) + _args
, _kwargs
)
331 def Validate(self
, *_args
, **_kwargs
):
332 val
= apply(windowsc
.wxWindow_Validate
,(self
,) + _args
, _kwargs
)
334 def WarpPointer(self
, *_args
, **_kwargs
):
335 val
= apply(windowsc
.wxWindow_WarpPointer
,(self
,) + _args
, _kwargs
)
337 def ConvertDialogPointToPixels(self
, *_args
, **_kwargs
):
338 val
= apply(windowsc
.wxWindow_ConvertDialogPointToPixels
,(self
,) + _args
, _kwargs
)
339 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
341 def ConvertDialogSizeToPixels(self
, *_args
, **_kwargs
):
342 val
= apply(windowsc
.wxWindow_ConvertDialogSizeToPixels
,(self
,) + _args
, _kwargs
)
343 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
345 def DLG_PNT(self
, *_args
, **_kwargs
):
346 val
= apply(windowsc
.wxWindow_DLG_PNT
,(self
,) + _args
, _kwargs
)
347 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
349 def DLG_SZE(self
, *_args
, **_kwargs
):
350 val
= apply(windowsc
.wxWindow_DLG_SZE
,(self
,) + _args
, _kwargs
)
351 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
353 def ConvertPixelPointToDialog(self
, *_args
, **_kwargs
):
354 val
= apply(windowsc
.wxWindow_ConvertPixelPointToDialog
,(self
,) + _args
, _kwargs
)
355 if val
: val
= wxPointPtr(val
) ; val
.thisown
= 1
357 def ConvertPixelSizeToDialog(self
, *_args
, **_kwargs
):
358 val
= apply(windowsc
.wxWindow_ConvertPixelSizeToDialog
,(self
,) + _args
, _kwargs
)
359 if val
: val
= wxSizePtr(val
) ; val
.thisown
= 1
361 def SetToolTipString(self
, *_args
, **_kwargs
):
362 val
= apply(windowsc
.wxWindow_SetToolTipString
,(self
,) + _args
, _kwargs
)
364 def SetToolTip(self
, *_args
, **_kwargs
):
365 val
= apply(windowsc
.wxWindow_SetToolTip
,(self
,) + _args
, _kwargs
)
367 def GetToolTip(self
, *_args
, **_kwargs
):
368 val
= apply(windowsc
.wxWindow_GetToolTip
,(self
,) + _args
, _kwargs
)
369 if val
: val
= wxToolTipPtr(val
)
372 return "<C wxWindow instance at %s>" % (self
.this
,)
373 class wxWindow(wxWindowPtr
):
374 def __init__(self
,*_args
,**_kwargs
):
375 self
.this
= apply(windowsc
.new_wxWindow
,_args
,_kwargs
)
377 wx
._StdWindowCallbacks
(self
)
382 class wxPanelPtr(wxWindowPtr
):
383 def __init__(self
,this
):
386 def InitDialog(self
, *_args
, **_kwargs
):
387 val
= apply(windowsc
.wxPanel_InitDialog
,(self
,) + _args
, _kwargs
)
389 def GetDefaultItem(self
, *_args
, **_kwargs
):
390 val
= apply(windowsc
.wxPanel_GetDefaultItem
,(self
,) + _args
, _kwargs
)
391 if val
: val
= wxButtonPtr(val
)
393 def SetDefaultItem(self
, *_args
, **_kwargs
):
394 val
= apply(windowsc
.wxPanel_SetDefaultItem
,(self
,) + _args
, _kwargs
)
397 return "<C wxPanel instance at %s>" % (self
.this
,)
399 def GetDefaultItem(self
):
401 val
= windowsc
.wxPanel_GetDefaultItem(self
.this
)
402 val
= controls
.wxButtonPtr(val
)
405 class wxPanel(wxPanelPtr
):
406 def __init__(self
,*_args
,**_kwargs
):
407 self
.this
= apply(windowsc
.new_wxPanel
,_args
,_kwargs
)
409 wx
._StdWindowCallbacks
(self
)
414 class wxDialogPtr(wxPanelPtr
):
415 def __init__(self
,this
):
418 def Centre(self
, *_args
, **_kwargs
):
419 val
= apply(windowsc
.wxDialog_Centre
,(self
,) + _args
, _kwargs
)
421 def EndModal(self
, *_args
, **_kwargs
):
422 val
= apply(windowsc
.wxDialog_EndModal
,(self
,) + _args
, _kwargs
)
424 def GetTitle(self
, *_args
, **_kwargs
):
425 val
= apply(windowsc
.wxDialog_GetTitle
,(self
,) + _args
, _kwargs
)
427 def Iconize(self
, *_args
, **_kwargs
):
428 val
= apply(windowsc
.wxDialog_Iconize
,(self
,) + _args
, _kwargs
)
430 def IsIconized(self
, *_args
, **_kwargs
):
431 val
= apply(windowsc
.wxDialog_IsIconized
,(self
,) + _args
, _kwargs
)
433 def SetModal(self
, *_args
, **_kwargs
):
434 val
= apply(windowsc
.wxDialog_SetModal
,(self
,) + _args
, _kwargs
)
436 def IsModal(self
, *_args
, **_kwargs
):
437 val
= apply(windowsc
.wxDialog_IsModal
,(self
,) + _args
, _kwargs
)
439 def SetTitle(self
, *_args
, **_kwargs
):
440 val
= apply(windowsc
.wxDialog_SetTitle
,(self
,) + _args
, _kwargs
)
442 def Show(self
, *_args
, **_kwargs
):
443 val
= apply(windowsc
.wxDialog_Show
,(self
,) + _args
, _kwargs
)
445 def ShowModal(self
, *_args
, **_kwargs
):
446 val
= apply(windowsc
.wxDialog_ShowModal
,(self
,) + _args
, _kwargs
)
448 def GetReturnCode(self
, *_args
, **_kwargs
):
449 val
= apply(windowsc
.wxDialog_GetReturnCode
,(self
,) + _args
, _kwargs
)
451 def SetReturnCode(self
, *_args
, **_kwargs
):
452 val
= apply(windowsc
.wxDialog_SetReturnCode
,(self
,) + _args
, _kwargs
)
455 return "<C wxDialog instance at %s>" % (self
.this
,)
456 class wxDialog(wxDialogPtr
):
457 def __init__(self
,*_args
,**_kwargs
):
458 self
.this
= apply(windowsc
.new_wxDialog
,_args
,_kwargs
)
460 wx
._StdDialogCallbacks
(self
)
465 class wxScrolledWindowPtr(wxPanelPtr
):
466 def __init__(self
,this
):
469 def EnableScrolling(self
, *_args
, **_kwargs
):
470 val
= apply(windowsc
.wxScrolledWindow_EnableScrolling
,(self
,) + _args
, _kwargs
)
472 def GetScrollPixelsPerUnit(self
, *_args
, **_kwargs
):
473 val
= apply(windowsc
.wxScrolledWindow_GetScrollPixelsPerUnit
,(self
,) + _args
, _kwargs
)
475 def GetVirtualSize(self
, *_args
, **_kwargs
):
476 val
= apply(windowsc
.wxScrolledWindow_GetVirtualSize
,(self
,) + _args
, _kwargs
)
478 def IsRetained(self
, *_args
, **_kwargs
):
479 val
= apply(windowsc
.wxScrolledWindow_IsRetained
,(self
,) + _args
, _kwargs
)
481 def PrepareDC(self
, *_args
, **_kwargs
):
482 val
= apply(windowsc
.wxScrolledWindow_PrepareDC
,(self
,) + _args
, _kwargs
)
484 def Scroll(self
, *_args
, **_kwargs
):
485 val
= apply(windowsc
.wxScrolledWindow_Scroll
,(self
,) + _args
, _kwargs
)
487 def SetScrollbars(self
, *_args
, **_kwargs
):
488 val
= apply(windowsc
.wxScrolledWindow_SetScrollbars
,(self
,) + _args
, _kwargs
)
490 def ViewStart(self
, *_args
, **_kwargs
):
491 val
= apply(windowsc
.wxScrolledWindow_ViewStart
,(self
,) + _args
, _kwargs
)
494 return "<C wxScrolledWindow instance at %s>" % (self
.this
,)
495 class wxScrolledWindow(wxScrolledWindowPtr
):
496 def __init__(self
,*_args
,**_kwargs
):
497 self
.this
= apply(windowsc
.new_wxScrolledWindow
,_args
,_kwargs
)
499 wx
._StdWindowCallbacks
(self
)
500 wx
._StdOnScrollCallbacks
(self
)
505 class wxMenuPtr(wxEvtHandlerPtr
):
506 def __init__(self
,this
):
509 def Append(self
, *_args
, **_kwargs
):
510 val
= apply(windowsc
.wxMenu_Append
,(self
,) + _args
, _kwargs
)
512 def AppendMenu(self
, *_args
, **_kwargs
):
513 val
= apply(windowsc
.wxMenu_AppendMenu
,(self
,) + _args
, _kwargs
)
515 def AppendItem(self
, *_args
, **_kwargs
):
516 val
= apply(windowsc
.wxMenu_AppendItem
,(self
,) + _args
, _kwargs
)
518 def AppendSeparator(self
, *_args
, **_kwargs
):
519 val
= apply(windowsc
.wxMenu_AppendSeparator
,(self
,) + _args
, _kwargs
)
521 def Break(self
, *_args
, **_kwargs
):
522 val
= apply(windowsc
.wxMenu_Break
,(self
,) + _args
, _kwargs
)
524 def Check(self
, *_args
, **_kwargs
):
525 val
= apply(windowsc
.wxMenu_Check
,(self
,) + _args
, _kwargs
)
527 def Enable(self
, *_args
, **_kwargs
):
528 val
= apply(windowsc
.wxMenu_Enable
,(self
,) + _args
, _kwargs
)
530 def FindItem(self
, *_args
, **_kwargs
):
531 val
= apply(windowsc
.wxMenu_FindItem
,(self
,) + _args
, _kwargs
)
533 def GetTitle(self
, *_args
, **_kwargs
):
534 val
= apply(windowsc
.wxMenu_GetTitle
,(self
,) + _args
, _kwargs
)
536 def SetTitle(self
, *_args
, **_kwargs
):
537 val
= apply(windowsc
.wxMenu_SetTitle
,(self
,) + _args
, _kwargs
)
539 def FindItemForId(self
, *_args
, **_kwargs
):
540 val
= apply(windowsc
.wxMenu_FindItemForId
,(self
,) + _args
, _kwargs
)
541 if val
: val
= wxMenuItemPtr(val
)
543 def GetHelpString(self
, *_args
, **_kwargs
):
544 val
= apply(windowsc
.wxMenu_GetHelpString
,(self
,) + _args
, _kwargs
)
546 def GetLabel(self
, *_args
, **_kwargs
):
547 val
= apply(windowsc
.wxMenu_GetLabel
,(self
,) + _args
, _kwargs
)
549 def SetHelpString(self
, *_args
, **_kwargs
):
550 val
= apply(windowsc
.wxMenu_SetHelpString
,(self
,) + _args
, _kwargs
)
552 def IsChecked(self
, *_args
, **_kwargs
):
553 val
= apply(windowsc
.wxMenu_IsChecked
,(self
,) + _args
, _kwargs
)
555 def IsEnabled(self
, *_args
, **_kwargs
):
556 val
= apply(windowsc
.wxMenu_IsEnabled
,(self
,) + _args
, _kwargs
)
558 def SetLabel(self
, *_args
, **_kwargs
):
559 val
= apply(windowsc
.wxMenu_SetLabel
,(self
,) + _args
, _kwargs
)
561 def UpdateUI(self
, *_args
, **_kwargs
):
562 val
= apply(windowsc
.wxMenu_UpdateUI
,(self
,) + _args
, _kwargs
)
564 def Destroy(self
, *_args
, **_kwargs
):
565 val
= apply(windowsc
.wxMenu_Destroy
,(self
,) + _args
, _kwargs
)
568 return "<C wxMenu instance at %s>" % (self
.this
,)
569 class wxMenu(wxMenuPtr
):
570 def __init__(self
,*_args
,**_kwargs
):
571 self
.this
= apply(windowsc
.new_wxMenu
,_args
,_kwargs
)
577 class wxMenuBarPtr(wxEvtHandlerPtr
):
578 def __init__(self
,this
):
581 def Append(self
, *_args
, **_kwargs
):
582 val
= apply(windowsc
.wxMenuBar_Append
,(self
,) + _args
, _kwargs
)
584 def Check(self
, *_args
, **_kwargs
):
585 val
= apply(windowsc
.wxMenuBar_Check
,(self
,) + _args
, _kwargs
)
587 def Checked(self
, *_args
, **_kwargs
):
588 val
= apply(windowsc
.wxMenuBar_Checked
,(self
,) + _args
, _kwargs
)
590 def Enable(self
, *_args
, **_kwargs
):
591 val
= apply(windowsc
.wxMenuBar_Enable
,(self
,) + _args
, _kwargs
)
593 def Enabled(self
, *_args
, **_kwargs
):
594 val
= apply(windowsc
.wxMenuBar_Enabled
,(self
,) + _args
, _kwargs
)
596 def FindMenuItem(self
, *_args
, **_kwargs
):
597 val
= apply(windowsc
.wxMenuBar_FindMenuItem
,(self
,) + _args
, _kwargs
)
599 def FindItemForId(self
, *_args
, **_kwargs
):
600 val
= apply(windowsc
.wxMenuBar_FindItemForId
,(self
,) + _args
, _kwargs
)
601 if val
: val
= wxMenuItemPtr(val
)
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 SetLabel(self
, *_args
, **_kwargs
):
616 val
= apply(windowsc
.wxMenuBar_SetLabel
,(self
,) + _args
, _kwargs
)
618 def GetLabelTop(self
, *_args
, **_kwargs
):
619 val
= apply(windowsc
.wxMenuBar_GetLabelTop
,(self
,) + _args
, _kwargs
)
621 def SetLabelTop(self
, *_args
, **_kwargs
):
622 val
= apply(windowsc
.wxMenuBar_SetLabelTop
,(self
,) + _args
, _kwargs
)
624 def GetMenuCount(self
, *_args
, **_kwargs
):
625 val
= apply(windowsc
.wxMenuBar_GetMenuCount
,(self
,) + _args
, _kwargs
)
627 def GetMenu(self
, *_args
, **_kwargs
):
628 val
= apply(windowsc
.wxMenuBar_GetMenu
,(self
,) + _args
, _kwargs
)
629 if val
: val
= wxMenuPtr(val
)
632 return "<C wxMenuBar instance at %s>" % (self
.this
,)
633 class wxMenuBar(wxMenuBarPtr
):
634 def __init__(self
,*_args
,**_kwargs
):
635 self
.this
= apply(windowsc
.new_wxMenuBar
,_args
,_kwargs
)
641 class wxMenuItemPtr
:
642 def __init__(self
,this
):
645 def IsSeparator(self
, *_args
, **_kwargs
):
646 val
= apply(windowsc
.wxMenuItem_IsSeparator
,(self
,) + _args
, _kwargs
)
648 def IsEnabled(self
, *_args
, **_kwargs
):
649 val
= apply(windowsc
.wxMenuItem_IsEnabled
,(self
,) + _args
, _kwargs
)
651 def IsChecked(self
, *_args
, **_kwargs
):
652 val
= apply(windowsc
.wxMenuItem_IsChecked
,(self
,) + _args
, _kwargs
)
654 def IsCheckable(self
, *_args
, **_kwargs
):
655 val
= apply(windowsc
.wxMenuItem_IsCheckable
,(self
,) + _args
, _kwargs
)
657 def GetId(self
, *_args
, **_kwargs
):
658 val
= apply(windowsc
.wxMenuItem_GetId
,(self
,) + _args
, _kwargs
)
660 def GetSubMenu(self
, *_args
, **_kwargs
):
661 val
= apply(windowsc
.wxMenuItem_GetSubMenu
,(self
,) + _args
, _kwargs
)
662 if val
: val
= wxMenuPtr(val
)
664 def SetName(self
, *_args
, **_kwargs
):
665 val
= apply(windowsc
.wxMenuItem_SetName
,(self
,) + _args
, _kwargs
)
667 def GetName(self
, *_args
, **_kwargs
):
668 val
= apply(windowsc
.wxMenuItem_GetName
,(self
,) + _args
, _kwargs
)
670 def GetHelp(self
, *_args
, **_kwargs
):
671 val
= apply(windowsc
.wxMenuItem_GetHelp
,(self
,) + _args
, _kwargs
)
673 def SetHelp(self
, *_args
, **_kwargs
):
674 val
= apply(windowsc
.wxMenuItem_SetHelp
,(self
,) + _args
, _kwargs
)
676 def Enable(self
, *_args
, **_kwargs
):
677 val
= apply(windowsc
.wxMenuItem_Enable
,(self
,) + _args
, _kwargs
)
679 def Check(self
, *_args
, **_kwargs
):
680 val
= apply(windowsc
.wxMenuItem_Check
,(self
,) + _args
, _kwargs
)
682 def GetBackgroundColour(self
, *_args
, **_kwargs
):
683 val
= apply(windowsc
.wxMenuItem_GetBackgroundColour
,(self
,) + _args
, _kwargs
)
684 if val
: val
= wxColourPtr(val
)
686 def GetBitmap(self
, *_args
, **_kwargs
):
687 val
= apply(windowsc
.wxMenuItem_GetBitmap
,(self
,) + _args
, _kwargs
)
688 if val
: val
= wxBitmapPtr(val
) ; val
.thisown
= 1
690 def GetFont(self
, *_args
, **_kwargs
):
691 val
= apply(windowsc
.wxMenuItem_GetFont
,(self
,) + _args
, _kwargs
)
692 if val
: val
= wxFontPtr(val
)
694 def GetMarginWidth(self
, *_args
, **_kwargs
):
695 val
= apply(windowsc
.wxMenuItem_GetMarginWidth
,(self
,) + _args
, _kwargs
)
697 def GetTextColour(self
, *_args
, **_kwargs
):
698 val
= apply(windowsc
.wxMenuItem_GetTextColour
,(self
,) + _args
, _kwargs
)
699 if val
: val
= wxColourPtr(val
)
701 def SetBackgroundColour(self
, *_args
, **_kwargs
):
702 val
= apply(windowsc
.wxMenuItem_SetBackgroundColour
,(self
,) + _args
, _kwargs
)
704 def SetBitmaps(self
, *_args
, **_kwargs
):
705 val
= apply(windowsc
.wxMenuItem_SetBitmaps
,(self
,) + _args
, _kwargs
)
707 def SetFont(self
, *_args
, **_kwargs
):
708 val
= apply(windowsc
.wxMenuItem_SetFont
,(self
,) + _args
, _kwargs
)
710 def SetMarginWidth(self
, *_args
, **_kwargs
):
711 val
= apply(windowsc
.wxMenuItem_SetMarginWidth
,(self
,) + _args
, _kwargs
)
713 def SetTextColour(self
, *_args
, **_kwargs
):
714 val
= apply(windowsc
.wxMenuItem_SetTextColour
,(self
,) + _args
, _kwargs
)
716 def DeleteSubMenu(self
, *_args
, **_kwargs
):
717 val
= apply(windowsc
.wxMenuItem_DeleteSubMenu
,(self
,) + _args
, _kwargs
)
720 return "<C wxMenuItem instance at %s>" % (self
.this
,)
721 class wxMenuItem(wxMenuItemPtr
):
722 def __init__(self
,*_args
,**_kwargs
):
723 self
.this
= apply(windowsc
.new_wxMenuItem
,_args
,_kwargs
)
731 #-------------- FUNCTION WRAPPERS ------------------
733 def wxWindow_FindFocus(*_args
, **_kwargs
):
734 val
= apply(windowsc
.wxWindow_FindFocus
,_args
,_kwargs
)
735 if val
: val
= wxWindowPtr(val
)
738 def wxWindow_FromHWND(*_args
, **_kwargs
):
739 val
= apply(windowsc
.wxWindow_FromHWND
,_args
,_kwargs
)
740 if val
: val
= wxWindowPtr(val
)
745 #-------------- VARIABLE WRAPPERS ------------------