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