]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/windows.py
Tweaks needed to be able to build wxPython with wxGTK.
[wxWidgets.git] / utils / wxPython / src / gtk / 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):
10 return win.ConvertDialogPointToPixels(point)
11
12 def wxDLG_SZE(win, size):
13 return win.ConvertDialogPointToPixels(size)
14
15 class wxEvtHandlerPtr :
16 def __init__(self,this):
17 self.this = this
18 self.thisown = 0
19 def Connect(self,arg0,arg1,arg2,arg3):
20 val = windowsc.wxEvtHandler_Connect(self.this,arg0,arg1,arg2,arg3)
21 return val
22 def __repr__(self):
23 return "<C wxEvtHandler instance>"
24 class wxEvtHandler(wxEvtHandlerPtr):
25 def __init__(self,this):
26 self.this = this
27
28
29
30
31 class wxWindowPtr(wxEvtHandlerPtr):
32 def __init__(self,this):
33 self.this = this
34 self.thisown = 0
35 def CaptureMouse(self):
36 val = windowsc.wxWindow_CaptureMouse(self.this)
37 return val
38 def Center(self,*args):
39 val = apply(windowsc.wxWindow_Center,(self.this,)+args)
40 return val
41 def Centre(self,*args):
42 val = apply(windowsc.wxWindow_Centre,(self.this,)+args)
43 return val
44 def ClientToScreen(self,arg0,arg1):
45 val = windowsc.wxWindow_ClientToScreen(self.this,arg0,arg1)
46 return val
47 def Close(self,*args):
48 val = apply(windowsc.wxWindow_Close,(self.this,)+args)
49 return val
50 def Destroy(self):
51 val = windowsc.wxWindow_Destroy(self.this)
52 return val
53 def DestroyChildren(self):
54 val = windowsc.wxWindow_DestroyChildren(self.this)
55 return val
56 def Enable(self,arg0):
57 val = windowsc.wxWindow_Enable(self.this,arg0)
58 return val
59 def FindWindowByID(self,arg0):
60 val = windowsc.wxWindow_FindWindowByID(self.this,arg0)
61 val = wxWindowPtr(val)
62 return val
63 def FindWindowByName(self,arg0):
64 val = windowsc.wxWindow_FindWindowByName(self.this,arg0)
65 val = wxWindowPtr(val)
66 return val
67 def Fit(self):
68 val = windowsc.wxWindow_Fit(self.this)
69 return val
70 def GetBackgroundColour(self):
71 val = windowsc.wxWindow_GetBackgroundColour(self.this)
72 val = wxColourPtr(val)
73 val.thisown = 1
74 return val
75 def GetCharHeight(self):
76 val = windowsc.wxWindow_GetCharHeight(self.this)
77 return val
78 def GetCharWidth(self):
79 val = windowsc.wxWindow_GetCharWidth(self.this)
80 return val
81 def GetClientSizeTuple(self):
82 val = windowsc.wxWindow_GetClientSizeTuple(self.this)
83 return val
84 def GetClientSize(self):
85 val = windowsc.wxWindow_GetClientSize(self.this)
86 val = wxSizePtr(val)
87 val.thisown = 1
88 return val
89 def GetConstraints(self):
90 val = windowsc.wxWindow_GetConstraints(self.this)
91 val = wxLayoutConstraintsPtr(val)
92 return val
93 def GetFont(self):
94 val = windowsc.wxWindow_GetFont(self.this)
95 val = wxFontPtr(val)
96 val.thisown = 1
97 return val
98 def GetForegroundColour(self):
99 val = windowsc.wxWindow_GetForegroundColour(self.this)
100 val = wxColourPtr(val)
101 val.thisown = 1
102 return val
103 def GetGrandParent(self):
104 val = windowsc.wxWindow_GetGrandParent(self.this)
105 val = wxWindowPtr(val)
106 return val
107 def GetId(self):
108 val = windowsc.wxWindow_GetId(self.this)
109 return val
110 def GetLabel(self):
111 val = windowsc.wxWindow_GetLabel(self.this)
112 return val
113 def GetName(self):
114 val = windowsc.wxWindow_GetName(self.this)
115 return val
116 def GetParent(self):
117 val = windowsc.wxWindow_GetParent(self.this)
118 val = wxWindowPtr(val)
119 return val
120 def GetPositionTuple(self):
121 val = windowsc.wxWindow_GetPositionTuple(self.this)
122 return val
123 def GetReturnCode(self):
124 val = windowsc.wxWindow_GetReturnCode(self.this)
125 return val
126 def GetScrollThumb(self,arg0):
127 val = windowsc.wxWindow_GetScrollThumb(self.this,arg0)
128 return val
129 def GetScrollPos(self,arg0):
130 val = windowsc.wxWindow_GetScrollPos(self.this,arg0)
131 return val
132 def GetScrollRange(self,arg0):
133 val = windowsc.wxWindow_GetScrollRange(self.this,arg0)
134 return val
135 def GetSizeTuple(self):
136 val = windowsc.wxWindow_GetSizeTuple(self.this)
137 return val
138 def GetTextExtent(self,arg0):
139 val = windowsc.wxWindow_GetTextExtent(self.this,arg0)
140 return val
141 def GetTitle(self):
142 val = windowsc.wxWindow_GetTitle(self.this)
143 return val
144 def GetWindowStyleFlag(self):
145 val = windowsc.wxWindow_GetWindowStyleFlag(self.this)
146 return val
147 def InitDialog(self):
148 val = windowsc.wxWindow_InitDialog(self.this)
149 return val
150 def IsEnabled(self):
151 val = windowsc.wxWindow_IsEnabled(self.this)
152 return val
153 def IsRetained(self):
154 val = windowsc.wxWindow_IsRetained(self.this)
155 return val
156 def IsShown(self):
157 val = windowsc.wxWindow_IsShown(self.this)
158 return val
159 def Layout(self):
160 val = windowsc.wxWindow_Layout(self.this)
161 return val
162 def LoadFromResource(self,arg0,arg1,*args):
163 val = apply(windowsc.wxWindow_LoadFromResource,(self.this,arg0.this,arg1,)+args)
164 return val
165 def Lower(self):
166 val = windowsc.wxWindow_Lower(self.this)
167 return val
168 def MakeModal(self,arg0):
169 val = windowsc.wxWindow_MakeModal(self.this,arg0)
170 return val
171 def Move(self,arg0,arg1):
172 val = windowsc.wxWindow_Move(self.this,arg0,arg1)
173 return val
174 def PopupMenu(self,arg0,arg1,arg2):
175 val = windowsc.wxWindow_PopupMenu(self.this,arg0.this,arg1,arg2)
176 return val
177 def Raise(self):
178 val = windowsc.wxWindow_Raise(self.this)
179 return val
180 def Refresh(self,*args):
181 argl = map(None,args)
182 try: argl[1] = argl[1].this
183 except: pass
184 args = tuple(argl)
185 val = apply(windowsc.wxWindow_Refresh,(self.this,)+args)
186 return val
187 def ReleaseMouse(self):
188 val = windowsc.wxWindow_ReleaseMouse(self.this)
189 return val
190 def ScreenToClient(self,arg0,arg1):
191 val = windowsc.wxWindow_ScreenToClient(self.this,arg0,arg1)
192 return val
193 def ScrollWindow(self,arg0,arg1,*args):
194 argl = map(None,args)
195 try: argl[0] = argl[0].this
196 except: pass
197 args = tuple(argl)
198 val = apply(windowsc.wxWindow_ScrollWindow,(self.this,arg0,arg1,)+args)
199 return val
200 def SetAcceleratorTable(self,arg0):
201 val = windowsc.wxWindow_SetAcceleratorTable(self.this,arg0.this)
202 return val
203 def SetAutoLayout(self,arg0):
204 val = windowsc.wxWindow_SetAutoLayout(self.this,arg0)
205 return val
206 def SetBackgroundColour(self,arg0):
207 val = windowsc.wxWindow_SetBackgroundColour(self.this,arg0.this)
208 return val
209 def SetConstraints(self,arg0):
210 val = windowsc.wxWindow_SetConstraints(self.this,arg0.this)
211 return val
212 def SetDoubleClick(self,arg0):
213 val = windowsc.wxWindow_SetDoubleClick(self.this,arg0)
214 return val
215 def SetFocus(self):
216 val = windowsc.wxWindow_SetFocus(self.this)
217 return val
218 def SetFont(self,arg0):
219 val = windowsc.wxWindow_SetFont(self.this,arg0.this)
220 return val
221 def SetForegroundColour(self,arg0):
222 val = windowsc.wxWindow_SetForegroundColour(self.this,arg0.this)
223 return val
224 def SetId(self,arg0):
225 val = windowsc.wxWindow_SetId(self.this,arg0)
226 return val
227 def SetName(self,arg0):
228 val = windowsc.wxWindow_SetName(self.this,arg0)
229 return val
230 def SetReturnCode(self,arg0):
231 val = windowsc.wxWindow_SetReturnCode(self.this,arg0)
232 return val
233 def SetScrollbar(self,arg0,arg1,arg2,arg3,*args):
234 val = apply(windowsc.wxWindow_SetScrollbar,(self.this,arg0,arg1,arg2,arg3,)+args)
235 return val
236 def SetScrollPos(self,arg0,arg1,*args):
237 val = apply(windowsc.wxWindow_SetScrollPos,(self.this,arg0,arg1,)+args)
238 return val
239 def SetDimensions(self,arg0,arg1,arg2,arg3,*args):
240 val = apply(windowsc.wxWindow_SetDimensions,(self.this,arg0,arg1,arg2,arg3,)+args)
241 return val
242 def SetSize(self,arg0):
243 val = windowsc.wxWindow_SetSize(self.this,arg0.this)
244 return val
245 def SetPosition(self,arg0):
246 val = windowsc.wxWindow_SetPosition(self.this,arg0.this)
247 return val
248 def SetSizeHints(self,*args):
249 val = apply(windowsc.wxWindow_SetSizeHints,(self.this,)+args)
250 return val
251 def SetClientSize(self,arg0,arg1):
252 val = windowsc.wxWindow_SetClientSize(self.this,arg0,arg1)
253 return val
254 def SetCursor(self,arg0):
255 val = windowsc.wxWindow_SetCursor(self.this,arg0.this)
256 return val
257 def SetTitle(self,arg0):
258 val = windowsc.wxWindow_SetTitle(self.this,arg0)
259 return val
260 def Show(self,arg0):
261 val = windowsc.wxWindow_Show(self.this,arg0)
262 return val
263 def TransferDataFromWindow(self):
264 val = windowsc.wxWindow_TransferDataFromWindow(self.this)
265 return val
266 def TransferDataToWindow(self):
267 val = windowsc.wxWindow_TransferDataToWindow(self.this)
268 return val
269 def Validate(self):
270 val = windowsc.wxWindow_Validate(self.this)
271 return val
272 def ConvertDialogPointToPixels(self,arg0):
273 val = windowsc.wxWindow_ConvertDialogPointToPixels(self.this,arg0.this)
274 val = wxPointPtr(val)
275 val.thisown = 1
276 return val
277 def ConvertDialogSizeToPixels(self,arg0):
278 val = windowsc.wxWindow_ConvertDialogSizeToPixels(self.this,arg0.this)
279 val = wxSizePtr(val)
280 val.thisown = 1
281 return val
282 def ConvertPixelPointToDialog(self,arg0):
283 val = windowsc.wxWindow_ConvertPixelPointToDialog(self.this,arg0.this)
284 val = wxPointPtr(val)
285 val.thisown = 1
286 return val
287 def ConvertPixelSizeToDialog(self,arg0):
288 val = windowsc.wxWindow_ConvertPixelSizeToDialog(self.this,arg0.this)
289 val = wxSizePtr(val)
290 val.thisown = 1
291 return val
292 def __repr__(self):
293 return "<C wxWindow instance>"
294 class wxWindow(wxWindowPtr):
295 def __init__(self,arg0,arg1,*args) :
296 argl = map(None,args)
297 try: argl[0] = argl[0].this
298 except: pass
299 try: argl[1] = argl[1].this
300 except: pass
301 args = tuple(argl)
302 self.this = apply(windowsc.new_wxWindow,(arg0.this,arg1,)+args)
303 self.thisown = 1
304 wx._StdWindowCallbacks(self)
305
306
307
308
309 class wxPanelPtr(wxWindowPtr):
310 def __init__(self,this):
311 self.this = this
312 self.thisown = 0
313 def InitDialog(self):
314 val = windowsc.wxPanel_InitDialog(self.this)
315 return val
316 def __repr__(self):
317 return "<C wxPanel instance>"
318 class wxPanel(wxPanelPtr):
319 def __init__(self,arg0,arg1,*args) :
320 argl = map(None,args)
321 try: argl[0] = argl[0].this
322 except: pass
323 try: argl[1] = argl[1].this
324 except: pass
325 args = tuple(argl)
326 self.this = apply(windowsc.new_wxPanel,(arg0.this,arg1,)+args)
327 self.thisown = 1
328 wx._StdWindowCallbacks(self)
329
330
331
332
333 class wxDialogPtr(wxPanelPtr):
334 def __init__(self,this):
335 self.this = this
336 self.thisown = 0
337 def Centre(self,*args):
338 val = apply(windowsc.wxDialog_Centre,(self.this,)+args)
339 return val
340 def EndModal(self,arg0):
341 val = windowsc.wxDialog_EndModal(self.this,arg0)
342 return val
343 def GetTitle(self):
344 val = windowsc.wxDialog_GetTitle(self.this)
345 return val
346 def Iconize(self,arg0):
347 val = windowsc.wxDialog_Iconize(self.this,arg0)
348 return val
349 def IsIconized(self):
350 val = windowsc.wxDialog_IsIconized(self.this)
351 return val
352 def SetModal(self,arg0):
353 val = windowsc.wxDialog_SetModal(self.this,arg0)
354 return val
355 def IsModal(self):
356 val = windowsc.wxDialog_IsModal(self.this)
357 return val
358 def SetTitle(self,arg0):
359 val = windowsc.wxDialog_SetTitle(self.this,arg0)
360 return val
361 def Show(self,arg0):
362 val = windowsc.wxDialog_Show(self.this,arg0)
363 return val
364 def ShowModal(self):
365 val = windowsc.wxDialog_ShowModal(self.this)
366 return val
367 def __repr__(self):
368 return "<C wxDialog instance>"
369 class wxDialog(wxDialogPtr):
370 def __init__(self,arg0,arg1,arg2,*args) :
371 argl = map(None,args)
372 try: argl[0] = argl[0].this
373 except: pass
374 try: argl[1] = argl[1].this
375 except: pass
376 args = tuple(argl)
377 self.this = apply(windowsc.new_wxDialog,(arg0.this,arg1,arg2,)+args)
378 self.thisown = 1
379 wx._StdDialogCallbacks(self)
380
381
382
383
384 class wxScrolledWindowPtr(wxWindowPtr):
385 def __init__(self,this):
386 self.this = this
387 self.thisown = 0
388 def EnableScrolling(self,arg0,arg1):
389 val = windowsc.wxScrolledWindow_EnableScrolling(self.this,arg0,arg1)
390 return val
391 def GetScrollPixelsPerUnit(self):
392 val = windowsc.wxScrolledWindow_GetScrollPixelsPerUnit(self.this)
393 return val
394 def GetVirtualSize(self):
395 val = windowsc.wxScrolledWindow_GetVirtualSize(self.this)
396 return val
397 def IsRetained(self):
398 val = windowsc.wxScrolledWindow_IsRetained(self.this)
399 return val
400 def PrepareDC(self,arg0):
401 val = windowsc.wxScrolledWindow_PrepareDC(self.this,arg0.this)
402 return val
403 def Scroll(self,arg0,arg1):
404 val = windowsc.wxScrolledWindow_Scroll(self.this,arg0,arg1)
405 return val
406 def SetScrollbars(self,arg0,arg1,arg2,arg3,*args):
407 val = apply(windowsc.wxScrolledWindow_SetScrollbars,(self.this,arg0,arg1,arg2,arg3,)+args)
408 return val
409 def ViewStart(self):
410 val = windowsc.wxScrolledWindow_ViewStart(self.this)
411 return val
412 def __repr__(self):
413 return "<C wxScrolledWindow instance>"
414 class wxScrolledWindow(wxScrolledWindowPtr):
415 def __init__(self,arg0,*args) :
416 argl = map(None,args)
417 try: argl[1] = argl[1].this
418 except: pass
419 try: argl[2] = argl[2].this
420 except: pass
421 args = tuple(argl)
422 self.this = apply(windowsc.new_wxScrolledWindow,(arg0.this,)+args)
423 self.thisown = 1
424 wx._StdWindowCallbacks(self)
425 wx._StdOnScrollCallbacks(self)
426
427
428
429
430 class wxMenuPtr(wxEvtHandlerPtr):
431 def __init__(self,this):
432 self.this = this
433 self.thisown = 0
434 def Append(self,arg0,arg1,*args):
435 val = apply(windowsc.wxMenu_Append,(self.this,arg0,arg1,)+args)
436 return val
437 def AppendMenu(self,arg0,arg1,arg2,*args):
438 val = apply(windowsc.wxMenu_AppendMenu,(self.this,arg0,arg1,arg2.this,)+args)
439 return val
440 def AppendSeparator(self):
441 val = windowsc.wxMenu_AppendSeparator(self.this)
442 return val
443 def Break(self):
444 val = windowsc.wxMenu_Break(self.this)
445 return val
446 def Check(self,arg0,arg1):
447 val = windowsc.wxMenu_Check(self.this,arg0,arg1)
448 return val
449 def Enable(self,arg0,arg1):
450 val = windowsc.wxMenu_Enable(self.this,arg0,arg1)
451 return val
452 def FindItem(self,arg0):
453 val = windowsc.wxMenu_FindItem(self.this,arg0)
454 return val
455 def FindItemForId(self,arg0):
456 val = windowsc.wxMenu_FindItemForId(self.this,arg0)
457 val = wxMenuItemPtr(val)
458 return val
459 def GetHelpString(self,arg0):
460 val = windowsc.wxMenu_GetHelpString(self.this,arg0)
461 return val
462 def GetLabel(self,arg0):
463 val = windowsc.wxMenu_GetLabel(self.this,arg0)
464 return val
465 def SetHelpString(self,arg0,arg1):
466 val = windowsc.wxMenu_SetHelpString(self.this,arg0,arg1)
467 return val
468 def IsChecked(self,arg0):
469 val = windowsc.wxMenu_IsChecked(self.this,arg0)
470 return val
471 def IsEnabled(self,arg0):
472 val = windowsc.wxMenu_IsEnabled(self.this,arg0)
473 return val
474 def SetLabel(self,arg0,arg1):
475 val = windowsc.wxMenu_SetLabel(self.this,arg0,arg1)
476 return val
477 def __repr__(self):
478 return "<C wxMenu instance>"
479 class wxMenu(wxMenuPtr):
480 def __init__(self,*args) :
481 self.this = apply(windowsc.new_wxMenu,()+args)
482 self.thisown = 1
483
484
485
486
487 class wxPyMenuPtr(wxMenuPtr):
488 def __init__(self,this):
489 self.this = this
490 self.thisown = 0
491 def __del__(self):
492 if self.thisown == 1 :
493 windowsc.delete_wxPyMenu(self.this)
494 def __repr__(self):
495 return "<C wxPyMenu instance>"
496 class wxPyMenu(wxPyMenuPtr):
497 def __init__(self,*args) :
498 self.this = apply(windowsc.new_wxPyMenu,()+args)
499 self.thisown = 1
500
501
502
503
504 class wxMenuBarPtr(wxEvtHandlerPtr):
505 def __init__(self,this):
506 self.this = this
507 self.thisown = 0
508 def Append(self,arg0,arg1):
509 val = windowsc.wxMenuBar_Append(self.this,arg0.this,arg1)
510 return val
511 def Check(self,arg0,arg1):
512 val = windowsc.wxMenuBar_Check(self.this,arg0,arg1)
513 return val
514 def Checked(self,arg0):
515 val = windowsc.wxMenuBar_Checked(self.this,arg0)
516 return val
517 def Enable(self,arg0,arg1):
518 val = windowsc.wxMenuBar_Enable(self.this,arg0,arg1)
519 return val
520 def Enabled(self,arg0):
521 val = windowsc.wxMenuBar_Enabled(self.this,arg0)
522 return val
523 def FindMenuItem(self,arg0,arg1):
524 val = windowsc.wxMenuBar_FindMenuItem(self.this,arg0,arg1)
525 return val
526 def FindItemForId(self,arg0):
527 val = windowsc.wxMenuBar_FindItemForId(self.this,arg0)
528 val = wxMenuItemPtr(val)
529 return val
530 def GetMenuCount(self):
531 val = windowsc.wxMenuBar_GetMenuCount(self.this)
532 return val
533 def GetMenu(self,arg0):
534 val = windowsc.wxMenuBar_GetMenu(self.this,arg0)
535 val = wxMenuPtr(val)
536 return val
537 def __repr__(self):
538 return "<C wxMenuBar instance>"
539 class wxMenuBar(wxMenuBarPtr):
540 def __init__(self) :
541 self.this = windowsc.new_wxMenuBar()
542 self.thisown = 1
543
544
545
546
547 class wxMenuItemPtr :
548 def __init__(self,this):
549 self.this = this
550 self.thisown = 0
551 def IsSeparator(self):
552 val = windowsc.wxMenuItem_IsSeparator(self.this)
553 return val
554 def IsEnabled(self):
555 val = windowsc.wxMenuItem_IsEnabled(self.this)
556 return val
557 def IsChecked(self):
558 val = windowsc.wxMenuItem_IsChecked(self.this)
559 return val
560 def IsCheckable(self):
561 val = windowsc.wxMenuItem_IsCheckable(self.this)
562 return val
563 def GetId(self):
564 val = windowsc.wxMenuItem_GetId(self.this)
565 return val
566 def GetSubMenu(self):
567 val = windowsc.wxMenuItem_GetSubMenu(self.this)
568 val = wxMenuPtr(val)
569 return val
570 def GetHelp(self):
571 val = windowsc.wxMenuItem_GetHelp(self.this)
572 return val
573 def SetHelp(self,arg0):
574 val = windowsc.wxMenuItem_SetHelp(self.this,arg0)
575 return val
576 def Enable(self,*args):
577 val = apply(windowsc.wxMenuItem_Enable,(self.this,)+args)
578 return val
579 def Check(self,*args):
580 val = apply(windowsc.wxMenuItem_Check,(self.this,)+args)
581 return val
582 def __repr__(self):
583 return "<C wxMenuItem instance>"
584 class wxMenuItem(wxMenuItemPtr):
585 def __init__(self,this):
586 self.this = this
587
588
589
590
591
592
593 #-------------- FUNCTION WRAPPERS ------------------
594
595
596
597 #-------------- VARIABLE WRAPPERS ------------------
598