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