]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/windows2.py
backport wxRegConfig enumeration fix
[wxWidgets.git] / wxPython / src / msw / windows2.py
1 # This file was created automatically by SWIG.
2 import windows2c
3
4 from misc import *
5
6 from gdi import *
7
8 from fonts import *
9
10 from windows import *
11
12 from clip_dnd import *
13
14 from controls import *
15
16 from events import *
17 import wx
18
19 # wxNotebook events
20 def EVT_NOTEBOOK_PAGE_CHANGED(win, id, func):
21 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED, func)
22
23 def EVT_NOTEBOOK_PAGE_CHANGING(win, id, func):
24 win.Connect(id, -1, wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING, func)
25
26
27 #wxListbook events
28 def EVT_LISTBOOK_PAGE_CHANGED(win, id, func):
29 win.Connect(id, -1, wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED, func)
30
31 def EVT_LISTBOOK_PAGE_CHANGING(win, id, func):
32 win.Connect(id, -1, wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING, func)
33
34
35 def EVT_TASKBAR_MOVE(win, func):
36 win.Connect(-1, -1, wxEVT_TASKBAR_MOVE, func)
37
38 def EVT_TASKBAR_LEFT_DOWN(win, func):
39 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DOWN, func)
40
41 def EVT_TASKBAR_LEFT_UP(win, func):
42 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_UP, func)
43
44 def EVT_TASKBAR_RIGHT_DOWN(win, func):
45 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DOWN, func)
46
47 def EVT_TASKBAR_RIGHT_UP(win, func):
48 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_UP, func)
49
50 def EVT_TASKBAR_LEFT_DCLICK(win, func):
51 win.Connect(-1, -1, wxEVT_TASKBAR_LEFT_DCLICK, func)
52
53 def EVT_TASKBAR_RIGHT_DCLICK(win, func):
54 win.Connect(-1, -1, wxEVT_TASKBAR_RIGHT_DCLICK, func)
55
56 class wxBookCtrlPtr(wxControlPtr):
57 def __init__(self,this):
58 self.this = this
59 self.thisown = 0
60 def GetPageCount(self, *_args, **_kwargs):
61 val = windows2c.wxBookCtrl_GetPageCount(self, *_args, **_kwargs)
62 return val
63 def GetPage(self, *_args, **_kwargs):
64 val = windows2c.wxBookCtrl_GetPage(self, *_args, **_kwargs)
65 return val
66 def GetSelection(self, *_args, **_kwargs):
67 val = windows2c.wxBookCtrl_GetSelection(self, *_args, **_kwargs)
68 return val
69 def SetPageText(self, *_args, **_kwargs):
70 val = windows2c.wxBookCtrl_SetPageText(self, *_args, **_kwargs)
71 return val
72 def GetPageText(self, *_args, **_kwargs):
73 val = windows2c.wxBookCtrl_GetPageText(self, *_args, **_kwargs)
74 return val
75 def SetImageList(self, *_args, **_kwargs):
76 val = windows2c.wxBookCtrl_SetImageList(self, *_args, **_kwargs)
77 return val
78 def AssignImageList(self, *_args, **_kwargs):
79 val = windows2c.wxBookCtrl_AssignImageList(self, *_args, **_kwargs)
80 _args[0].thisown = 0
81 return val
82 def GetImageList(self, *_args, **_kwargs):
83 val = windows2c.wxBookCtrl_GetImageList(self, *_args, **_kwargs)
84 return val
85 def GetPageImage(self, *_args, **_kwargs):
86 val = windows2c.wxBookCtrl_GetPageImage(self, *_args, **_kwargs)
87 return val
88 def SetPageImage(self, *_args, **_kwargs):
89 val = windows2c.wxBookCtrl_SetPageImage(self, *_args, **_kwargs)
90 return val
91 def SetPageSize(self, *_args, **_kwargs):
92 val = windows2c.wxBookCtrl_SetPageSize(self, *_args, **_kwargs)
93 return val
94 def CalcSizeFromPage(self, *_args, **_kwargs):
95 val = windows2c.wxBookCtrl_CalcSizeFromPage(self, *_args, **_kwargs)
96 if val: val = wxSizePtr(val) ; val.thisown = 1
97 return val
98 def DeletePage(self, *_args, **_kwargs):
99 val = windows2c.wxBookCtrl_DeletePage(self, *_args, **_kwargs)
100 return val
101 def RemovePage(self, *_args, **_kwargs):
102 val = windows2c.wxBookCtrl_RemovePage(self, *_args, **_kwargs)
103 return val
104 def DeleteAllPages(self, *_args, **_kwargs):
105 val = windows2c.wxBookCtrl_DeleteAllPages(self, *_args, **_kwargs)
106 return val
107 def AddPage(self, *_args, **_kwargs):
108 val = windows2c.wxBookCtrl_AddPage(self, *_args, **_kwargs)
109 return val
110 def InsertPage(self, *_args, **_kwargs):
111 val = windows2c.wxBookCtrl_InsertPage(self, *_args, **_kwargs)
112 return val
113 def SetSelection(self, *_args, **_kwargs):
114 val = windows2c.wxBookCtrl_SetSelection(self, *_args, **_kwargs)
115 return val
116 def AdvanceSelection(self, *_args, **_kwargs):
117 val = windows2c.wxBookCtrl_AdvanceSelection(self, *_args, **_kwargs)
118 return val
119 def __repr__(self):
120 return "<%s.%s instance; proxy of C++ wxBookCtrl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
121 class wxBookCtrl(wxBookCtrlPtr):
122 def __init__(self,this):
123 self.this = this
124
125
126
127
128 class wxBookCtrlEventPtr(wxNotifyEventPtr):
129 def __init__(self,this):
130 self.this = this
131 self.thisown = 0
132 def GetSelection(self, *_args, **_kwargs):
133 val = windows2c.wxBookCtrlEvent_GetSelection(self, *_args, **_kwargs)
134 return val
135 def SetSelection(self, *_args, **_kwargs):
136 val = windows2c.wxBookCtrlEvent_SetSelection(self, *_args, **_kwargs)
137 return val
138 def GetOldSelection(self, *_args, **_kwargs):
139 val = windows2c.wxBookCtrlEvent_GetOldSelection(self, *_args, **_kwargs)
140 return val
141 def SetOldSelection(self, *_args, **_kwargs):
142 val = windows2c.wxBookCtrlEvent_SetOldSelection(self, *_args, **_kwargs)
143 return val
144 def __repr__(self):
145 return "<%s.%s instance; proxy of C++ wxBookCtrlEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
146 class wxBookCtrlEvent(wxBookCtrlEventPtr):
147 def __init__(self,*_args,**_kwargs):
148 self.this = windows2c.new_wxBookCtrlEvent(*_args,**_kwargs)
149 self.thisown = 1
150
151
152
153
154 class wxNotebookPtr(wxBookCtrlPtr):
155 def __init__(self,this):
156 self.this = this
157 self.thisown = 0
158 def Create(self, *_args, **_kwargs):
159 val = windows2c.wxNotebook_Create(self, *_args, **_kwargs)
160 return val
161 def GetRowCount(self, *_args, **_kwargs):
162 val = windows2c.wxNotebook_GetRowCount(self, *_args, **_kwargs)
163 return val
164 def SetPadding(self, *_args, **_kwargs):
165 val = windows2c.wxNotebook_SetPadding(self, *_args, **_kwargs)
166 return val
167 def SetTabSize(self, *_args, **_kwargs):
168 val = windows2c.wxNotebook_SetTabSize(self, *_args, **_kwargs)
169 return val
170 def HitTest(self, *_args, **_kwargs):
171 val = windows2c.wxNotebook_HitTest(self, *_args, **_kwargs)
172 return val
173 def CalcSizeFromPage(self, *_args, **_kwargs):
174 val = windows2c.wxNotebook_CalcSizeFromPage(self, *_args, **_kwargs)
175 if val: val = wxSizePtr(val) ; val.thisown = 1
176 return val
177 def ApplyThemeBackground(self, *_args, **_kwargs):
178 val = windows2c.wxNotebook_ApplyThemeBackground(self, *_args, **_kwargs)
179 return val
180 def __repr__(self):
181 return "<%s.%s instance; proxy of C++ wxNotebook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
182 class wxNotebook(wxNotebookPtr):
183 def __init__(self,*_args,**_kwargs):
184 self.this = windows2c.new_wxNotebook(*_args,**_kwargs)
185 self.thisown = 1
186 self._setOORInfo(self)
187
188
189
190 def wxPreNotebook(*_args,**_kwargs):
191 val = wxNotebookPtr(windows2c.new_wxPreNotebook(*_args,**_kwargs))
192 val.thisown = 1
193 val._setOORInfo(val)
194 return val
195
196
197 class wxNotebookEventPtr(wxNotifyEventPtr):
198 def __init__(self,this):
199 self.this = this
200 self.thisown = 0
201 def GetSelection(self, *_args, **_kwargs):
202 val = windows2c.wxNotebookEvent_GetSelection(self, *_args, **_kwargs)
203 return val
204 def GetOldSelection(self, *_args, **_kwargs):
205 val = windows2c.wxNotebookEvent_GetOldSelection(self, *_args, **_kwargs)
206 return val
207 def SetOldSelection(self, *_args, **_kwargs):
208 val = windows2c.wxNotebookEvent_SetOldSelection(self, *_args, **_kwargs)
209 return val
210 def SetSelection(self, *_args, **_kwargs):
211 val = windows2c.wxNotebookEvent_SetSelection(self, *_args, **_kwargs)
212 return val
213 def __repr__(self):
214 return "<%s.%s instance; proxy of C++ wxNotebookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
215 class wxNotebookEvent(wxNotebookEventPtr):
216 def __init__(self,*_args,**_kwargs):
217 self.this = windows2c.new_wxNotebookEvent(*_args,**_kwargs)
218 self.thisown = 1
219
220
221
222
223 class wxListbookPtr(wxBookCtrlPtr):
224 def __init__(self,this):
225 self.this = this
226 self.thisown = 0
227 def Create(self, *_args, **_kwargs):
228 val = windows2c.wxListbook_Create(self, *_args, **_kwargs)
229 return val
230 def IsVertical(self, *_args, **_kwargs):
231 val = windows2c.wxListbook_IsVertical(self, *_args, **_kwargs)
232 return val
233 def __repr__(self):
234 return "<%s.%s instance; proxy of C++ wxListbook instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
235 class wxListbook(wxListbookPtr):
236 def __init__(self,*_args,**_kwargs):
237 self.this = windows2c.new_wxListbook(*_args,**_kwargs)
238 self.thisown = 1
239 self._setOORInfo(self)
240
241
242
243 def wxPreListbook(*_args,**_kwargs):
244 val = wxListbookPtr(windows2c.new_wxPreListbook(*_args,**_kwargs))
245 val.thisown = 1
246 val._setOORInfo(val)
247 return val
248
249
250 class wxListbookEventPtr(wxBookCtrlEventPtr):
251 def __init__(self,this):
252 self.this = this
253 self.thisown = 0
254 def __repr__(self):
255 return "<%s.%s instance; proxy of C++ wxListbookEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
256 class wxListbookEvent(wxListbookEventPtr):
257 def __init__(self,*_args,**_kwargs):
258 self.this = windows2c.new_wxListbookEvent(*_args,**_kwargs)
259 self.thisown = 1
260
261
262
263
264 class wxSplitterEventPtr(wxNotifyEventPtr):
265 def __init__(self,this):
266 self.this = this
267 self.thisown = 0
268 def GetSashPosition(self, *_args, **_kwargs):
269 val = windows2c.wxSplitterEvent_GetSashPosition(self, *_args, **_kwargs)
270 return val
271 def GetX(self, *_args, **_kwargs):
272 val = windows2c.wxSplitterEvent_GetX(self, *_args, **_kwargs)
273 return val
274 def GetY(self, *_args, **_kwargs):
275 val = windows2c.wxSplitterEvent_GetY(self, *_args, **_kwargs)
276 return val
277 def GetWindowBeingRemoved(self, *_args, **_kwargs):
278 val = windows2c.wxSplitterEvent_GetWindowBeingRemoved(self, *_args, **_kwargs)
279 return val
280 def SetSashPosition(self, *_args, **_kwargs):
281 val = windows2c.wxSplitterEvent_SetSashPosition(self, *_args, **_kwargs)
282 return val
283 def __repr__(self):
284 return "<%s.%s instance; proxy of C++ wxSplitterEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
285 class wxSplitterEvent(wxSplitterEventPtr):
286 def __init__(self,*_args,**_kwargs):
287 self.this = windows2c.new_wxSplitterEvent(*_args,**_kwargs)
288 self.thisown = 1
289
290
291
292
293 class wxSplitterWindowPtr(wxWindowPtr):
294 def __init__(self,this):
295 self.this = this
296 self.thisown = 0
297 def Create(self, *_args, **_kwargs):
298 val = windows2c.wxSplitterWindow_Create(self, *_args, **_kwargs)
299 return val
300 def GetWindow1(self, *_args, **_kwargs):
301 val = windows2c.wxSplitterWindow_GetWindow1(self, *_args, **_kwargs)
302 return val
303 def GetWindow2(self, *_args, **_kwargs):
304 val = windows2c.wxSplitterWindow_GetWindow2(self, *_args, **_kwargs)
305 return val
306 def SetSplitMode(self, *_args, **_kwargs):
307 val = windows2c.wxSplitterWindow_SetSplitMode(self, *_args, **_kwargs)
308 return val
309 def GetSplitMode(self, *_args, **_kwargs):
310 val = windows2c.wxSplitterWindow_GetSplitMode(self, *_args, **_kwargs)
311 return val
312 def Initialize(self, *_args, **_kwargs):
313 val = windows2c.wxSplitterWindow_Initialize(self, *_args, **_kwargs)
314 return val
315 def SplitVertically(self, *_args, **_kwargs):
316 val = windows2c.wxSplitterWindow_SplitVertically(self, *_args, **_kwargs)
317 return val
318 def SplitHorizontally(self, *_args, **_kwargs):
319 val = windows2c.wxSplitterWindow_SplitHorizontally(self, *_args, **_kwargs)
320 return val
321 def Unsplit(self, *_args, **_kwargs):
322 val = windows2c.wxSplitterWindow_Unsplit(self, *_args, **_kwargs)
323 return val
324 def ReplaceWindow(self, *_args, **_kwargs):
325 val = windows2c.wxSplitterWindow_ReplaceWindow(self, *_args, **_kwargs)
326 return val
327 def IsSplit(self, *_args, **_kwargs):
328 val = windows2c.wxSplitterWindow_IsSplit(self, *_args, **_kwargs)
329 return val
330 def SetSashSize(self, *_args, **_kwargs):
331 val = windows2c.wxSplitterWindow_SetSashSize(self, *_args, **_kwargs)
332 return val
333 def SetBorderSize(self, *_args, **_kwargs):
334 val = windows2c.wxSplitterWindow_SetBorderSize(self, *_args, **_kwargs)
335 return val
336 def GetSashSize(self, *_args, **_kwargs):
337 val = windows2c.wxSplitterWindow_GetSashSize(self, *_args, **_kwargs)
338 return val
339 def GetBorderSize(self, *_args, **_kwargs):
340 val = windows2c.wxSplitterWindow_GetBorderSize(self, *_args, **_kwargs)
341 return val
342 def SetSashPosition(self, *_args, **_kwargs):
343 val = windows2c.wxSplitterWindow_SetSashPosition(self, *_args, **_kwargs)
344 return val
345 def GetSashPosition(self, *_args, **_kwargs):
346 val = windows2c.wxSplitterWindow_GetSashPosition(self, *_args, **_kwargs)
347 return val
348 def SetMinimumPaneSize(self, *_args, **_kwargs):
349 val = windows2c.wxSplitterWindow_SetMinimumPaneSize(self, *_args, **_kwargs)
350 return val
351 def GetMinimumPaneSize(self, *_args, **_kwargs):
352 val = windows2c.wxSplitterWindow_GetMinimumPaneSize(self, *_args, **_kwargs)
353 return val
354 def SizeWindows(self, *_args, **_kwargs):
355 val = windows2c.wxSplitterWindow_SizeWindows(self, *_args, **_kwargs)
356 return val
357 def SetNeedUpdating(self, *_args, **_kwargs):
358 val = windows2c.wxSplitterWindow_SetNeedUpdating(self, *_args, **_kwargs)
359 return val
360 def GetNeedUpdating(self, *_args, **_kwargs):
361 val = windows2c.wxSplitterWindow_GetNeedUpdating(self, *_args, **_kwargs)
362 return val
363 def __repr__(self):
364 return "<%s.%s instance; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
365 class wxSplitterWindow(wxSplitterWindowPtr):
366 def __init__(self,*_args,**_kwargs):
367 self.this = windows2c.new_wxSplitterWindow(*_args,**_kwargs)
368 self.thisown = 1
369 self._setOORInfo(self)
370
371
372
373 def wxPreSplitterWindow(*_args,**_kwargs):
374 val = wxSplitterWindowPtr(windows2c.new_wxPreSplitterWindow(*_args,**_kwargs))
375 val.thisown = 1
376 val._setOORInfo(val)
377 return val
378
379
380 class wxTaskBarIconEventPtr(wxEventPtr):
381 def __init__(self,this):
382 self.this = this
383 self.thisown = 0
384 def __repr__(self):
385 return "<%s.%s instance; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
386 class wxTaskBarIconEvent(wxTaskBarIconEventPtr):
387 def __init__(self,*_args,**_kwargs):
388 self.this = windows2c.new_wxTaskBarIconEvent(*_args,**_kwargs)
389 self.thisown = 1
390
391
392
393
394 class wxTaskBarIconPtr(wxEvtHandlerPtr):
395 def __init__(self,this):
396 self.this = this
397 self.thisown = 0
398 def __del__(self, delfunc=windows2c.delete_wxTaskBarIcon):
399 if self.thisown == 1:
400 try:
401 delfunc(self)
402 except:
403 pass
404 def SetIcon(self, *_args, **_kwargs):
405 val = windows2c.wxTaskBarIcon_SetIcon(self, *_args, **_kwargs)
406 return val
407 def RemoveIcon(self, *_args, **_kwargs):
408 val = windows2c.wxTaskBarIcon_RemoveIcon(self, *_args, **_kwargs)
409 return val
410 def PopupMenu(self, *_args, **_kwargs):
411 val = windows2c.wxTaskBarIcon_PopupMenu(self, *_args, **_kwargs)
412 return val
413 def IsIconInstalled(self, *_args, **_kwargs):
414 val = windows2c.wxTaskBarIcon_IsIconInstalled(self, *_args, **_kwargs)
415 return val
416 def IsOK(self, *_args, **_kwargs):
417 val = windows2c.wxTaskBarIcon_IsOK(self, *_args, **_kwargs)
418 return val
419 def __repr__(self):
420 return "<%s.%s instance; proxy of C++ wxTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
421 class wxTaskBarIcon(wxTaskBarIconPtr):
422 def __init__(self,*_args,**_kwargs):
423 self.this = windows2c.new_wxTaskBarIcon(*_args,**_kwargs)
424 self.thisown = 1
425 wx._checkForCallback(self, 'OnMouseMove', wxEVT_TASKBAR_MOVE)
426 wx._checkForCallback(self, 'OnLButtonDown', wxEVT_TASKBAR_LEFT_DOWN)
427 wx._checkForCallback(self, 'OnLButtonUp', wxEVT_TASKBAR_LEFT_UP)
428 wx._checkForCallback(self, 'OnRButtonDown', wxEVT_TASKBAR_RIGHT_DOWN)
429 wx._checkForCallback(self, 'OnRButtonUp', wxEVT_TASKBAR_RIGHT_UP)
430 wx._checkForCallback(self, 'OnLButtonDClick',wxEVT_TASKBAR_LEFT_DCLICK)
431 wx._checkForCallback(self, 'OnRButtonDClick',wxEVT_TASKBAR_RIGHT_DCLICK)
432
433
434
435
436 class wxPyWindowPtr(wxWindowPtr):
437 def __init__(self,this):
438 self.this = this
439 self.thisown = 0
440 def _setCallbackInfo(self, *_args, **_kwargs):
441 val = windows2c.wxPyWindow__setCallbackInfo(self, *_args, **_kwargs)
442 return val
443 def base_DoMoveWindow(self, *_args, **_kwargs):
444 val = windows2c.wxPyWindow_base_DoMoveWindow(self, *_args, **_kwargs)
445 return val
446 def base_DoSetSize(self, *_args, **_kwargs):
447 val = windows2c.wxPyWindow_base_DoSetSize(self, *_args, **_kwargs)
448 return val
449 def base_DoSetClientSize(self, *_args, **_kwargs):
450 val = windows2c.wxPyWindow_base_DoSetClientSize(self, *_args, **_kwargs)
451 return val
452 def base_DoSetVirtualSize(self, *_args, **_kwargs):
453 val = windows2c.wxPyWindow_base_DoSetVirtualSize(self, *_args, **_kwargs)
454 return val
455 def base_DoGetSize(self, *_args, **_kwargs):
456 val = windows2c.wxPyWindow_base_DoGetSize(self, *_args, **_kwargs)
457 return val
458 def base_DoGetClientSize(self, *_args, **_kwargs):
459 val = windows2c.wxPyWindow_base_DoGetClientSize(self, *_args, **_kwargs)
460 return val
461 def base_DoGetPosition(self, *_args, **_kwargs):
462 val = windows2c.wxPyWindow_base_DoGetPosition(self, *_args, **_kwargs)
463 return val
464 def base_DoGetVirtualSize(self, *_args, **_kwargs):
465 val = windows2c.wxPyWindow_base_DoGetVirtualSize(self, *_args, **_kwargs)
466 if val: val = wxSizePtr(val) ; val.thisown = 1
467 return val
468 def base_DoGetBestSize(self, *_args, **_kwargs):
469 val = windows2c.wxPyWindow_base_DoGetBestSize(self, *_args, **_kwargs)
470 if val: val = wxSizePtr(val) ; val.thisown = 1
471 return val
472 def base_InitDialog(self, *_args, **_kwargs):
473 val = windows2c.wxPyWindow_base_InitDialog(self, *_args, **_kwargs)
474 return val
475 def base_TransferDataToWindow(self, *_args, **_kwargs):
476 val = windows2c.wxPyWindow_base_TransferDataToWindow(self, *_args, **_kwargs)
477 return val
478 def base_TransferDataFromWindow(self, *_args, **_kwargs):
479 val = windows2c.wxPyWindow_base_TransferDataFromWindow(self, *_args, **_kwargs)
480 return val
481 def base_Validate(self, *_args, **_kwargs):
482 val = windows2c.wxPyWindow_base_Validate(self, *_args, **_kwargs)
483 return val
484 def base_AcceptsFocus(self, *_args, **_kwargs):
485 val = windows2c.wxPyWindow_base_AcceptsFocus(self, *_args, **_kwargs)
486 return val
487 def base_AcceptsFocusFromKeyboard(self, *_args, **_kwargs):
488 val = windows2c.wxPyWindow_base_AcceptsFocusFromKeyboard(self, *_args, **_kwargs)
489 return val
490 def base_GetMaxSize(self, *_args, **_kwargs):
491 val = windows2c.wxPyWindow_base_GetMaxSize(self, *_args, **_kwargs)
492 if val: val = wxSizePtr(val) ; val.thisown = 1
493 return val
494 def base_AddChild(self, *_args, **_kwargs):
495 val = windows2c.wxPyWindow_base_AddChild(self, *_args, **_kwargs)
496 return val
497 def base_RemoveChild(self, *_args, **_kwargs):
498 val = windows2c.wxPyWindow_base_RemoveChild(self, *_args, **_kwargs)
499 return val
500 def __repr__(self):
501 return "<%s.%s instance; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
502 class wxPyWindow(wxPyWindowPtr):
503 def __init__(self,*_args,**_kwargs):
504 self.this = windows2c.new_wxPyWindow(*_args,**_kwargs)
505 self.thisown = 1
506 self._setCallbackInfo(self, wxPyWindow)
507 self._setOORInfo(self)
508
509
510
511
512 class wxPyControlPtr(wxControlPtr):
513 def __init__(self,this):
514 self.this = this
515 self.thisown = 0
516 def _setCallbackInfo(self, *_args, **_kwargs):
517 val = windows2c.wxPyControl__setCallbackInfo(self, *_args, **_kwargs)
518 return val
519 def base_DoMoveWindow(self, *_args, **_kwargs):
520 val = windows2c.wxPyControl_base_DoMoveWindow(self, *_args, **_kwargs)
521 return val
522 def base_DoSetSize(self, *_args, **_kwargs):
523 val = windows2c.wxPyControl_base_DoSetSize(self, *_args, **_kwargs)
524 return val
525 def base_DoSetClientSize(self, *_args, **_kwargs):
526 val = windows2c.wxPyControl_base_DoSetClientSize(self, *_args, **_kwargs)
527 return val
528 def base_DoSetVirtualSize(self, *_args, **_kwargs):
529 val = windows2c.wxPyControl_base_DoSetVirtualSize(self, *_args, **_kwargs)
530 return val
531 def base_DoGetSize(self, *_args, **_kwargs):
532 val = windows2c.wxPyControl_base_DoGetSize(self, *_args, **_kwargs)
533 return val
534 def base_DoGetClientSize(self, *_args, **_kwargs):
535 val = windows2c.wxPyControl_base_DoGetClientSize(self, *_args, **_kwargs)
536 return val
537 def base_DoGetPosition(self, *_args, **_kwargs):
538 val = windows2c.wxPyControl_base_DoGetPosition(self, *_args, **_kwargs)
539 return val
540 def base_DoGetVirtualSize(self, *_args, **_kwargs):
541 val = windows2c.wxPyControl_base_DoGetVirtualSize(self, *_args, **_kwargs)
542 if val: val = wxSizePtr(val) ; val.thisown = 1
543 return val
544 def base_DoGetBestSize(self, *_args, **_kwargs):
545 val = windows2c.wxPyControl_base_DoGetBestSize(self, *_args, **_kwargs)
546 if val: val = wxSizePtr(val) ; val.thisown = 1
547 return val
548 def base_InitDialog(self, *_args, **_kwargs):
549 val = windows2c.wxPyControl_base_InitDialog(self, *_args, **_kwargs)
550 return val
551 def base_TransferDataToWindow(self, *_args, **_kwargs):
552 val = windows2c.wxPyControl_base_TransferDataToWindow(self, *_args, **_kwargs)
553 return val
554 def base_TransferDataFromWindow(self, *_args, **_kwargs):
555 val = windows2c.wxPyControl_base_TransferDataFromWindow(self, *_args, **_kwargs)
556 return val
557 def base_Validate(self, *_args, **_kwargs):
558 val = windows2c.wxPyControl_base_Validate(self, *_args, **_kwargs)
559 return val
560 def base_AcceptsFocus(self, *_args, **_kwargs):
561 val = windows2c.wxPyControl_base_AcceptsFocus(self, *_args, **_kwargs)
562 return val
563 def base_AcceptsFocusFromKeyboard(self, *_args, **_kwargs):
564 val = windows2c.wxPyControl_base_AcceptsFocusFromKeyboard(self, *_args, **_kwargs)
565 return val
566 def base_GetMaxSize(self, *_args, **_kwargs):
567 val = windows2c.wxPyControl_base_GetMaxSize(self, *_args, **_kwargs)
568 if val: val = wxSizePtr(val) ; val.thisown = 1
569 return val
570 def base_AddChild(self, *_args, **_kwargs):
571 val = windows2c.wxPyControl_base_AddChild(self, *_args, **_kwargs)
572 return val
573 def base_RemoveChild(self, *_args, **_kwargs):
574 val = windows2c.wxPyControl_base_RemoveChild(self, *_args, **_kwargs)
575 return val
576 def __repr__(self):
577 return "<%s.%s instance; proxy of C++ wxPyControl instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
578 class wxPyControl(wxPyControlPtr):
579 def __init__(self,*_args,**_kwargs):
580 self.this = windows2c.new_wxPyControl(*_args,**_kwargs)
581 self.thisown = 1
582 self._setCallbackInfo(self, wxPyControl)
583 self._setOORInfo(self)
584
585
586
587
588 class wxPyPanelPtr(wxPanelPtr):
589 def __init__(self,this):
590 self.this = this
591 self.thisown = 0
592 def _setCallbackInfo(self, *_args, **_kwargs):
593 val = windows2c.wxPyPanel__setCallbackInfo(self, *_args, **_kwargs)
594 return val
595 def base_DoMoveWindow(self, *_args, **_kwargs):
596 val = windows2c.wxPyPanel_base_DoMoveWindow(self, *_args, **_kwargs)
597 return val
598 def base_DoSetSize(self, *_args, **_kwargs):
599 val = windows2c.wxPyPanel_base_DoSetSize(self, *_args, **_kwargs)
600 return val
601 def base_DoSetClientSize(self, *_args, **_kwargs):
602 val = windows2c.wxPyPanel_base_DoSetClientSize(self, *_args, **_kwargs)
603 return val
604 def base_DoSetVirtualSize(self, *_args, **_kwargs):
605 val = windows2c.wxPyPanel_base_DoSetVirtualSize(self, *_args, **_kwargs)
606 return val
607 def base_DoGetSize(self, *_args, **_kwargs):
608 val = windows2c.wxPyPanel_base_DoGetSize(self, *_args, **_kwargs)
609 return val
610 def base_DoGetClientSize(self, *_args, **_kwargs):
611 val = windows2c.wxPyPanel_base_DoGetClientSize(self, *_args, **_kwargs)
612 return val
613 def base_DoGetPosition(self, *_args, **_kwargs):
614 val = windows2c.wxPyPanel_base_DoGetPosition(self, *_args, **_kwargs)
615 return val
616 def base_DoGetVirtualSize(self, *_args, **_kwargs):
617 val = windows2c.wxPyPanel_base_DoGetVirtualSize(self, *_args, **_kwargs)
618 if val: val = wxSizePtr(val) ; val.thisown = 1
619 return val
620 def base_DoGetBestSize(self, *_args, **_kwargs):
621 val = windows2c.wxPyPanel_base_DoGetBestSize(self, *_args, **_kwargs)
622 if val: val = wxSizePtr(val) ; val.thisown = 1
623 return val
624 def base_InitDialog(self, *_args, **_kwargs):
625 val = windows2c.wxPyPanel_base_InitDialog(self, *_args, **_kwargs)
626 return val
627 def base_TransferDataToWindow(self, *_args, **_kwargs):
628 val = windows2c.wxPyPanel_base_TransferDataToWindow(self, *_args, **_kwargs)
629 return val
630 def base_TransferDataFromWindow(self, *_args, **_kwargs):
631 val = windows2c.wxPyPanel_base_TransferDataFromWindow(self, *_args, **_kwargs)
632 return val
633 def base_Validate(self, *_args, **_kwargs):
634 val = windows2c.wxPyPanel_base_Validate(self, *_args, **_kwargs)
635 return val
636 def base_AcceptsFocus(self, *_args, **_kwargs):
637 val = windows2c.wxPyPanel_base_AcceptsFocus(self, *_args, **_kwargs)
638 return val
639 def base_AcceptsFocusFromKeyboard(self, *_args, **_kwargs):
640 val = windows2c.wxPyPanel_base_AcceptsFocusFromKeyboard(self, *_args, **_kwargs)
641 return val
642 def base_GetMaxSize(self, *_args, **_kwargs):
643 val = windows2c.wxPyPanel_base_GetMaxSize(self, *_args, **_kwargs)
644 if val: val = wxSizePtr(val) ; val.thisown = 1
645 return val
646 def base_AddChild(self, *_args, **_kwargs):
647 val = windows2c.wxPyPanel_base_AddChild(self, *_args, **_kwargs)
648 return val
649 def base_RemoveChild(self, *_args, **_kwargs):
650 val = windows2c.wxPyPanel_base_RemoveChild(self, *_args, **_kwargs)
651 return val
652 def __repr__(self):
653 return "<%s.%s instance; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
654 class wxPyPanel(wxPyPanelPtr):
655 def __init__(self,*_args,**_kwargs):
656 self.this = windows2c.new_wxPyPanel(*_args,**_kwargs)
657 self.thisown = 1
658 self._setCallbackInfo(self, wxPyPanel)
659 self._setOORInfo(self)
660
661
662
663
664
665
666 #-------------- FUNCTION WRAPPERS ------------------
667
668
669
670 #-------------- VARIABLE WRAPPERS ------------------
671
672 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = windows2c.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED
673 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = windows2c.wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING
674 wxNB_FIXEDWIDTH = windows2c.wxNB_FIXEDWIDTH
675 wxNB_TOP = windows2c.wxNB_TOP
676 wxNB_LEFT = windows2c.wxNB_LEFT
677 wxNB_RIGHT = windows2c.wxNB_RIGHT
678 wxNB_BOTTOM = windows2c.wxNB_BOTTOM
679 wxNB_MULTILINE = windows2c.wxNB_MULTILINE
680 wxNB_HITTEST_NOWHERE = windows2c.wxNB_HITTEST_NOWHERE
681 wxNB_HITTEST_ONICON = windows2c.wxNB_HITTEST_ONICON
682 wxNB_HITTEST_ONLABEL = windows2c.wxNB_HITTEST_ONLABEL
683 wxNB_HITTEST_ONITEM = windows2c.wxNB_HITTEST_ONITEM
684 wxLB_DEFAULT = windows2c.wxLB_DEFAULT
685 wxLB_TOP = windows2c.wxLB_TOP
686 wxLB_BOTTOM = windows2c.wxLB_BOTTOM
687 wxLB_LEFT = windows2c.wxLB_LEFT
688 wxLB_RIGHT = windows2c.wxLB_RIGHT
689 wxLB_ALIGN_MASK = windows2c.wxLB_ALIGN_MASK
690 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED = windows2c.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED
691 wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING = windows2c.wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING
692 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = windows2c.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
693 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = windows2c.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
694 wxEVT_COMMAND_SPLITTER_UNSPLIT = windows2c.wxEVT_COMMAND_SPLITTER_UNSPLIT
695 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = windows2c.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
696 wxSPLIT_HORIZONTAL = windows2c.wxSPLIT_HORIZONTAL
697 wxSPLIT_VERTICAL = windows2c.wxSPLIT_VERTICAL
698 wxSPLIT_DRAG_NONE = windows2c.wxSPLIT_DRAG_NONE
699 wxSPLIT_DRAG_DRAGGING = windows2c.wxSPLIT_DRAG_DRAGGING
700 wxSPLIT_DRAG_LEFT_DOWN = windows2c.wxSPLIT_DRAG_LEFT_DOWN
701 wxSP_VERTICAL = windows2c.wxSP_VERTICAL
702 wxSP_HORIZONTAL = windows2c.wxSP_HORIZONTAL
703 wxSP_ARROW_KEYS = windows2c.wxSP_ARROW_KEYS
704 wxSP_WRAP = windows2c.wxSP_WRAP
705 wxSP_NOBORDER = windows2c.wxSP_NOBORDER
706 wxSP_3D = windows2c.wxSP_3D
707 wxSP_3DSASH = windows2c.wxSP_3DSASH
708 wxSP_3DBORDER = windows2c.wxSP_3DBORDER
709 wxSP_FULLSASH = windows2c.wxSP_FULLSASH
710 wxSP_BORDER = windows2c.wxSP_BORDER
711 wxSP_LIVE_UPDATE = windows2c.wxSP_LIVE_UPDATE
712 wxSP_PERMIT_UNSPLIT = windows2c.wxSP_PERMIT_UNSPLIT
713 wxEVT_TASKBAR_MOVE = windows2c.wxEVT_TASKBAR_MOVE
714 wxEVT_TASKBAR_LEFT_DOWN = windows2c.wxEVT_TASKBAR_LEFT_DOWN
715 wxEVT_TASKBAR_LEFT_UP = windows2c.wxEVT_TASKBAR_LEFT_UP
716 wxEVT_TASKBAR_RIGHT_DOWN = windows2c.wxEVT_TASKBAR_RIGHT_DOWN
717 wxEVT_TASKBAR_RIGHT_UP = windows2c.wxEVT_TASKBAR_RIGHT_UP
718 wxEVT_TASKBAR_LEFT_DCLICK = windows2c.wxEVT_TASKBAR_LEFT_DCLICK
719 wxEVT_TASKBAR_RIGHT_DCLICK = windows2c.wxEVT_TASKBAR_RIGHT_DCLICK