]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/windows.py
Beginings of wxGTK compatibility
[wxWidgets.git] / utils / wxPython / src / windows.py
1 # This file was created automatically by SWIG.
2 import windowsc
3
4 from misc import *
5
6 from gdi import *
7 class wxEvtHandlerPtr :
8 def __init__(self,this):
9 self.this = this
10 self.thisown = 0
11 def Connect(self,arg0,arg1,arg2,arg3):
12 val = windowsc.wxEvtHandler_Connect(self.this,arg0,arg1,arg2,arg3)
13 return val
14 def __repr__(self):
15 return "<C wxEvtHandler instance>"
16 class wxEvtHandler(wxEvtHandlerPtr):
17 def __init__(self,this):
18 self.this = this
19
20
21
22
23 class wxWindowPtr(wxEvtHandlerPtr):
24 def __init__(self,this):
25 self.this = this
26 self.thisown = 0
27 def CaptureMouse(self):
28 val = windowsc.wxWindow_CaptureMouse(self.this)
29 return val
30 def Centre(self,*args):
31 val = apply(windowsc.wxWindow_Centre,(self.this,)+args)
32 return val
33 def ClientToScreen(self,arg0,arg1):
34 val = windowsc.wxWindow_ClientToScreen(self.this,arg0,arg1)
35 return val
36 def Close(self,*args):
37 val = apply(windowsc.wxWindow_Close,(self.this,)+args)
38 return val
39 def Destroy(self):
40 val = windowsc.wxWindow_Destroy(self.this)
41 return val
42 def DestroyChildren(self):
43 val = windowsc.wxWindow_DestroyChildren(self.this)
44 return val
45 def Enable(self,arg0):
46 val = windowsc.wxWindow_Enable(self.this,arg0)
47 return val
48 def Fit(self):
49 val = windowsc.wxWindow_Fit(self.this)
50 return val
51 def GetBackgroundColour(self):
52 val = windowsc.wxWindow_GetBackgroundColour(self.this)
53 val = wxColourPtr(val)
54 val.thisown = 1
55 return val
56 def GetClientSize(self):
57 val = windowsc.wxWindow_GetClientSize(self.this)
58 return val
59 def GetConstraints(self):
60 val = windowsc.wxWindow_GetConstraints(self.this)
61 val = wxLayoutConstraintsPtr(val)
62 return val
63 def GetFont(self):
64 val = windowsc.wxWindow_GetFont(self.this)
65 val = wxFontPtr(val)
66 return val
67 def GetId(self):
68 val = windowsc.wxWindow_GetId(self.this)
69 return val
70 def GetPosition(self):
71 val = windowsc.wxWindow_GetPosition(self.this)
72 return val
73 def GetLabel(self):
74 val = windowsc.wxWindow_GetLabel(self.this)
75 return val
76 def GetName(self):
77 val = windowsc.wxWindow_GetName(self.this)
78 return val
79 def GetParent(self):
80 val = windowsc.wxWindow_GetParent(self.this)
81 val = wxWindowPtr(val)
82 return val
83 def GetReturnCode(self):
84 val = windowsc.wxWindow_GetReturnCode(self.this)
85 return val
86 def GetScrollThumb(self,arg0):
87 val = windowsc.wxWindow_GetScrollThumb(self.this,arg0)
88 return val
89 def GetScrollPos(self,arg0):
90 val = windowsc.wxWindow_GetScrollPos(self.this,arg0)
91 return val
92 def GetScrollRange(self,arg0):
93 val = windowsc.wxWindow_GetScrollRange(self.this,arg0)
94 return val
95 def GetSize(self):
96 val = windowsc.wxWindow_GetSize(self.this)
97 return val
98 def GetTitle(self):
99 val = windowsc.wxWindow_GetTitle(self.this)
100 return val
101 def GetWindowStyleFlag(self):
102 val = windowsc.wxWindow_GetWindowStyleFlag(self.this)
103 return val
104 def InitDialog(self):
105 val = windowsc.wxWindow_InitDialog(self.this)
106 return val
107 def IsEnabled(self):
108 val = windowsc.wxWindow_IsEnabled(self.this)
109 return val
110 def IsRetained(self):
111 val = windowsc.wxWindow_IsRetained(self.this)
112 return val
113 def IsShown(self):
114 val = windowsc.wxWindow_IsShown(self.this)
115 return val
116 def Layout(self):
117 val = windowsc.wxWindow_Layout(self.this)
118 return val
119 def Lower(self):
120 val = windowsc.wxWindow_Lower(self.this)
121 return val
122 def MakeModal(self,arg0):
123 val = windowsc.wxWindow_MakeModal(self.this,arg0)
124 return val
125 def Move(self,arg0,arg1):
126 val = windowsc.wxWindow_Move(self.this,arg0,arg1)
127 return val
128 def PopupMenu(self,arg0,arg1,arg2):
129 val = windowsc.wxWindow_PopupMenu(self.this,arg0.this,arg1,arg2)
130 return val
131 def Raise(self):
132 val = windowsc.wxWindow_Raise(self.this)
133 return val
134 def Refresh(self,*args):
135 argl = map(None,args)
136 try: argl[1] = argl[1].this
137 except: pass
138 args = tuple(argl)
139 val = apply(windowsc.wxWindow_Refresh,(self.this,)+args)
140 return val
141 def ReleaseMouse(self):
142 val = windowsc.wxWindow_ReleaseMouse(self.this)
143 return val
144 def ScreenToClient(self,arg0,arg1):
145 val = windowsc.wxWindow_ScreenToClient(self.this,arg0,arg1)
146 return val
147 def ScrollWindow(self,arg0,arg1,*args):
148 argl = map(None,args)
149 try: argl[0] = argl[0].this
150 except: pass
151 args = tuple(argl)
152 val = apply(windowsc.wxWindow_ScrollWindow,(self.this,arg0,arg1,)+args)
153 return val
154 def SetAutoLayout(self,arg0):
155 val = windowsc.wxWindow_SetAutoLayout(self.this,arg0)
156 return val
157 def SetBackgroundColour(self,arg0):
158 val = windowsc.wxWindow_SetBackgroundColour(self.this,arg0.this)
159 return val
160 def SetConstraints(self,arg0):
161 val = windowsc.wxWindow_SetConstraints(self.this,arg0.this)
162 return val
163 def SetDoubleClick(self,arg0):
164 val = windowsc.wxWindow_SetDoubleClick(self.this,arg0)
165 return val
166 def SetFocus(self):
167 val = windowsc.wxWindow_SetFocus(self.this)
168 return val
169 def SetFont(self,arg0):
170 val = windowsc.wxWindow_SetFont(self.this,arg0.this)
171 return val
172 def SetId(self,arg0):
173 val = windowsc.wxWindow_SetId(self.this,arg0)
174 return val
175 def SetName(self,arg0):
176 val = windowsc.wxWindow_SetName(self.this,arg0)
177 return val
178 def SetReturnCode(self,arg0):
179 val = windowsc.wxWindow_SetReturnCode(self.this,arg0)
180 return val
181 def SetScrollbar(self,arg0,arg1,arg2,arg3,*args):
182 val = apply(windowsc.wxWindow_SetScrollbar,(self.this,arg0,arg1,arg2,arg3,)+args)
183 return val
184 def SetScrollPos(self,arg0,arg1,*args):
185 val = apply(windowsc.wxWindow_SetScrollPos,(self.this,arg0,arg1,)+args)
186 return val
187 def SetDimensions(self,arg0,arg1,arg2,arg3,*args):
188 val = apply(windowsc.wxWindow_SetDimensions,(self.this,arg0,arg1,arg2,arg3,)+args)
189 return val
190 def SetSize(self,arg0):
191 val = windowsc.wxWindow_SetSize(self.this,arg0.this)
192 return val
193 def SetPosition(self,arg0):
194 val = windowsc.wxWindow_SetPosition(self.this,arg0.this)
195 return val
196 def SetClientSize(self,arg0,arg1):
197 val = windowsc.wxWindow_SetClientSize(self.this,arg0,arg1)
198 return val
199 def SetCursor(self,arg0):
200 val = windowsc.wxWindow_SetCursor(self.this,arg0.this)
201 return val
202 def SetTitle(self,arg0):
203 val = windowsc.wxWindow_SetTitle(self.this,arg0)
204 return val
205 def Show(self,arg0):
206 val = windowsc.wxWindow_Show(self.this,arg0)
207 return val
208 def TransferDataFromWindow(self):
209 val = windowsc.wxWindow_TransferDataFromWindow(self.this)
210 return val
211 def TransferDataToWindow(self):
212 val = windowsc.wxWindow_TransferDataToWindow(self.this)
213 return val
214 def Validate(self):
215 val = windowsc.wxWindow_Validate(self.this)
216 return val
217 def __repr__(self):
218 return "<C wxWindow instance>"
219 class wxWindow(wxWindowPtr):
220 def __init__(self,arg0,arg1,*args) :
221 argl = map(None,args)
222 try: argl[0] = argl[0].this
223 except: pass
224 try: argl[1] = argl[1].this
225 except: pass
226 args = tuple(argl)
227 self.this = apply(windowsc.new_wxWindow,(arg0.this,arg1,)+args)
228 self.thisown = 1
229
230
231
232
233 class wxFramePtr(wxWindowPtr):
234 def __init__(self,this):
235 self.this = this
236 self.thisown = 0
237 def Centre(self,*args):
238 val = apply(windowsc.wxFrame_Centre,(self.this,)+args)
239 return val
240 def CreateStatusBar(self,*args):
241 val = apply(windowsc.wxFrame_CreateStatusBar,(self.this,)+args)
242 return val
243 def GetMenuBar(self):
244 val = windowsc.wxFrame_GetMenuBar(self.this)
245 val = wxMenuBarPtr(val)
246 return val
247 def GetStatusBar(self):
248 val = windowsc.wxFrame_GetStatusBar(self.this)
249 return val
250 def GetTitle(self):
251 val = windowsc.wxFrame_GetTitle(self.this)
252 return val
253 def SetIcon(self,arg0):
254 val = windowsc.wxFrame_SetIcon(self.this,arg0.this)
255 return val
256 def SetMenuBar(self,arg0):
257 val = windowsc.wxFrame_SetMenuBar(self.this,arg0.this)
258 return val
259 def SetStatusText(self,arg0,*args):
260 val = apply(windowsc.wxFrame_SetStatusText,(self.this,arg0,)+args)
261 return val
262 def SetStatusWidths(self,arg0,*args):
263 val = apply(windowsc.wxFrame_SetStatusWidths,(self.this,arg0,)+args)
264 return val
265 def SetTitle(self,arg0):
266 val = windowsc.wxFrame_SetTitle(self.this,arg0)
267 return val
268 def __repr__(self):
269 return "<C wxFrame instance>"
270 class wxFrame(wxFramePtr):
271 def __init__(self,arg0,arg1,arg2,*args) :
272 argl = map(None,args)
273 try: argl[0] = argl[0].this
274 except: pass
275 try: argl[1] = argl[1].this
276 except: pass
277 args = tuple(argl)
278 self.this = apply(windowsc.new_wxFrame,(arg0.this,arg1,arg2,)+args)
279 self.thisown = 1
280
281
282
283
284 class wxPanelPtr(wxWindowPtr):
285 def __init__(self,this):
286 self.this = this
287 self.thisown = 0
288 def InitDialog(self):
289 val = windowsc.wxPanel_InitDialog(self.this)
290 return val
291 def __repr__(self):
292 return "<C wxPanel instance>"
293 class wxPanel(wxPanelPtr):
294 def __init__(self,arg0,arg1,*args) :
295 argl = map(None,args)
296 try: argl[0] = argl[0].this
297 except: pass
298 try: argl[1] = argl[1].this
299 except: pass
300 args = tuple(argl)
301 self.this = apply(windowsc.new_wxPanel,(arg0.this,arg1,)+args)
302 self.thisown = 1
303
304
305
306
307 class wxDialogPtr(wxPanelPtr):
308 def __init__(self,this):
309 self.this = this
310 self.thisown = 0
311 def Centre(self,*args):
312 val = apply(windowsc.wxDialog_Centre,(self.this,)+args)
313 return val
314 def EndModal(self,arg0):
315 val = windowsc.wxDialog_EndModal(self.this,arg0)
316 return val
317 def GetTitle(self):
318 val = windowsc.wxDialog_GetTitle(self.this)
319 return val
320 def IsModal(self):
321 val = windowsc.wxDialog_IsModal(self.this)
322 return val
323 def SetTitle(self,arg0):
324 val = windowsc.wxDialog_SetTitle(self.this,arg0)
325 return val
326 def Show(self,arg0):
327 val = windowsc.wxDialog_Show(self.this,arg0)
328 return val
329 def ShowModal(self):
330 val = windowsc.wxDialog_ShowModal(self.this)
331 return val
332 def __repr__(self):
333 return "<C wxDialog instance>"
334 class wxDialog(wxDialogPtr):
335 def __init__(self,arg0,arg1,arg2,*args) :
336 argl = map(None,args)
337 try: argl[0] = argl[0].this
338 except: pass
339 try: argl[1] = argl[1].this
340 except: pass
341 args = tuple(argl)
342 self.this = apply(windowsc.new_wxDialog,(arg0.this,arg1,arg2,)+args)
343 self.thisown = 1
344
345
346
347
348 class wxScrolledWindowPtr(wxWindowPtr):
349 def __init__(self,this):
350 self.this = this
351 self.thisown = 0
352 def EnableScrolling(self,arg0,arg1):
353 val = windowsc.wxScrolledWindow_EnableScrolling(self.this,arg0,arg1)
354 return val
355 def GetScrollPixelsPerUnit(self):
356 val = windowsc.wxScrolledWindow_GetScrollPixelsPerUnit(self.this)
357 return val
358 def GetVirtualSize(self):
359 val = windowsc.wxScrolledWindow_GetVirtualSize(self.this)
360 return val
361 def IsRetained(self):
362 val = windowsc.wxScrolledWindow_IsRetained(self.this)
363 return val
364 def PrepareDC(self,arg0):
365 val = windowsc.wxScrolledWindow_PrepareDC(self.this,arg0.this)
366 return val
367 def Scroll(self,arg0,arg1):
368 val = windowsc.wxScrolledWindow_Scroll(self.this,arg0,arg1)
369 return val
370 def SetScrollbars(self,arg0,arg1,arg2,arg3,*args):
371 val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self.this,arg0,arg1,arg2,arg3,)+args)
372 return val
373 def ViewStart(self):
374 val = windowsc.wxScrolledWindow_ViewStart(self.this)
375 return val
376 def __repr__(self):
377 return "<C wxScrolledWindow instance>"
378 class wxScrolledWindow(wxScrolledWindowPtr):
379 def __init__(self,arg0,*args) :
380 argl = map(None,args)
381 try: argl[1] = argl[1].this
382 except: pass
383 try: argl[2] = argl[2].this
384 except: pass
385 args = tuple(argl)
386 self.this = apply(windowsc.new_wxScrolledWindow,(arg0.this,)+args)
387 self.thisown = 1
388
389
390
391
392 class wxMenuPtr(wxEvtHandlerPtr):
393 def __init__(self,this):
394 self.this = this
395 self.thisown = 0
396 def Append(self,arg0,arg1,*args):
397 val = apply(windowsc.wxMenu_Append,(self.this,arg0,arg1,)+args)
398 return val
399 def AppendMenu(self,arg0,arg1,arg2,*args):
400 val = apply(windowsc.wxMenu_AppendMenu,(self.this,arg0,arg1,arg2.this,)+args)
401 return val
402 def AppendSeparator(self):
403 val = windowsc.wxMenu_AppendSeparator(self.this)
404 return val
405 def Break(self):
406 val = windowsc.wxMenu_Break(self.this)
407 return val
408 def Check(self,arg0,arg1):
409 val = windowsc.wxMenu_Check(self.this,arg0,arg1)
410 return val
411 def Enable(self,arg0,arg1):
412 val = windowsc.wxMenu_Enable(self.this,arg0,arg1)
413 return val
414 def FindItem(self,arg0):
415 val = windowsc.wxMenu_FindItem(self.this,arg0)
416 return val
417 def IsChecked(self,arg0):
418 val = windowsc.wxMenu_IsChecked(self.this,arg0)
419 return val
420 def IsEnabled(self,arg0):
421 val = windowsc.wxMenu_IsEnabled(self.this,arg0)
422 return val
423 def SetLabel(self,arg0,arg1):
424 val = windowsc.wxMenu_SetLabel(self.this,arg0,arg1)
425 return val
426 def __repr__(self):
427 return "<C wxMenu instance>"
428 class wxMenu(wxMenuPtr):
429 def __init__(self,*args) :
430 self.this = apply(windowsc.new_wxMenu,()+args)
431 self.thisown = 1
432
433
434
435
436 class wxMenuBarPtr(wxEvtHandlerPtr):
437 def __init__(self,this):
438 self.this = this
439 self.thisown = 0
440 def Append(self,arg0,arg1):
441 val = windowsc.wxMenuBar_Append(self.this,arg0.this,arg1)
442 return val
443 def Check(self,arg0,arg1):
444 val = windowsc.wxMenuBar_Check(self.this,arg0,arg1)
445 return val
446 def Checked(self,arg0):
447 val = windowsc.wxMenuBar_Checked(self.this,arg0)
448 return val
449 def Enable(self,arg0,arg1):
450 val = windowsc.wxMenuBar_Enable(self.this,arg0,arg1)
451 return val
452 def FindMenuItem(self,arg0,arg1):
453 val = windowsc.wxMenuBar_FindMenuItem(self.this,arg0,arg1)
454 return val
455 def __repr__(self):
456 return "<C wxMenuBar instance>"
457 class wxMenuBar(wxMenuBarPtr):
458 def __init__(self) :
459 self.this = windowsc.new_wxMenuBar()
460 self.thisown = 1
461
462
463
464
465 class wxMenuItemPtr :
466 def __init__(self,this):
467 self.this = this
468 self.thisown = 0
469 def IsSeparator(self):
470 val = windowsc.wxMenuItem_IsSeparator(self.this)
471 return val
472 def IsEnabled(self):
473 val = windowsc.wxMenuItem_IsEnabled(self.this)
474 return val
475 def IsChecked(self):
476 val = windowsc.wxMenuItem_IsChecked(self.this)
477 return val
478 def GetId(self):
479 val = windowsc.wxMenuItem_GetId(self.this)
480 return val
481 def GetSubMenu(self):
482 val = windowsc.wxMenuItem_GetSubMenu(self.this)
483 val = wxMenuPtr(val)
484 return val
485 def Enable(self,*args):
486 val = apply(windowsc.wxMenuItem_Enable,(self.this,)+args)
487 return val
488 def Check(self,*args):
489 val = apply(windowsc.wxMenuItem_Check,(self.this,)+args)
490 return val
491 def IsCheckable(self):
492 val = windowsc.wxMenuItem_IsCheckable(self.this)
493 return val
494 def __repr__(self):
495 return "<C wxMenuItem instance>"
496 class wxMenuItem(wxMenuItemPtr):
497 def __init__(self,this):
498 self.this = this
499
500
501
502
503
504
505 #-------------- FUNCTION WRAPPERS ------------------
506
507
508
509 #-------------- VARIABLE WRAPPERS ------------------
510