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