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