]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/windows.py
updates of some SWIG generated stuff
[wxWidgets.git] / utils / wxPython / src / gtk / windows.py
1 # This file was created automatically by SWIG.
2 import windowsc
3
4 from misc import *
5
6 from gdi import *
7 import wx
8
9 def wxDLG_PNT(win, point_or_x, y=None):
10 if y is None:
11 return win.ConvertDialogPointToPixels(point_or_x)
12 else:
13 return win.ConvertDialogPointToPixels(wxPoint(point_or_x, y))
14
15 def wxDLG_SZE(win, size_width, height=None):
16 if height is None:
17 return win.ConvertDialogSizeToPixels(size_width)
18 else:
19 return win.ConvertDialogSizeToPixels(wxSize(size_width, height))
20
21 class wxEvtHandlerPtr :
22 def __init__(self,this):
23 self.this = this
24 self.thisown = 0
25 def ProcessEvent(self, *_args, **_kwargs):
26 val = apply(windowsc.wxEvtHandler_ProcessEvent,(self,) + _args, _kwargs)
27 return val
28 def Connect(self, *_args, **_kwargs):
29 val = apply(windowsc.wxEvtHandler_Connect,(self,) + _args, _kwargs)
30 return val
31 def __repr__(self):
32 return "<C wxEvtHandler instance at %s>" % (self.this,)
33 class wxEvtHandler(wxEvtHandlerPtr):
34 def __init__(self,this):
35 self.this = this
36
37
38
39
40 class wxWindowPtr(wxEvtHandlerPtr):
41 def __init__(self,this):
42 self.this = this
43 self.thisown = 0
44 def CaptureMouse(self, *_args, **_kwargs):
45 val = apply(windowsc.wxWindow_CaptureMouse,(self,) + _args, _kwargs)
46 return val
47 def Center(self, *_args, **_kwargs):
48 val = apply(windowsc.wxWindow_Center,(self,) + _args, _kwargs)
49 return val
50 def Centre(self, *_args, **_kwargs):
51 val = apply(windowsc.wxWindow_Centre,(self,) + _args, _kwargs)
52 return val
53 def CentreOnParent(self, *_args, **_kwargs):
54 val = apply(windowsc.wxWindow_CentreOnParent,(self,) + _args, _kwargs)
55 return val
56 def CenterOnParent(self, *_args, **_kwargs):
57 val = apply(windowsc.wxWindow_CenterOnParent,(self,) + _args, _kwargs)
58 return val
59 def ClientToScreenXY(self, *_args, **_kwargs):
60 val = apply(windowsc.wxWindow_ClientToScreenXY,(self,) + _args, _kwargs)
61 return val
62 def ClientToScreen(self, *_args, **_kwargs):
63 val = apply(windowsc.wxWindow_ClientToScreen,(self,) + _args, _kwargs)
64 if val: val = wxPointPtr(val) ; val.thisown = 1
65 return val
66 def Close(self, *_args, **_kwargs):
67 val = apply(windowsc.wxWindow_Close,(self,) + _args, _kwargs)
68 return val
69 def Destroy(self, *_args, **_kwargs):
70 val = apply(windowsc.wxWindow_Destroy,(self,) + _args, _kwargs)
71 return val
72 def DestroyChildren(self, *_args, **_kwargs):
73 val = apply(windowsc.wxWindow_DestroyChildren,(self,) + _args, _kwargs)
74 return val
75 def Enable(self, *_args, **_kwargs):
76 val = apply(windowsc.wxWindow_Enable,(self,) + _args, _kwargs)
77 return val
78 def FindWindowById(self, *_args, **_kwargs):
79 val = apply(windowsc.wxWindow_FindWindowById,(self,) + _args, _kwargs)
80 if val: val = wxWindowPtr(val)
81 return val
82 def FindWindowByName(self, *_args, **_kwargs):
83 val = apply(windowsc.wxWindow_FindWindowByName,(self,) + _args, _kwargs)
84 if val: val = wxWindowPtr(val)
85 return val
86 def Fit(self, *_args, **_kwargs):
87 val = apply(windowsc.wxWindow_Fit,(self,) + _args, _kwargs)
88 return val
89 def GetBackgroundColour(self, *_args, **_kwargs):
90 val = apply(windowsc.wxWindow_GetBackgroundColour,(self,) + _args, _kwargs)
91 if val: val = wxColourPtr(val) ; val.thisown = 1
92 return val
93 def GetChildren(self, *_args, **_kwargs):
94 val = apply(windowsc.wxWindow_GetChildren,(self,) + _args, _kwargs)
95 return val
96 def GetCharHeight(self, *_args, **_kwargs):
97 val = apply(windowsc.wxWindow_GetCharHeight,(self,) + _args, _kwargs)
98 return val
99 def GetCharWidth(self, *_args, **_kwargs):
100 val = apply(windowsc.wxWindow_GetCharWidth,(self,) + _args, _kwargs)
101 return val
102 def GetClientSizeTuple(self, *_args, **_kwargs):
103 val = apply(windowsc.wxWindow_GetClientSizeTuple,(self,) + _args, _kwargs)
104 return val
105 def GetClientSize(self, *_args, **_kwargs):
106 val = apply(windowsc.wxWindow_GetClientSize,(self,) + _args, _kwargs)
107 if val: val = wxSizePtr(val) ; val.thisown = 1
108 return val
109 def GetConstraints(self, *_args, **_kwargs):
110 val = apply(windowsc.wxWindow_GetConstraints,(self,) + _args, _kwargs)
111 if val: val = wxLayoutConstraintsPtr(val)
112 return val
113 def GetEventHandler(self, *_args, **_kwargs):
114 val = apply(windowsc.wxWindow_GetEventHandler,(self,) + _args, _kwargs)
115 if val: val = wxEvtHandlerPtr(val)
116 return val
117 def GetFont(self, *_args, **_kwargs):
118 val = apply(windowsc.wxWindow_GetFont,(self,) + _args, _kwargs)
119 if val: val = wxFontPtr(val)
120 return 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
124 return val
125 def GetGrandParent(self, *_args, **_kwargs):
126 val = apply(windowsc.wxWindow_GetGrandParent,(self,) + _args, _kwargs)
127 if val: val = wxWindowPtr(val)
128 return val
129 def GetId(self, *_args, **_kwargs):
130 val = apply(windowsc.wxWindow_GetId,(self,) + _args, _kwargs)
131 return val
132 def GetLabel(self, *_args, **_kwargs):
133 val = apply(windowsc.wxWindow_GetLabel,(self,) + _args, _kwargs)
134 return val
135 def SetLabel(self, *_args, **_kwargs):
136 val = apply(windowsc.wxWindow_SetLabel,(self,) + _args, _kwargs)
137 return val
138 def GetName(self, *_args, **_kwargs):
139 val = apply(windowsc.wxWindow_GetName,(self,) + _args, _kwargs)
140 return val
141 def GetParent(self, *_args, **_kwargs):
142 val = apply(windowsc.wxWindow_GetParent,(self,) + _args, _kwargs)
143 if val: val = wxWindowPtr(val)
144 return val
145 def GetPositionTuple(self, *_args, **_kwargs):
146 val = apply(windowsc.wxWindow_GetPositionTuple,(self,) + _args, _kwargs)
147 return val
148 def GetPosition(self, *_args, **_kwargs):
149 val = apply(windowsc.wxWindow_GetPosition,(self,) + _args, _kwargs)
150 if val: val = wxPointPtr(val) ; val.thisown = 1
151 return val
152 def GetRect(self, *_args, **_kwargs):
153 val = apply(windowsc.wxWindow_GetRect,(self,) + _args, _kwargs)
154 if val: val = wxRectPtr(val) ; val.thisown = 1
155 return val
156 def GetScrollThumb(self, *_args, **_kwargs):
157 val = apply(windowsc.wxWindow_GetScrollThumb,(self,) + _args, _kwargs)
158 return val
159 def GetScrollPos(self, *_args, **_kwargs):
160 val = apply(windowsc.wxWindow_GetScrollPos,(self,) + _args, _kwargs)
161 return val
162 def GetScrollRange(self, *_args, **_kwargs):
163 val = apply(windowsc.wxWindow_GetScrollRange,(self,) + _args, _kwargs)
164 return val
165 def GetSizeTuple(self, *_args, **_kwargs):
166 val = apply(windowsc.wxWindow_GetSizeTuple,(self,) + _args, _kwargs)
167 return val
168 def GetSize(self, *_args, **_kwargs):
169 val = apply(windowsc.wxWindow_GetSize,(self,) + _args, _kwargs)
170 if val: val = wxSizePtr(val) ; val.thisown = 1
171 return val
172 def GetTextExtent(self, *_args, **_kwargs):
173 val = apply(windowsc.wxWindow_GetTextExtent,(self,) + _args, _kwargs)
174 return val
175 def GetFullTextExtent(self, *_args, **_kwargs):
176 val = apply(windowsc.wxWindow_GetFullTextExtent,(self,) + _args, _kwargs)
177 return val
178 def GetTitle(self, *_args, **_kwargs):
179 val = apply(windowsc.wxWindow_GetTitle,(self,) + _args, _kwargs)
180 return val
181 def GetUpdateRegion(self, *_args, **_kwargs):
182 val = apply(windowsc.wxWindow_GetUpdateRegion,(self,) + _args, _kwargs)
183 if val: val = wxRegionPtr(val) ; val.thisown = 1
184 return val
185 def GetWindowStyleFlag(self, *_args, **_kwargs):
186 val = apply(windowsc.wxWindow_GetWindowStyleFlag,(self,) + _args, _kwargs)
187 return val
188 def Hide(self, *_args, **_kwargs):
189 val = apply(windowsc.wxWindow_Hide,(self,) + _args, _kwargs)
190 return val
191 def InitDialog(self, *_args, **_kwargs):
192 val = apply(windowsc.wxWindow_InitDialog,(self,) + _args, _kwargs)
193 return val
194 def IsEnabled(self, *_args, **_kwargs):
195 val = apply(windowsc.wxWindow_IsEnabled,(self,) + _args, _kwargs)
196 return val
197 def IsRetained(self, *_args, **_kwargs):
198 val = apply(windowsc.wxWindow_IsRetained,(self,) + _args, _kwargs)
199 return val
200 def IsShown(self, *_args, **_kwargs):
201 val = apply(windowsc.wxWindow_IsShown,(self,) + _args, _kwargs)
202 return val
203 def IsTopLevel(self, *_args, **_kwargs):
204 val = apply(windowsc.wxWindow_IsTopLevel,(self,) + _args, _kwargs)
205 return val
206 def Layout(self, *_args, **_kwargs):
207 val = apply(windowsc.wxWindow_Layout,(self,) + _args, _kwargs)
208 return val
209 def LoadFromResource(self, *_args, **_kwargs):
210 val = apply(windowsc.wxWindow_LoadFromResource,(self,) + _args, _kwargs)
211 return val
212 def Lower(self, *_args, **_kwargs):
213 val = apply(windowsc.wxWindow_Lower,(self,) + _args, _kwargs)
214 return val
215 def MakeModal(self, *_args, **_kwargs):
216 val = apply(windowsc.wxWindow_MakeModal,(self,) + _args, _kwargs)
217 return val
218 def MoveXY(self, *_args, **_kwargs):
219 val = apply(windowsc.wxWindow_MoveXY,(self,) + _args, _kwargs)
220 return val
221 def Move(self, *_args, **_kwargs):
222 val = apply(windowsc.wxWindow_Move,(self,) + _args, _kwargs)
223 return val
224 def PopEventHandler(self, *_args, **_kwargs):
225 val = apply(windowsc.wxWindow_PopEventHandler,(self,) + _args, _kwargs)
226 if val: val = wxEvtHandlerPtr(val)
227 return val
228 def PushEventHandler(self, *_args, **_kwargs):
229 val = apply(windowsc.wxWindow_PushEventHandler,(self,) + _args, _kwargs)
230 return val
231 def PopupMenuXY(self, *_args, **_kwargs):
232 val = apply(windowsc.wxWindow_PopupMenuXY,(self,) + _args, _kwargs)
233 return val
234 def PopupMenu(self, *_args, **_kwargs):
235 val = apply(windowsc.wxWindow_PopupMenu,(self,) + _args, _kwargs)
236 return val
237 def Raise(self, *_args, **_kwargs):
238 val = apply(windowsc.wxWindow_Raise,(self,) + _args, _kwargs)
239 return val
240 def Refresh(self, *_args, **_kwargs):
241 val = apply(windowsc.wxWindow_Refresh,(self,) + _args, _kwargs)
242 return val
243 def ReleaseMouse(self, *_args, **_kwargs):
244 val = apply(windowsc.wxWindow_ReleaseMouse,(self,) + _args, _kwargs)
245 return val
246 def Reparent(self, *_args, **_kwargs):
247 val = apply(windowsc.wxWindow_Reparent,(self,) + _args, _kwargs)
248 return val
249 def ScreenToClientXY(self, *_args, **_kwargs):
250 val = apply(windowsc.wxWindow_ScreenToClientXY,(self,) + _args, _kwargs)
251 return val
252 def ScreenToClient(self, *_args, **_kwargs):
253 val = apply(windowsc.wxWindow_ScreenToClient,(self,) + _args, _kwargs)
254 if val: val = wxPointPtr(val) ; val.thisown = 1
255 return val
256 def ScrollWindow(self, *_args, **_kwargs):
257 val = apply(windowsc.wxWindow_ScrollWindow,(self,) + _args, _kwargs)
258 return val
259 def SetAcceleratorTable(self, *_args, **_kwargs):
260 val = apply(windowsc.wxWindow_SetAcceleratorTable,(self,) + _args, _kwargs)
261 return val
262 def SetAutoLayout(self, *_args, **_kwargs):
263 val = apply(windowsc.wxWindow_SetAutoLayout,(self,) + _args, _kwargs)
264 return val
265 def SetBackgroundColour(self, *_args, **_kwargs):
266 val = apply(windowsc.wxWindow_SetBackgroundColour,(self,) + _args, _kwargs)
267 return val
268 def SetConstraints(self, *_args, **_kwargs):
269 val = apply(windowsc.wxWindow_SetConstraints,(self,) + _args, _kwargs)
270 return val
271 def SetFocus(self, *_args, **_kwargs):
272 val = apply(windowsc.wxWindow_SetFocus,(self,) + _args, _kwargs)
273 return val
274 def SetFont(self, *_args, **_kwargs):
275 val = apply(windowsc.wxWindow_SetFont,(self,) + _args, _kwargs)
276 return val
277 def SetForegroundColour(self, *_args, **_kwargs):
278 val = apply(windowsc.wxWindow_SetForegroundColour,(self,) + _args, _kwargs)
279 return val
280 def SetId(self, *_args, **_kwargs):
281 val = apply(windowsc.wxWindow_SetId,(self,) + _args, _kwargs)
282 return val
283 def SetName(self, *_args, **_kwargs):
284 val = apply(windowsc.wxWindow_SetName,(self,) + _args, _kwargs)
285 return val
286 def SetScrollbar(self, *_args, **_kwargs):
287 val = apply(windowsc.wxWindow_SetScrollbar,(self,) + _args, _kwargs)
288 return val
289 def SetScrollPos(self, *_args, **_kwargs):
290 val = apply(windowsc.wxWindow_SetScrollPos,(self,) + _args, _kwargs)
291 return val
292 def SetDimensions(self, *_args, **_kwargs):
293 val = apply(windowsc.wxWindow_SetDimensions,(self,) + _args, _kwargs)
294 return val
295 def SetSize(self, *_args, **_kwargs):
296 val = apply(windowsc.wxWindow_SetSize,(self,) + _args, _kwargs)
297 return val
298 def SetPosition(self, *_args, **_kwargs):
299 val = apply(windowsc.wxWindow_SetPosition,(self,) + _args, _kwargs)
300 return val
301 def SetSizeHints(self, *_args, **_kwargs):
302 val = apply(windowsc.wxWindow_SetSizeHints,(self,) + _args, _kwargs)
303 return val
304 def SetClientSizeWH(self, *_args, **_kwargs):
305 val = apply(windowsc.wxWindow_SetClientSizeWH,(self,) + _args, _kwargs)
306 return val
307 def SetClientSize(self, *_args, **_kwargs):
308 val = apply(windowsc.wxWindow_SetClientSize,(self,) + _args, _kwargs)
309 return val
310 def SetCursor(self, *_args, **_kwargs):
311 val = apply(windowsc.wxWindow_SetCursor,(self,) + _args, _kwargs)
312 return val
313 def SetEventHandler(self, *_args, **_kwargs):
314 val = apply(windowsc.wxWindow_SetEventHandler,(self,) + _args, _kwargs)
315 return val
316 def SetTitle(self, *_args, **_kwargs):
317 val = apply(windowsc.wxWindow_SetTitle,(self,) + _args, _kwargs)
318 return val
319 def Show(self, *_args, **_kwargs):
320 val = apply(windowsc.wxWindow_Show,(self,) + _args, _kwargs)
321 return val
322 def TransferDataFromWindow(self, *_args, **_kwargs):
323 val = apply(windowsc.wxWindow_TransferDataFromWindow,(self,) + _args, _kwargs)
324 return val
325 def TransferDataToWindow(self, *_args, **_kwargs):
326 val = apply(windowsc.wxWindow_TransferDataToWindow,(self,) + _args, _kwargs)
327 return val
328 def Validate(self, *_args, **_kwargs):
329 val = apply(windowsc.wxWindow_Validate,(self,) + _args, _kwargs)
330 return val
331 def WarpPointer(self, *_args, **_kwargs):
332 val = apply(windowsc.wxWindow_WarpPointer,(self,) + _args, _kwargs)
333 return val
334 def ConvertDialogPointToPixels(self, *_args, **_kwargs):
335 val = apply(windowsc.wxWindow_ConvertDialogPointToPixels,(self,) + _args, _kwargs)
336 if val: val = wxPointPtr(val) ; val.thisown = 1
337 return val
338 def ConvertDialogSizeToPixels(self, *_args, **_kwargs):
339 val = apply(windowsc.wxWindow_ConvertDialogSizeToPixels,(self,) + _args, _kwargs)
340 if val: val = wxSizePtr(val) ; val.thisown = 1
341 return val
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
345 return val
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
349 return val
350 def ConvertPixelPointToDialog(self, *_args, **_kwargs):
351 val = apply(windowsc.wxWindow_ConvertPixelPointToDialog,(self,) + _args, _kwargs)
352 if val: val = wxPointPtr(val) ; val.thisown = 1
353 return val
354 def ConvertPixelSizeToDialog(self, *_args, **_kwargs):
355 val = apply(windowsc.wxWindow_ConvertPixelSizeToDialog,(self,) + _args, _kwargs)
356 if val: val = wxSizePtr(val) ; val.thisown = 1
357 return val
358 def SetToolTipString(self, *_args, **_kwargs):
359 val = apply(windowsc.wxWindow_SetToolTipString,(self,) + _args, _kwargs)
360 return val
361 def SetToolTip(self, *_args, **_kwargs):
362 val = apply(windowsc.wxWindow_SetToolTip,(self,) + _args, _kwargs)
363 return val
364 def GetToolTip(self, *_args, **_kwargs):
365 val = apply(windowsc.wxWindow_GetToolTip,(self,) + _args, _kwargs)
366 if val: val = wxToolTipPtr(val)
367 return val
368 def __repr__(self):
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)
373 self.thisown = 1
374 wx._StdWindowCallbacks(self)
375
376
377
378
379 class wxPanelPtr(wxWindowPtr):
380 def __init__(self,this):
381 self.this = this
382 self.thisown = 0
383 def InitDialog(self, *_args, **_kwargs):
384 val = apply(windowsc.wxPanel_InitDialog,(self,) + _args, _kwargs)
385 return val
386 def GetDefaultItem(self, *_args, **_kwargs):
387 val = apply(windowsc.wxPanel_GetDefaultItem,(self,) + _args, _kwargs)
388 if val: val = wxButtonPtr(val)
389 return val
390 def SetDefaultItem(self, *_args, **_kwargs):
391 val = apply(windowsc.wxPanel_SetDefaultItem,(self,) + _args, _kwargs)
392 return val
393 def __repr__(self):
394 return "<C wxPanel instance at %s>" % (self.this,)
395
396 def GetDefaultItem(self):
397 import controls
398 val = windowsc.wxPanel_GetDefaultItem(self.this)
399 val = controls.wxButtonPtr(val)
400 return val
401
402 class wxPanel(wxPanelPtr):
403 def __init__(self,*_args,**_kwargs):
404 self.this = apply(windowsc.new_wxPanel,_args,_kwargs)
405 self.thisown = 1
406 wx._StdWindowCallbacks(self)
407
408
409
410
411 class wxDialogPtr(wxPanelPtr):
412 def __init__(self,this):
413 self.this = this
414 self.thisown = 0
415 def Centre(self, *_args, **_kwargs):
416 val = apply(windowsc.wxDialog_Centre,(self,) + _args, _kwargs)
417 return val
418 def EndModal(self, *_args, **_kwargs):
419 val = apply(windowsc.wxDialog_EndModal,(self,) + _args, _kwargs)
420 return val
421 def GetTitle(self, *_args, **_kwargs):
422 val = apply(windowsc.wxDialog_GetTitle,(self,) + _args, _kwargs)
423 return val
424 def Iconize(self, *_args, **_kwargs):
425 val = apply(windowsc.wxDialog_Iconize,(self,) + _args, _kwargs)
426 return val
427 def IsIconized(self, *_args, **_kwargs):
428 val = apply(windowsc.wxDialog_IsIconized,(self,) + _args, _kwargs)
429 return val
430 def SetModal(self, *_args, **_kwargs):
431 val = apply(windowsc.wxDialog_SetModal,(self,) + _args, _kwargs)
432 return val
433 def IsModal(self, *_args, **_kwargs):
434 val = apply(windowsc.wxDialog_IsModal,(self,) + _args, _kwargs)
435 return val
436 def SetTitle(self, *_args, **_kwargs):
437 val = apply(windowsc.wxDialog_SetTitle,(self,) + _args, _kwargs)
438 return val
439 def Show(self, *_args, **_kwargs):
440 val = apply(windowsc.wxDialog_Show,(self,) + _args, _kwargs)
441 return val
442 def ShowModal(self, *_args, **_kwargs):
443 val = apply(windowsc.wxDialog_ShowModal,(self,) + _args, _kwargs)
444 return val
445 def GetReturnCode(self, *_args, **_kwargs):
446 val = apply(windowsc.wxDialog_GetReturnCode,(self,) + _args, _kwargs)
447 return val
448 def SetReturnCode(self, *_args, **_kwargs):
449 val = apply(windowsc.wxDialog_SetReturnCode,(self,) + _args, _kwargs)
450 return val
451 def __repr__(self):
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)
456 self.thisown = 1
457 wx._StdDialogCallbacks(self)
458
459
460
461
462 class wxScrolledWindowPtr(wxPanelPtr):
463 def __init__(self,this):
464 self.this = this
465 self.thisown = 0
466 def EnableScrolling(self, *_args, **_kwargs):
467 val = apply(windowsc.wxScrolledWindow_EnableScrolling,(self,) + _args, _kwargs)
468 return val
469 def GetScrollPixelsPerUnit(self, *_args, **_kwargs):
470 val = apply(windowsc.wxScrolledWindow_GetScrollPixelsPerUnit,(self,) + _args, _kwargs)
471 return val
472 def GetVirtualSize(self, *_args, **_kwargs):
473 val = apply(windowsc.wxScrolledWindow_GetVirtualSize,(self,) + _args, _kwargs)
474 return val
475 def IsRetained(self, *_args, **_kwargs):
476 val = apply(windowsc.wxScrolledWindow_IsRetained,(self,) + _args, _kwargs)
477 return val
478 def PrepareDC(self, *_args, **_kwargs):
479 val = apply(windowsc.wxScrolledWindow_PrepareDC,(self,) + _args, _kwargs)
480 return val
481 def Scroll(self, *_args, **_kwargs):
482 val = apply(windowsc.wxScrolledWindow_Scroll,(self,) + _args, _kwargs)
483 return val
484 def SetScrollbars(self, *_args, **_kwargs):
485 val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self,) + _args, _kwargs)
486 return val
487 def ViewStart(self, *_args, **_kwargs):
488 val = apply(windowsc.wxScrolledWindow_ViewStart,(self,) + _args, _kwargs)
489 return val
490 def __repr__(self):
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)
495 self.thisown = 1
496 wx._StdWindowCallbacks(self)
497 wx._StdOnScrollCallbacks(self)
498
499
500
501
502 class wxMenuPtr(wxEvtHandlerPtr):
503 def __init__(self,this):
504 self.this = this
505 self.thisown = 0
506 def Append(self, *_args, **_kwargs):
507 val = apply(windowsc.wxMenu_Append,(self,) + _args, _kwargs)
508 return val
509 def AppendMenu(self, *_args, **_kwargs):
510 val = apply(windowsc.wxMenu_AppendMenu,(self,) + _args, _kwargs)
511 return val
512 def AppendItem(self, *_args, **_kwargs):
513 val = apply(windowsc.wxMenu_AppendItem,(self,) + _args, _kwargs)
514 return val
515 def AppendSeparator(self, *_args, **_kwargs):
516 val = apply(windowsc.wxMenu_AppendSeparator,(self,) + _args, _kwargs)
517 return val
518 def Break(self, *_args, **_kwargs):
519 val = apply(windowsc.wxMenu_Break,(self,) + _args, _kwargs)
520 return val
521 def Check(self, *_args, **_kwargs):
522 val = apply(windowsc.wxMenu_Check,(self,) + _args, _kwargs)
523 return val
524 def Enable(self, *_args, **_kwargs):
525 val = apply(windowsc.wxMenu_Enable,(self,) + _args, _kwargs)
526 return val
527 def FindItem(self, *_args, **_kwargs):
528 val = apply(windowsc.wxMenu_FindItem,(self,) + _args, _kwargs)
529 return val
530 def GetTitle(self, *_args, **_kwargs):
531 val = apply(windowsc.wxMenu_GetTitle,(self,) + _args, _kwargs)
532 return val
533 def SetTitle(self, *_args, **_kwargs):
534 val = apply(windowsc.wxMenu_SetTitle,(self,) + _args, _kwargs)
535 return val
536 def FindItemForId(self, *_args, **_kwargs):
537 val = apply(windowsc.wxMenu_FindItemForId,(self,) + _args, _kwargs)
538 if val: val = wxMenuItemPtr(val)
539 return val
540 def GetHelpString(self, *_args, **_kwargs):
541 val = apply(windowsc.wxMenu_GetHelpString,(self,) + _args, _kwargs)
542 return val
543 def GetLabel(self, *_args, **_kwargs):
544 val = apply(windowsc.wxMenu_GetLabel,(self,) + _args, _kwargs)
545 return val
546 def SetHelpString(self, *_args, **_kwargs):
547 val = apply(windowsc.wxMenu_SetHelpString,(self,) + _args, _kwargs)
548 return val
549 def IsChecked(self, *_args, **_kwargs):
550 val = apply(windowsc.wxMenu_IsChecked,(self,) + _args, _kwargs)
551 return val
552 def IsEnabled(self, *_args, **_kwargs):
553 val = apply(windowsc.wxMenu_IsEnabled,(self,) + _args, _kwargs)
554 return val
555 def SetLabel(self, *_args, **_kwargs):
556 val = apply(windowsc.wxMenu_SetLabel,(self,) + _args, _kwargs)
557 return val
558 def UpdateUI(self, *_args, **_kwargs):
559 val = apply(windowsc.wxMenu_UpdateUI,(self,) + _args, _kwargs)
560 return val
561 def Destroy(self, *_args, **_kwargs):
562 val = apply(windowsc.wxMenu_Destroy,(self,) + _args, _kwargs)
563 return val
564 def __repr__(self):
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)
569 self.thisown = 1
570
571
572
573
574 class wxMenuBarPtr(wxEvtHandlerPtr):
575 def __init__(self,this):
576 self.this = this
577 self.thisown = 0
578 def Append(self, *_args, **_kwargs):
579 val = apply(windowsc.wxMenuBar_Append,(self,) + _args, _kwargs)
580 return val
581 def Check(self, *_args, **_kwargs):
582 val = apply(windowsc.wxMenuBar_Check,(self,) + _args, _kwargs)
583 return val
584 def Checked(self, *_args, **_kwargs):
585 val = apply(windowsc.wxMenuBar_Checked,(self,) + _args, _kwargs)
586 return val
587 def Enable(self, *_args, **_kwargs):
588 val = apply(windowsc.wxMenuBar_Enable,(self,) + _args, _kwargs)
589 return val
590 def Enabled(self, *_args, **_kwargs):
591 val = apply(windowsc.wxMenuBar_Enabled,(self,) + _args, _kwargs)
592 return val
593 def FindMenuItem(self, *_args, **_kwargs):
594 val = apply(windowsc.wxMenuBar_FindMenuItem,(self,) + _args, _kwargs)
595 return val
596 def FindItemForId(self, *_args, **_kwargs):
597 val = apply(windowsc.wxMenuBar_FindItemForId,(self,) + _args, _kwargs)
598 if val: val = wxMenuItemPtr(val)
599 return val
600 def SetLabel(self, *_args, **_kwargs):
601 val = apply(windowsc.wxMenuBar_SetLabel,(self,) + _args, _kwargs)
602 return val
603 def EnableTop(self, *_args, **_kwargs):
604 val = apply(windowsc.wxMenuBar_EnableTop,(self,) + _args, _kwargs)
605 return val
606 def GetHelpString(self, *_args, **_kwargs):
607 val = apply(windowsc.wxMenuBar_GetHelpString,(self,) + _args, _kwargs)
608 return val
609 def GetLabel(self, *_args, **_kwargs):
610 val = apply(windowsc.wxMenuBar_GetLabel,(self,) + _args, _kwargs)
611 return val
612 def SetHelpString(self, *_args, **_kwargs):
613 val = apply(windowsc.wxMenuBar_SetHelpString,(self,) + _args, _kwargs)
614 return val
615 def GetLabelTop(self, *_args, **_kwargs):
616 val = apply(windowsc.wxMenuBar_GetLabelTop,(self,) + _args, _kwargs)
617 return val
618 def SetLabelTop(self, *_args, **_kwargs):
619 val = apply(windowsc.wxMenuBar_SetLabelTop,(self,) + _args, _kwargs)
620 return val
621 def GetMenuCount(self, *_args, **_kwargs):
622 val = apply(windowsc.wxMenuBar_GetMenuCount,(self,) + _args, _kwargs)
623 return val
624 def GetMenu(self, *_args, **_kwargs):
625 val = apply(windowsc.wxMenuBar_GetMenu,(self,) + _args, _kwargs)
626 if val: val = wxMenuPtr(val)
627 return val
628 def __repr__(self):
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)
633 self.thisown = 1
634
635
636
637
638 class wxMenuItemPtr :
639 def __init__(self,this):
640 self.this = this
641 self.thisown = 0
642 def IsSeparator(self, *_args, **_kwargs):
643 val = apply(windowsc.wxMenuItem_IsSeparator,(self,) + _args, _kwargs)
644 return val
645 def IsEnabled(self, *_args, **_kwargs):
646 val = apply(windowsc.wxMenuItem_IsEnabled,(self,) + _args, _kwargs)
647 return val
648 def IsChecked(self, *_args, **_kwargs):
649 val = apply(windowsc.wxMenuItem_IsChecked,(self,) + _args, _kwargs)
650 return val
651 def IsCheckable(self, *_args, **_kwargs):
652 val = apply(windowsc.wxMenuItem_IsCheckable,(self,) + _args, _kwargs)
653 return val
654 def GetId(self, *_args, **_kwargs):
655 val = apply(windowsc.wxMenuItem_GetId,(self,) + _args, _kwargs)
656 return val
657 def GetSubMenu(self, *_args, **_kwargs):
658 val = apply(windowsc.wxMenuItem_GetSubMenu,(self,) + _args, _kwargs)
659 if val: val = wxMenuPtr(val)
660 return val
661 def SetName(self, *_args, **_kwargs):
662 val = apply(windowsc.wxMenuItem_SetName,(self,) + _args, _kwargs)
663 return val
664 def GetName(self, *_args, **_kwargs):
665 val = apply(windowsc.wxMenuItem_GetName,(self,) + _args, _kwargs)
666 return val
667 def GetHelp(self, *_args, **_kwargs):
668 val = apply(windowsc.wxMenuItem_GetHelp,(self,) + _args, _kwargs)
669 return val
670 def SetHelp(self, *_args, **_kwargs):
671 val = apply(windowsc.wxMenuItem_SetHelp,(self,) + _args, _kwargs)
672 return val
673 def Enable(self, *_args, **_kwargs):
674 val = apply(windowsc.wxMenuItem_Enable,(self,) + _args, _kwargs)
675 return val
676 def Check(self, *_args, **_kwargs):
677 val = apply(windowsc.wxMenuItem_Check,(self,) + _args, _kwargs)
678 return val
679 def __repr__(self):
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)
684 self.thisown = 1
685
686
687
688
689
690
691 #-------------- FUNCTION WRAPPERS ------------------
692
693
694
695 #-------------- VARIABLE WRAPPERS ------------------
696