]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/windows.py
Some updates and fixes
[wxWidgets.git] / utils / wxPython / src / msw / windows.py
1 # This file was created automatically by SWIG.
2 import windowsc
3
4 from misc import *
5
6 from gdi import *
7
8 from clip_dnd import *
9 import wx
10
11 def wxDLG_PNT(win, point_or_x, y=None):
12 if y is None:
13 return win.ConvertDialogPointToPixels(point_or_x)
14 else:
15 return win.ConvertDialogPointToPixels(wxPoint(point_or_x, y))
16
17 def wxDLG_SZE(win, size_width, height=None):
18 if height is None:
19 return win.ConvertDialogSizeToPixels(size_width)
20 else:
21 return win.ConvertDialogSizeToPixels(wxSize(size_width, height))
22
23 class wxEvtHandlerPtr :
24 def __init__(self,this):
25 self.this = this
26 self.thisown = 0
27 def ProcessEvent(self, *_args, **_kwargs):
28 val = apply(windowsc.wxEvtHandler_ProcessEvent,(self,) + _args, _kwargs)
29 return val
30 def GetEvtHandlerEnabled(self, *_args, **_kwargs):
31 val = apply(windowsc.wxEvtHandler_GetEvtHandlerEnabled,(self,) + _args, _kwargs)
32 return val
33 def SetEvtHandlerEnabled(self, *_args, **_kwargs):
34 val = apply(windowsc.wxEvtHandler_SetEvtHandlerEnabled,(self,) + _args, _kwargs)
35 return val
36 def GetNextHandler(self, *_args, **_kwargs):
37 val = apply(windowsc.wxEvtHandler_GetNextHandler,(self,) + _args, _kwargs)
38 if val: val = wxEvtHandlerPtr(val)
39 return val
40 def GetPreviousHandler(self, *_args, **_kwargs):
41 val = apply(windowsc.wxEvtHandler_GetPreviousHandler,(self,) + _args, _kwargs)
42 if val: val = wxEvtHandlerPtr(val)
43 return val
44 def SetNextHandler(self, *_args, **_kwargs):
45 val = apply(windowsc.wxEvtHandler_SetNextHandler,(self,) + _args, _kwargs)
46 return val
47 def SetPreviousHandler(self, *_args, **_kwargs):
48 val = apply(windowsc.wxEvtHandler_SetPreviousHandler,(self,) + _args, _kwargs)
49 return val
50 def Connect(self, *_args, **_kwargs):
51 val = apply(windowsc.wxEvtHandler_Connect,(self,) + _args, _kwargs)
52 return val
53 def Disconnect(self, *_args, **_kwargs):
54 val = apply(windowsc.wxEvtHandler_Disconnect,(self,) + _args, _kwargs)
55 return val
56 def __repr__(self):
57 return "<C wxEvtHandler instance at %s>" % (self.this,)
58 class wxEvtHandler(wxEvtHandlerPtr):
59 def __init__(self,this):
60 self.this = this
61
62
63
64
65 class wxValidatorPtr(wxEvtHandlerPtr):
66 def __init__(self,this):
67 self.this = this
68 self.thisown = 0
69 def Clone(self, *_args, **_kwargs):
70 val = apply(windowsc.wxValidator_Clone,(self,) + _args, _kwargs)
71 if val: val = wxValidatorPtr(val)
72 return val
73 def GetWindow(self, *_args, **_kwargs):
74 val = apply(windowsc.wxValidator_GetWindow,(self,) + _args, _kwargs)
75 if val: val = wxWindowPtr(val)
76 return val
77 def SetWindow(self, *_args, **_kwargs):
78 val = apply(windowsc.wxValidator_SetWindow,(self,) + _args, _kwargs)
79 return val
80 def __repr__(self):
81 return "<C wxValidator instance at %s>" % (self.this,)
82 class wxValidator(wxValidatorPtr):
83 def __init__(self,*_args,**_kwargs):
84 self.this = apply(windowsc.new_wxValidator,_args,_kwargs)
85 self.thisown = 1
86
87
88
89
90 class wxPyValidatorPtr(wxValidatorPtr):
91 def __init__(self,this):
92 self.this = this
93 self.thisown = 0
94 def Destroy(self, *_args, **_kwargs):
95 val = apply(windowsc.wxPyValidator_Destroy,(self,) + _args, _kwargs)
96 return val
97 def _setSelf(self, *_args, **_kwargs):
98 val = apply(windowsc.wxPyValidator__setSelf,(self,) + _args, _kwargs)
99 return val
100 def __repr__(self):
101 return "<C wxPyValidator instance at %s>" % (self.this,)
102 class wxPyValidator(wxPyValidatorPtr):
103 def __init__(self,*_args,**_kwargs):
104 self.this = apply(windowsc.new_wxPyValidator,_args,_kwargs)
105 self.thisown = 1
106 self._setSelf(self, 0)
107
108
109
110
111 class wxWindowPtr(wxEvtHandlerPtr):
112 def __init__(self,this):
113 self.this = this
114 self.thisown = 0
115 def CaptureMouse(self, *_args, **_kwargs):
116 val = apply(windowsc.wxWindow_CaptureMouse,(self,) + _args, _kwargs)
117 return val
118 def Center(self, *_args, **_kwargs):
119 val = apply(windowsc.wxWindow_Center,(self,) + _args, _kwargs)
120 return val
121 def Centre(self, *_args, **_kwargs):
122 val = apply(windowsc.wxWindow_Centre,(self,) + _args, _kwargs)
123 return val
124 def CentreOnParent(self, *_args, **_kwargs):
125 val = apply(windowsc.wxWindow_CentreOnParent,(self,) + _args, _kwargs)
126 return val
127 def CenterOnParent(self, *_args, **_kwargs):
128 val = apply(windowsc.wxWindow_CenterOnParent,(self,) + _args, _kwargs)
129 return val
130 def ClientToScreenXY(self, *_args, **_kwargs):
131 val = apply(windowsc.wxWindow_ClientToScreenXY,(self,) + _args, _kwargs)
132 return val
133 def ClientToScreen(self, *_args, **_kwargs):
134 val = apply(windowsc.wxWindow_ClientToScreen,(self,) + _args, _kwargs)
135 if val: val = wxPointPtr(val) ; val.thisown = 1
136 return val
137 def Close(self, *_args, **_kwargs):
138 val = apply(windowsc.wxWindow_Close,(self,) + _args, _kwargs)
139 return val
140 def Destroy(self, *_args, **_kwargs):
141 val = apply(windowsc.wxWindow_Destroy,(self,) + _args, _kwargs)
142 return val
143 def DestroyChildren(self, *_args, **_kwargs):
144 val = apply(windowsc.wxWindow_DestroyChildren,(self,) + _args, _kwargs)
145 return val
146 def DragAcceptFiles(self, *_args, **_kwargs):
147 val = apply(windowsc.wxWindow_DragAcceptFiles,(self,) + _args, _kwargs)
148 return val
149 def Enable(self, *_args, **_kwargs):
150 val = apply(windowsc.wxWindow_Enable,(self,) + _args, _kwargs)
151 return val
152 def FindWindowById(self, *_args, **_kwargs):
153 val = apply(windowsc.wxWindow_FindWindowById,(self,) + _args, _kwargs)
154 if val: val = wxWindowPtr(val)
155 return val
156 def FindWindowByName(self, *_args, **_kwargs):
157 val = apply(windowsc.wxWindow_FindWindowByName,(self,) + _args, _kwargs)
158 if val: val = wxWindowPtr(val)
159 return val
160 def Fit(self, *_args, **_kwargs):
161 val = apply(windowsc.wxWindow_Fit,(self,) + _args, _kwargs)
162 return val
163 def GetBackgroundColour(self, *_args, **_kwargs):
164 val = apply(windowsc.wxWindow_GetBackgroundColour,(self,) + _args, _kwargs)
165 if val: val = wxColourPtr(val) ; val.thisown = 1
166 return val
167 def GetChildren(self, *_args, **_kwargs):
168 val = apply(windowsc.wxWindow_GetChildren,(self,) + _args, _kwargs)
169 return val
170 def GetCharHeight(self, *_args, **_kwargs):
171 val = apply(windowsc.wxWindow_GetCharHeight,(self,) + _args, _kwargs)
172 return val
173 def GetCharWidth(self, *_args, **_kwargs):
174 val = apply(windowsc.wxWindow_GetCharWidth,(self,) + _args, _kwargs)
175 return val
176 def GetClientSizeTuple(self, *_args, **_kwargs):
177 val = apply(windowsc.wxWindow_GetClientSizeTuple,(self,) + _args, _kwargs)
178 return val
179 def GetClientSize(self, *_args, **_kwargs):
180 val = apply(windowsc.wxWindow_GetClientSize,(self,) + _args, _kwargs)
181 if val: val = wxSizePtr(val) ; val.thisown = 1
182 return val
183 def GetConstraints(self, *_args, **_kwargs):
184 val = apply(windowsc.wxWindow_GetConstraints,(self,) + _args, _kwargs)
185 if val: val = wxLayoutConstraintsPtr(val)
186 return val
187 def GetEventHandler(self, *_args, **_kwargs):
188 val = apply(windowsc.wxWindow_GetEventHandler,(self,) + _args, _kwargs)
189 if val: val = wxEvtHandlerPtr(val)
190 return val
191 def GetFont(self, *_args, **_kwargs):
192 val = apply(windowsc.wxWindow_GetFont,(self,) + _args, _kwargs)
193 if val: val = wxFontPtr(val)
194 return val
195 def GetForegroundColour(self, *_args, **_kwargs):
196 val = apply(windowsc.wxWindow_GetForegroundColour,(self,) + _args, _kwargs)
197 if val: val = wxColourPtr(val) ; val.thisown = 1
198 return val
199 def GetGrandParent(self, *_args, **_kwargs):
200 val = apply(windowsc.wxWindow_GetGrandParent,(self,) + _args, _kwargs)
201 if val: val = wxWindowPtr(val)
202 return val
203 def GetHandle(self, *_args, **_kwargs):
204 val = apply(windowsc.wxWindow_GetHandle,(self,) + _args, _kwargs)
205 return val
206 def GetId(self, *_args, **_kwargs):
207 val = apply(windowsc.wxWindow_GetId,(self,) + _args, _kwargs)
208 return val
209 def GetLabel(self, *_args, **_kwargs):
210 val = apply(windowsc.wxWindow_GetLabel,(self,) + _args, _kwargs)
211 return val
212 def SetLabel(self, *_args, **_kwargs):
213 val = apply(windowsc.wxWindow_SetLabel,(self,) + _args, _kwargs)
214 return val
215 def GetName(self, *_args, **_kwargs):
216 val = apply(windowsc.wxWindow_GetName,(self,) + _args, _kwargs)
217 return val
218 def GetParent(self, *_args, **_kwargs):
219 val = apply(windowsc.wxWindow_GetParent,(self,) + _args, _kwargs)
220 if val: val = wxWindowPtr(val)
221 return val
222 def GetPositionTuple(self, *_args, **_kwargs):
223 val = apply(windowsc.wxWindow_GetPositionTuple,(self,) + _args, _kwargs)
224 return val
225 def GetPosition(self, *_args, **_kwargs):
226 val = apply(windowsc.wxWindow_GetPosition,(self,) + _args, _kwargs)
227 if val: val = wxPointPtr(val) ; val.thisown = 1
228 return val
229 def GetRect(self, *_args, **_kwargs):
230 val = apply(windowsc.wxWindow_GetRect,(self,) + _args, _kwargs)
231 if val: val = wxRectPtr(val) ; val.thisown = 1
232 return val
233 def GetScrollThumb(self, *_args, **_kwargs):
234 val = apply(windowsc.wxWindow_GetScrollThumb,(self,) + _args, _kwargs)
235 return val
236 def GetScrollPos(self, *_args, **_kwargs):
237 val = apply(windowsc.wxWindow_GetScrollPos,(self,) + _args, _kwargs)
238 return val
239 def GetScrollRange(self, *_args, **_kwargs):
240 val = apply(windowsc.wxWindow_GetScrollRange,(self,) + _args, _kwargs)
241 return val
242 def GetSizeTuple(self, *_args, **_kwargs):
243 val = apply(windowsc.wxWindow_GetSizeTuple,(self,) + _args, _kwargs)
244 return val
245 def GetSize(self, *_args, **_kwargs):
246 val = apply(windowsc.wxWindow_GetSize,(self,) + _args, _kwargs)
247 if val: val = wxSizePtr(val) ; val.thisown = 1
248 return val
249 def GetTextExtent(self, *_args, **_kwargs):
250 val = apply(windowsc.wxWindow_GetTextExtent,(self,) + _args, _kwargs)
251 return val
252 def GetFullTextExtent(self, *_args, **_kwargs):
253 val = apply(windowsc.wxWindow_GetFullTextExtent,(self,) + _args, _kwargs)
254 return val
255 def GetTitle(self, *_args, **_kwargs):
256 val = apply(windowsc.wxWindow_GetTitle,(self,) + _args, _kwargs)
257 return val
258 def GetUpdateRegion(self, *_args, **_kwargs):
259 val = apply(windowsc.wxWindow_GetUpdateRegion,(self,) + _args, _kwargs)
260 if val: val = wxRegionPtr(val) ; val.thisown = 1
261 return val
262 def GetWindowStyleFlag(self, *_args, **_kwargs):
263 val = apply(windowsc.wxWindow_GetWindowStyleFlag,(self,) + _args, _kwargs)
264 return val
265 def Hide(self, *_args, **_kwargs):
266 val = apply(windowsc.wxWindow_Hide,(self,) + _args, _kwargs)
267 return val
268 def InitDialog(self, *_args, **_kwargs):
269 val = apply(windowsc.wxWindow_InitDialog,(self,) + _args, _kwargs)
270 return val
271 def IsEnabled(self, *_args, **_kwargs):
272 val = apply(windowsc.wxWindow_IsEnabled,(self,) + _args, _kwargs)
273 return val
274 def IsExposed(self, *_args, **_kwargs):
275 val = apply(windowsc.wxWindow_IsExposed,(self,) + _args, _kwargs)
276 return val
277 def IsExposedPoint(self, *_args, **_kwargs):
278 val = apply(windowsc.wxWindow_IsExposedPoint,(self,) + _args, _kwargs)
279 return val
280 def IsExposedRect(self, *_args, **_kwargs):
281 val = apply(windowsc.wxWindow_IsExposedRect,(self,) + _args, _kwargs)
282 return val
283 def IsRetained(self, *_args, **_kwargs):
284 val = apply(windowsc.wxWindow_IsRetained,(self,) + _args, _kwargs)
285 return val
286 def IsShown(self, *_args, **_kwargs):
287 val = apply(windowsc.wxWindow_IsShown,(self,) + _args, _kwargs)
288 return val
289 def IsTopLevel(self, *_args, **_kwargs):
290 val = apply(windowsc.wxWindow_IsTopLevel,(self,) + _args, _kwargs)
291 return val
292 def Layout(self, *_args, **_kwargs):
293 val = apply(windowsc.wxWindow_Layout,(self,) + _args, _kwargs)
294 return val
295 def LoadFromResource(self, *_args, **_kwargs):
296 val = apply(windowsc.wxWindow_LoadFromResource,(self,) + _args, _kwargs)
297 return val
298 def Lower(self, *_args, **_kwargs):
299 val = apply(windowsc.wxWindow_Lower,(self,) + _args, _kwargs)
300 return val
301 def MakeModal(self, *_args, **_kwargs):
302 val = apply(windowsc.wxWindow_MakeModal,(self,) + _args, _kwargs)
303 return val
304 def MoveXY(self, *_args, **_kwargs):
305 val = apply(windowsc.wxWindow_MoveXY,(self,) + _args, _kwargs)
306 return val
307 def Move(self, *_args, **_kwargs):
308 val = apply(windowsc.wxWindow_Move,(self,) + _args, _kwargs)
309 return val
310 def PopEventHandler(self, *_args, **_kwargs):
311 val = apply(windowsc.wxWindow_PopEventHandler,(self,) + _args, _kwargs)
312 if val: val = wxEvtHandlerPtr(val)
313 return val
314 def PushEventHandler(self, *_args, **_kwargs):
315 val = apply(windowsc.wxWindow_PushEventHandler,(self,) + _args, _kwargs)
316 return val
317 def PopupMenuXY(self, *_args, **_kwargs):
318 val = apply(windowsc.wxWindow_PopupMenuXY,(self,) + _args, _kwargs)
319 return val
320 def PopupMenu(self, *_args, **_kwargs):
321 val = apply(windowsc.wxWindow_PopupMenu,(self,) + _args, _kwargs)
322 return val
323 def Raise(self, *_args, **_kwargs):
324 val = apply(windowsc.wxWindow_Raise,(self,) + _args, _kwargs)
325 return val
326 def Refresh(self, *_args, **_kwargs):
327 val = apply(windowsc.wxWindow_Refresh,(self,) + _args, _kwargs)
328 return val
329 def ReleaseMouse(self, *_args, **_kwargs):
330 val = apply(windowsc.wxWindow_ReleaseMouse,(self,) + _args, _kwargs)
331 return val
332 def RemoveChild(self, *_args, **_kwargs):
333 val = apply(windowsc.wxWindow_RemoveChild,(self,) + _args, _kwargs)
334 return val
335 def Reparent(self, *_args, **_kwargs):
336 val = apply(windowsc.wxWindow_Reparent,(self,) + _args, _kwargs)
337 return val
338 def ScreenToClientXY(self, *_args, **_kwargs):
339 val = apply(windowsc.wxWindow_ScreenToClientXY,(self,) + _args, _kwargs)
340 return val
341 def ScreenToClient(self, *_args, **_kwargs):
342 val = apply(windowsc.wxWindow_ScreenToClient,(self,) + _args, _kwargs)
343 if val: val = wxPointPtr(val) ; val.thisown = 1
344 return val
345 def ScrollWindow(self, *_args, **_kwargs):
346 val = apply(windowsc.wxWindow_ScrollWindow,(self,) + _args, _kwargs)
347 return val
348 def SetAcceleratorTable(self, *_args, **_kwargs):
349 val = apply(windowsc.wxWindow_SetAcceleratorTable,(self,) + _args, _kwargs)
350 return val
351 def SetAutoLayout(self, *_args, **_kwargs):
352 val = apply(windowsc.wxWindow_SetAutoLayout,(self,) + _args, _kwargs)
353 return val
354 def GetAutoLayout(self, *_args, **_kwargs):
355 val = apply(windowsc.wxWindow_GetAutoLayout,(self,) + _args, _kwargs)
356 return val
357 def SetBackgroundColour(self, *_args, **_kwargs):
358 val = apply(windowsc.wxWindow_SetBackgroundColour,(self,) + _args, _kwargs)
359 return val
360 def SetConstraints(self, *_args, **_kwargs):
361 val = apply(windowsc.wxWindow_SetConstraints,(self,) + _args, _kwargs)
362 return val
363 def UnsetConstraints(self, *_args, **_kwargs):
364 val = apply(windowsc.wxWindow_UnsetConstraints,(self,) + _args, _kwargs)
365 return val
366 def SetFocus(self, *_args, **_kwargs):
367 val = apply(windowsc.wxWindow_SetFocus,(self,) + _args, _kwargs)
368 return val
369 def AcceptsFocus(self, *_args, **_kwargs):
370 val = apply(windowsc.wxWindow_AcceptsFocus,(self,) + _args, _kwargs)
371 return val
372 def SetFont(self, *_args, **_kwargs):
373 val = apply(windowsc.wxWindow_SetFont,(self,) + _args, _kwargs)
374 return val
375 def SetForegroundColour(self, *_args, **_kwargs):
376 val = apply(windowsc.wxWindow_SetForegroundColour,(self,) + _args, _kwargs)
377 return val
378 def SetId(self, *_args, **_kwargs):
379 val = apply(windowsc.wxWindow_SetId,(self,) + _args, _kwargs)
380 return val
381 def SetName(self, *_args, **_kwargs):
382 val = apply(windowsc.wxWindow_SetName,(self,) + _args, _kwargs)
383 return val
384 def SetScrollbar(self, *_args, **_kwargs):
385 val = apply(windowsc.wxWindow_SetScrollbar,(self,) + _args, _kwargs)
386 return val
387 def SetScrollPos(self, *_args, **_kwargs):
388 val = apply(windowsc.wxWindow_SetScrollPos,(self,) + _args, _kwargs)
389 return val
390 def SetDimensions(self, *_args, **_kwargs):
391 val = apply(windowsc.wxWindow_SetDimensions,(self,) + _args, _kwargs)
392 return val
393 def SetSize(self, *_args, **_kwargs):
394 val = apply(windowsc.wxWindow_SetSize,(self,) + _args, _kwargs)
395 return val
396 def SetPosition(self, *_args, **_kwargs):
397 val = apply(windowsc.wxWindow_SetPosition,(self,) + _args, _kwargs)
398 return val
399 def SetSizeHints(self, *_args, **_kwargs):
400 val = apply(windowsc.wxWindow_SetSizeHints,(self,) + _args, _kwargs)
401 return val
402 def SetClientSizeWH(self, *_args, **_kwargs):
403 val = apply(windowsc.wxWindow_SetClientSizeWH,(self,) + _args, _kwargs)
404 return val
405 def SetClientSize(self, *_args, **_kwargs):
406 val = apply(windowsc.wxWindow_SetClientSize,(self,) + _args, _kwargs)
407 return val
408 def SetCursor(self, *_args, **_kwargs):
409 val = apply(windowsc.wxWindow_SetCursor,(self,) + _args, _kwargs)
410 return val
411 def SetEventHandler(self, *_args, **_kwargs):
412 val = apply(windowsc.wxWindow_SetEventHandler,(self,) + _args, _kwargs)
413 return val
414 def SetTitle(self, *_args, **_kwargs):
415 val = apply(windowsc.wxWindow_SetTitle,(self,) + _args, _kwargs)
416 return val
417 def Show(self, *_args, **_kwargs):
418 val = apply(windowsc.wxWindow_Show,(self,) + _args, _kwargs)
419 return val
420 def TransferDataFromWindow(self, *_args, **_kwargs):
421 val = apply(windowsc.wxWindow_TransferDataFromWindow,(self,) + _args, _kwargs)
422 return val
423 def TransferDataToWindow(self, *_args, **_kwargs):
424 val = apply(windowsc.wxWindow_TransferDataToWindow,(self,) + _args, _kwargs)
425 return val
426 def Validate(self, *_args, **_kwargs):
427 val = apply(windowsc.wxWindow_Validate,(self,) + _args, _kwargs)
428 return val
429 def WarpPointer(self, *_args, **_kwargs):
430 val = apply(windowsc.wxWindow_WarpPointer,(self,) + _args, _kwargs)
431 return val
432 def ConvertDialogPointToPixels(self, *_args, **_kwargs):
433 val = apply(windowsc.wxWindow_ConvertDialogPointToPixels,(self,) + _args, _kwargs)
434 if val: val = wxPointPtr(val) ; val.thisown = 1
435 return val
436 def ConvertDialogSizeToPixels(self, *_args, **_kwargs):
437 val = apply(windowsc.wxWindow_ConvertDialogSizeToPixels,(self,) + _args, _kwargs)
438 if val: val = wxSizePtr(val) ; val.thisown = 1
439 return val
440 def DLG_PNT(self, *_args, **_kwargs):
441 val = apply(windowsc.wxWindow_DLG_PNT,(self,) + _args, _kwargs)
442 if val: val = wxPointPtr(val) ; val.thisown = 1
443 return val
444 def DLG_SZE(self, *_args, **_kwargs):
445 val = apply(windowsc.wxWindow_DLG_SZE,(self,) + _args, _kwargs)
446 if val: val = wxSizePtr(val) ; val.thisown = 1
447 return val
448 def ConvertPixelPointToDialog(self, *_args, **_kwargs):
449 val = apply(windowsc.wxWindow_ConvertPixelPointToDialog,(self,) + _args, _kwargs)
450 if val: val = wxPointPtr(val) ; val.thisown = 1
451 return val
452 def ConvertPixelSizeToDialog(self, *_args, **_kwargs):
453 val = apply(windowsc.wxWindow_ConvertPixelSizeToDialog,(self,) + _args, _kwargs)
454 if val: val = wxSizePtr(val) ; val.thisown = 1
455 return val
456 def SetToolTipString(self, *_args, **_kwargs):
457 val = apply(windowsc.wxWindow_SetToolTipString,(self,) + _args, _kwargs)
458 return val
459 def SetToolTip(self, *_args, **_kwargs):
460 val = apply(windowsc.wxWindow_SetToolTip,(self,) + _args, _kwargs)
461 return val
462 def GetToolTip(self, *_args, **_kwargs):
463 val = apply(windowsc.wxWindow_GetToolTip,(self,) + _args, _kwargs)
464 if val: val = wxToolTipPtr(val)
465 return val
466 def SetSizer(self, *_args, **_kwargs):
467 val = apply(windowsc.wxWindow_SetSizer,(self,) + _args, _kwargs)
468 return val
469 def GetValidator(self, *_args, **_kwargs):
470 val = apply(windowsc.wxWindow_GetValidator,(self,) + _args, _kwargs)
471 if val: val = wxValidatorPtr(val)
472 return val
473 def SetValidator(self, *_args, **_kwargs):
474 val = apply(windowsc.wxWindow_SetValidator,(self,) + _args, _kwargs)
475 return val
476 def SetDropTarget(self, *_args, **_kwargs):
477 val = apply(windowsc.wxWindow_SetDropTarget,(self,) + _args, _kwargs)
478 _args[0].thisown = 0
479 return val
480 def GetDropTarget(self, *_args, **_kwargs):
481 val = apply(windowsc.wxWindow_GetDropTarget,(self,) + _args, _kwargs)
482 if val: val = wxDropTargetPtr(val)
483 return val
484 def GetBestSize(self, *_args, **_kwargs):
485 val = apply(windowsc.wxWindow_GetBestSize,(self,) + _args, _kwargs)
486 if val: val = wxSizePtr(val) ; val.thisown = 1
487 return val
488 def SetCaret(self, *_args, **_kwargs):
489 val = apply(windowsc.wxWindow_SetCaret,(self,) + _args, _kwargs)
490 return val
491 def GetCaret(self, *_args, **_kwargs):
492 val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
493 if val: val = wxCaretPtr(val)
494 return val
495 def __repr__(self):
496 return "<C wxWindow instance at %s>" % (self.this,)
497 # replaces broken shadow method
498 def GetCaret(self, *_args, **_kwargs):
499 from misc2 import wxCaretPtr
500 val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
501 if val: val = wxCaretPtr(val)
502 return val
503
504 class wxWindow(wxWindowPtr):
505 def __init__(self,*_args,**_kwargs):
506 self.this = apply(windowsc.new_wxWindow,_args,_kwargs)
507 self.thisown = 1
508 wx._StdWindowCallbacks(self)
509
510
511
512
513 class wxPanelPtr(wxWindowPtr):
514 def __init__(self,this):
515 self.this = this
516 self.thisown = 0
517 def InitDialog(self, *_args, **_kwargs):
518 val = apply(windowsc.wxPanel_InitDialog,(self,) + _args, _kwargs)
519 return val
520 def GetDefaultItem(self, *_args, **_kwargs):
521 val = apply(windowsc.wxPanel_GetDefaultItem,(self,) + _args, _kwargs)
522 if val: val = wxButtonPtr(val)
523 return val
524 def SetDefaultItem(self, *_args, **_kwargs):
525 val = apply(windowsc.wxPanel_SetDefaultItem,(self,) + _args, _kwargs)
526 return val
527 def __repr__(self):
528 return "<C wxPanel instance at %s>" % (self.this,)
529
530 def GetDefaultItem(self):
531 import controls
532 val = windowsc.wxPanel_GetDefaultItem(self.this)
533 val = controls.wxButtonPtr(val)
534 return val
535
536 class wxPanel(wxPanelPtr):
537 def __init__(self,*_args,**_kwargs):
538 self.this = apply(windowsc.new_wxPanel,_args,_kwargs)
539 self.thisown = 1
540 wx._StdWindowCallbacks(self)
541
542
543
544
545 class wxDialogPtr(wxPanelPtr):
546 def __init__(self,this):
547 self.this = this
548 self.thisown = 0
549 def Centre(self, *_args, **_kwargs):
550 val = apply(windowsc.wxDialog_Centre,(self,) + _args, _kwargs)
551 return val
552 def EndModal(self, *_args, **_kwargs):
553 val = apply(windowsc.wxDialog_EndModal,(self,) + _args, _kwargs)
554 return val
555 def GetTitle(self, *_args, **_kwargs):
556 val = apply(windowsc.wxDialog_GetTitle,(self,) + _args, _kwargs)
557 return val
558 def Iconize(self, *_args, **_kwargs):
559 val = apply(windowsc.wxDialog_Iconize,(self,) + _args, _kwargs)
560 return val
561 def IsIconized(self, *_args, **_kwargs):
562 val = apply(windowsc.wxDialog_IsIconized,(self,) + _args, _kwargs)
563 return val
564 def SetModal(self, *_args, **_kwargs):
565 val = apply(windowsc.wxDialog_SetModal,(self,) + _args, _kwargs)
566 return val
567 def IsModal(self, *_args, **_kwargs):
568 val = apply(windowsc.wxDialog_IsModal,(self,) + _args, _kwargs)
569 return val
570 def SetTitle(self, *_args, **_kwargs):
571 val = apply(windowsc.wxDialog_SetTitle,(self,) + _args, _kwargs)
572 return val
573 def Show(self, *_args, **_kwargs):
574 val = apply(windowsc.wxDialog_Show,(self,) + _args, _kwargs)
575 return val
576 def ShowModal(self, *_args, **_kwargs):
577 val = apply(windowsc.wxDialog_ShowModal,(self,) + _args, _kwargs)
578 return val
579 def GetReturnCode(self, *_args, **_kwargs):
580 val = apply(windowsc.wxDialog_GetReturnCode,(self,) + _args, _kwargs)
581 return val
582 def SetReturnCode(self, *_args, **_kwargs):
583 val = apply(windowsc.wxDialog_SetReturnCode,(self,) + _args, _kwargs)
584 return val
585 def __repr__(self):
586 return "<C wxDialog instance at %s>" % (self.this,)
587 class wxDialog(wxDialogPtr):
588 def __init__(self,*_args,**_kwargs):
589 self.this = apply(windowsc.new_wxDialog,_args,_kwargs)
590 self.thisown = 1
591 wx._StdDialogCallbacks(self)
592
593
594
595
596 class wxScrolledWindowPtr(wxPanelPtr):
597 def __init__(self,this):
598 self.this = this
599 self.thisown = 0
600 def EnableScrolling(self, *_args, **_kwargs):
601 val = apply(windowsc.wxScrolledWindow_EnableScrolling,(self,) + _args, _kwargs)
602 return val
603 def GetScrollPageSize(self, *_args, **_kwargs):
604 val = apply(windowsc.wxScrolledWindow_GetScrollPageSize,(self,) + _args, _kwargs)
605 return val
606 def GetScrollPixelsPerUnit(self, *_args, **_kwargs):
607 val = apply(windowsc.wxScrolledWindow_GetScrollPixelsPerUnit,(self,) + _args, _kwargs)
608 return val
609 def GetTargetWindow(self, *_args, **_kwargs):
610 val = apply(windowsc.wxScrolledWindow_GetTargetWindow,(self,) + _args, _kwargs)
611 if val: val = wxWindowPtr(val)
612 return val
613 def GetVirtualSize(self, *_args, **_kwargs):
614 val = apply(windowsc.wxScrolledWindow_GetVirtualSize,(self,) + _args, _kwargs)
615 return val
616 def IsRetained(self, *_args, **_kwargs):
617 val = apply(windowsc.wxScrolledWindow_IsRetained,(self,) + _args, _kwargs)
618 return val
619 def PrepareDC(self, *_args, **_kwargs):
620 val = apply(windowsc.wxScrolledWindow_PrepareDC,(self,) + _args, _kwargs)
621 return val
622 def Scroll(self, *_args, **_kwargs):
623 val = apply(windowsc.wxScrolledWindow_Scroll,(self,) + _args, _kwargs)
624 return val
625 def SetScrollbars(self, *_args, **_kwargs):
626 val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self,) + _args, _kwargs)
627 return val
628 def SetScrollPageSize(self, *_args, **_kwargs):
629 val = apply(windowsc.wxScrolledWindow_SetScrollPageSize,(self,) + _args, _kwargs)
630 return val
631 def SetTargetWindow(self, *_args, **_kwargs):
632 val = apply(windowsc.wxScrolledWindow_SetTargetWindow,(self,) + _args, _kwargs)
633 return val
634 def ViewStart(self, *_args, **_kwargs):
635 val = apply(windowsc.wxScrolledWindow_ViewStart,(self,) + _args, _kwargs)
636 return val
637 def CalcScrolledPosition(self, *_args, **_kwargs):
638 val = apply(windowsc.wxScrolledWindow_CalcScrolledPosition,(self,) + _args, _kwargs)
639 return val
640 def CalcUnscrolledPosition(self, *_args, **_kwargs):
641 val = apply(windowsc.wxScrolledWindow_CalcUnscrolledPosition,(self,) + _args, _kwargs)
642 return val
643 def __repr__(self):
644 return "<C wxScrolledWindow instance at %s>" % (self.this,)
645 class wxScrolledWindow(wxScrolledWindowPtr):
646 def __init__(self,*_args,**_kwargs):
647 self.this = apply(windowsc.new_wxScrolledWindow,_args,_kwargs)
648 self.thisown = 1
649 wx._StdWindowCallbacks(self)
650 wx._StdOnScrollCallbacks(self)
651
652
653
654
655 class wxMenuPtr(wxEvtHandlerPtr):
656 def __init__(self,this):
657 self.this = this
658 self.thisown = 0
659 def Append(self, *_args, **_kwargs):
660 val = apply(windowsc.wxMenu_Append,(self,) + _args, _kwargs)
661 return val
662 def AppendMenu(self, *_args, **_kwargs):
663 val = apply(windowsc.wxMenu_AppendMenu,(self,) + _args, _kwargs)
664 return val
665 def AppendItem(self, *_args, **_kwargs):
666 val = apply(windowsc.wxMenu_AppendItem,(self,) + _args, _kwargs)
667 return val
668 def AppendSeparator(self, *_args, **_kwargs):
669 val = apply(windowsc.wxMenu_AppendSeparator,(self,) + _args, _kwargs)
670 return val
671 def Break(self, *_args, **_kwargs):
672 val = apply(windowsc.wxMenu_Break,(self,) + _args, _kwargs)
673 return val
674 def Check(self, *_args, **_kwargs):
675 val = apply(windowsc.wxMenu_Check,(self,) + _args, _kwargs)
676 return val
677 def IsChecked(self, *_args, **_kwargs):
678 val = apply(windowsc.wxMenu_IsChecked,(self,) + _args, _kwargs)
679 return val
680 def Enable(self, *_args, **_kwargs):
681 val = apply(windowsc.wxMenu_Enable,(self,) + _args, _kwargs)
682 return val
683 def IsEnabled(self, *_args, **_kwargs):
684 val = apply(windowsc.wxMenu_IsEnabled,(self,) + _args, _kwargs)
685 return val
686 def FindItem(self, *_args, **_kwargs):
687 val = apply(windowsc.wxMenu_FindItem,(self,) + _args, _kwargs)
688 return val
689 def FindItemById(self, *_args, **_kwargs):
690 val = apply(windowsc.wxMenu_FindItemById,(self,) + _args, _kwargs)
691 if val: val = wxMenuItemPtr(val)
692 return val
693 def GetTitle(self, *_args, **_kwargs):
694 val = apply(windowsc.wxMenu_GetTitle,(self,) + _args, _kwargs)
695 return val
696 def SetTitle(self, *_args, **_kwargs):
697 val = apply(windowsc.wxMenu_SetTitle,(self,) + _args, _kwargs)
698 return val
699 def GetLabel(self, *_args, **_kwargs):
700 val = apply(windowsc.wxMenu_GetLabel,(self,) + _args, _kwargs)
701 return val
702 def SetLabel(self, *_args, **_kwargs):
703 val = apply(windowsc.wxMenu_SetLabel,(self,) + _args, _kwargs)
704 return val
705 def GetHelpString(self, *_args, **_kwargs):
706 val = apply(windowsc.wxMenu_GetHelpString,(self,) + _args, _kwargs)
707 return val
708 def SetHelpString(self, *_args, **_kwargs):
709 val = apply(windowsc.wxMenu_SetHelpString,(self,) + _args, _kwargs)
710 return val
711 def UpdateUI(self, *_args, **_kwargs):
712 val = apply(windowsc.wxMenu_UpdateUI,(self,) + _args, _kwargs)
713 return val
714 def Delete(self, *_args, **_kwargs):
715 val = apply(windowsc.wxMenu_Delete,(self,) + _args, _kwargs)
716 return val
717 def DeleteItem(self, *_args, **_kwargs):
718 val = apply(windowsc.wxMenu_DeleteItem,(self,) + _args, _kwargs)
719 return val
720 def Insert(self, *_args, **_kwargs):
721 val = apply(windowsc.wxMenu_Insert,(self,) + _args, _kwargs)
722 return val
723 def Remove(self, *_args, **_kwargs):
724 val = apply(windowsc.wxMenu_Remove,(self,) + _args, _kwargs)
725 if val: val = wxMenuItemPtr(val)
726 return val
727 def RemoveItem(self, *_args, **_kwargs):
728 val = apply(windowsc.wxMenu_RemoveItem,(self,) + _args, _kwargs)
729 if val: val = wxMenuItemPtr(val)
730 return val
731 def Destroy(self, *_args, **_kwargs):
732 val = apply(windowsc.wxMenu_Destroy,(self,) + _args, _kwargs)
733 return val
734 def DestroyId(self, *_args, **_kwargs):
735 val = apply(windowsc.wxMenu_DestroyId,(self,) + _args, _kwargs)
736 return val
737 def DestroyItem(self, *_args, **_kwargs):
738 val = apply(windowsc.wxMenu_DestroyItem,(self,) + _args, _kwargs)
739 return val
740 def GetMenuItemCount(self, *_args, **_kwargs):
741 val = apply(windowsc.wxMenu_GetMenuItemCount,(self,) + _args, _kwargs)
742 return val
743 def GetMenuItems(self, *_args, **_kwargs):
744 val = apply(windowsc.wxMenu_GetMenuItems,(self,) + _args, _kwargs)
745 return val
746 def SetEventHandler(self, *_args, **_kwargs):
747 val = apply(windowsc.wxMenu_SetEventHandler,(self,) + _args, _kwargs)
748 return val
749 def GetEventHandler(self, *_args, **_kwargs):
750 val = apply(windowsc.wxMenu_GetEventHandler,(self,) + _args, _kwargs)
751 if val: val = wxEvtHandlerPtr(val)
752 return val
753 def SetInvokingWindow(self, *_args, **_kwargs):
754 val = apply(windowsc.wxMenu_SetInvokingWindow,(self,) + _args, _kwargs)
755 return val
756 def GetInvokingWindow(self, *_args, **_kwargs):
757 val = apply(windowsc.wxMenu_GetInvokingWindow,(self,) + _args, _kwargs)
758 if val: val = wxWindowPtr(val)
759 return val
760 def GetStyle(self, *_args, **_kwargs):
761 val = apply(windowsc.wxMenu_GetStyle,(self,) + _args, _kwargs)
762 return val
763 def IsAttached(self, *_args, **_kwargs):
764 val = apply(windowsc.wxMenu_IsAttached,(self,) + _args, _kwargs)
765 return val
766 def SetParent(self, *_args, **_kwargs):
767 val = apply(windowsc.wxMenu_SetParent,(self,) + _args, _kwargs)
768 return val
769 def GetParent(self, *_args, **_kwargs):
770 val = apply(windowsc.wxMenu_GetParent,(self,) + _args, _kwargs)
771 if val: val = wxMenuPtr(val)
772 return val
773 def __repr__(self):
774 return "<C wxMenu instance at %s>" % (self.this,)
775 class wxMenu(wxMenuPtr):
776 def __init__(self,*_args,**_kwargs):
777 self.this = apply(windowsc.new_wxMenu,_args,_kwargs)
778 self.thisown = 1
779
780
781
782
783 class wxMenuBarPtr(wxWindowPtr):
784 def __init__(self,this):
785 self.this = this
786 self.thisown = 0
787 def Append(self, *_args, **_kwargs):
788 val = apply(windowsc.wxMenuBar_Append,(self,) + _args, _kwargs)
789 return val
790 def Insert(self, *_args, **_kwargs):
791 val = apply(windowsc.wxMenuBar_Insert,(self,) + _args, _kwargs)
792 return val
793 def GetMenuCount(self, *_args, **_kwargs):
794 val = apply(windowsc.wxMenuBar_GetMenuCount,(self,) + _args, _kwargs)
795 return val
796 def GetMenu(self, *_args, **_kwargs):
797 val = apply(windowsc.wxMenuBar_GetMenu,(self,) + _args, _kwargs)
798 if val: val = wxMenuPtr(val)
799 return val
800 def Replace(self, *_args, **_kwargs):
801 val = apply(windowsc.wxMenuBar_Replace,(self,) + _args, _kwargs)
802 if val: val = wxMenuPtr(val)
803 return val
804 def Remove(self, *_args, **_kwargs):
805 val = apply(windowsc.wxMenuBar_Remove,(self,) + _args, _kwargs)
806 if val: val = wxMenuPtr(val)
807 return val
808 def EnableTop(self, *_args, **_kwargs):
809 val = apply(windowsc.wxMenuBar_EnableTop,(self,) + _args, _kwargs)
810 return val
811 def SetLabelTop(self, *_args, **_kwargs):
812 val = apply(windowsc.wxMenuBar_SetLabelTop,(self,) + _args, _kwargs)
813 return val
814 def GetLabelTop(self, *_args, **_kwargs):
815 val = apply(windowsc.wxMenuBar_GetLabelTop,(self,) + _args, _kwargs)
816 return val
817 def FindMenuItem(self, *_args, **_kwargs):
818 val = apply(windowsc.wxMenuBar_FindMenuItem,(self,) + _args, _kwargs)
819 return val
820 def FindItemById(self, *_args, **_kwargs):
821 val = apply(windowsc.wxMenuBar_FindItemById,(self,) + _args, _kwargs)
822 if val: val = wxMenuItemPtr(val)
823 return val
824 def Enable(self, *_args, **_kwargs):
825 val = apply(windowsc.wxMenuBar_Enable,(self,) + _args, _kwargs)
826 return val
827 def Check(self, *_args, **_kwargs):
828 val = apply(windowsc.wxMenuBar_Check,(self,) + _args, _kwargs)
829 return val
830 def IsChecked(self, *_args, **_kwargs):
831 val = apply(windowsc.wxMenuBar_IsChecked,(self,) + _args, _kwargs)
832 return val
833 def IsEnabled(self, *_args, **_kwargs):
834 val = apply(windowsc.wxMenuBar_IsEnabled,(self,) + _args, _kwargs)
835 return val
836 def SetLabel(self, *_args, **_kwargs):
837 val = apply(windowsc.wxMenuBar_SetLabel,(self,) + _args, _kwargs)
838 return val
839 def GetLabel(self, *_args, **_kwargs):
840 val = apply(windowsc.wxMenuBar_GetLabel,(self,) + _args, _kwargs)
841 return val
842 def SetHelpString(self, *_args, **_kwargs):
843 val = apply(windowsc.wxMenuBar_SetHelpString,(self,) + _args, _kwargs)
844 return val
845 def GetHelpString(self, *_args, **_kwargs):
846 val = apply(windowsc.wxMenuBar_GetHelpString,(self,) + _args, _kwargs)
847 return val
848 def __repr__(self):
849 return "<C wxMenuBar instance at %s>" % (self.this,)
850 class wxMenuBar(wxMenuBarPtr):
851 def __init__(self,*_args,**_kwargs):
852 self.this = apply(windowsc.new_wxMenuBar,_args,_kwargs)
853 self.thisown = 1
854
855
856
857
858 class wxMenuItemPtr :
859 def __init__(self,this):
860 self.this = this
861 self.thisown = 0
862 def GetMenu(self, *_args, **_kwargs):
863 val = apply(windowsc.wxMenuItem_GetMenu,(self,) + _args, _kwargs)
864 if val: val = wxMenuPtr(val)
865 return val
866 def SetId(self, *_args, **_kwargs):
867 val = apply(windowsc.wxMenuItem_SetId,(self,) + _args, _kwargs)
868 return val
869 def GetId(self, *_args, **_kwargs):
870 val = apply(windowsc.wxMenuItem_GetId,(self,) + _args, _kwargs)
871 return val
872 def IsSeparator(self, *_args, **_kwargs):
873 val = apply(windowsc.wxMenuItem_IsSeparator,(self,) + _args, _kwargs)
874 return val
875 def SetText(self, *_args, **_kwargs):
876 val = apply(windowsc.wxMenuItem_SetText,(self,) + _args, _kwargs)
877 return val
878 def GetLabel(self, *_args, **_kwargs):
879 val = apply(windowsc.wxMenuItem_GetLabel,(self,) + _args, _kwargs)
880 return val
881 def GetText(self, *_args, **_kwargs):
882 val = apply(windowsc.wxMenuItem_GetText,(self,) + _args, _kwargs)
883 return val
884 def SetCheckable(self, *_args, **_kwargs):
885 val = apply(windowsc.wxMenuItem_SetCheckable,(self,) + _args, _kwargs)
886 return val
887 def IsCheckable(self, *_args, **_kwargs):
888 val = apply(windowsc.wxMenuItem_IsCheckable,(self,) + _args, _kwargs)
889 return val
890 def IsSubMenu(self, *_args, **_kwargs):
891 val = apply(windowsc.wxMenuItem_IsSubMenu,(self,) + _args, _kwargs)
892 return val
893 def SetSubMenu(self, *_args, **_kwargs):
894 val = apply(windowsc.wxMenuItem_SetSubMenu,(self,) + _args, _kwargs)
895 return val
896 def GetSubMenu(self, *_args, **_kwargs):
897 val = apply(windowsc.wxMenuItem_GetSubMenu,(self,) + _args, _kwargs)
898 if val: val = wxMenuPtr(val)
899 return val
900 def Enable(self, *_args, **_kwargs):
901 val = apply(windowsc.wxMenuItem_Enable,(self,) + _args, _kwargs)
902 return val
903 def IsEnabled(self, *_args, **_kwargs):
904 val = apply(windowsc.wxMenuItem_IsEnabled,(self,) + _args, _kwargs)
905 return val
906 def Check(self, *_args, **_kwargs):
907 val = apply(windowsc.wxMenuItem_Check,(self,) + _args, _kwargs)
908 return val
909 def IsChecked(self, *_args, **_kwargs):
910 val = apply(windowsc.wxMenuItem_IsChecked,(self,) + _args, _kwargs)
911 return val
912 def Toggle(self, *_args, **_kwargs):
913 val = apply(windowsc.wxMenuItem_Toggle,(self,) + _args, _kwargs)
914 return val
915 def SetHelp(self, *_args, **_kwargs):
916 val = apply(windowsc.wxMenuItem_SetHelp,(self,) + _args, _kwargs)
917 return val
918 def GetHelp(self, *_args, **_kwargs):
919 val = apply(windowsc.wxMenuItem_GetHelp,(self,) + _args, _kwargs)
920 return val
921 def GetAccel(self, *_args, **_kwargs):
922 val = apply(windowsc.wxMenuItem_GetAccel,(self,) + _args, _kwargs)
923 if val: val = wxAcceleratorEntryPtr(val)
924 return val
925 def SetAccel(self, *_args, **_kwargs):
926 val = apply(windowsc.wxMenuItem_SetAccel,(self,) + _args, _kwargs)
927 return val
928 def __repr__(self):
929 return "<C wxMenuItem instance at %s>" % (self.this,)
930 class wxMenuItem(wxMenuItemPtr):
931 def __init__(self,*_args,**_kwargs):
932 self.this = apply(windowsc.new_wxMenuItem,_args,_kwargs)
933 self.thisown = 1
934
935
936
937
938
939
940 #-------------- FUNCTION WRAPPERS ------------------
941
942 wxValidator_IsSilent = windowsc.wxValidator_IsSilent
943
944 wxValidator_SetBellOnError = windowsc.wxValidator_SetBellOnError
945
946 def wxWindow_FindFocus(*_args, **_kwargs):
947 val = apply(windowsc.wxWindow_FindFocus,_args,_kwargs)
948 if val: val = wxWindowPtr(val)
949 return val
950
951 def wxWindow_FromHWND(*_args, **_kwargs):
952 val = apply(windowsc.wxWindow_FromHWND,_args,_kwargs)
953 if val: val = wxWindowPtr(val)
954 return val
955
956 wxWindow_NewControlId = windowsc.wxWindow_NewControlId
957
958 wxWindow_NextControlId = windowsc.wxWindow_NextControlId
959
960 wxWindow_PrevControlId = windowsc.wxWindow_PrevControlId
961
962
963
964 #-------------- VARIABLE WRAPPERS ------------------
965