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