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