]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/gtk/cmndlgs.py
Tweaks needed to be able to build wxPython with wxGTK.
[wxWidgets.git] / utils / wxPython / src / gtk / cmndlgs.py
1 # This file was created automatically by SWIG.
2 import cmndlgsc
3
4 from misc import *
5
6 from gdi import *
7
8 from windows import *
9 import wx
10 class wxColourDataPtr :
11 def __init__(self,this):
12 self.this = this
13 self.thisown = 0
14 def __del__(self):
15 if self.thisown == 1 :
16 cmndlgsc.delete_wxColourData(self.this)
17 def GetChooseFull(self):
18 val = cmndlgsc.wxColourData_GetChooseFull(self.this)
19 return val
20 def GetColour(self):
21 val = cmndlgsc.wxColourData_GetColour(self.this)
22 val = wxColourPtr(val)
23 return val
24 def GetCustomColour(self,arg0):
25 val = cmndlgsc.wxColourData_GetCustomColour(self.this,arg0)
26 val = wxColourPtr(val)
27 val.thisown = 1
28 return val
29 def SetChooseFull(self,arg0):
30 val = cmndlgsc.wxColourData_SetChooseFull(self.this,arg0)
31 return val
32 def SetColour(self,arg0):
33 val = cmndlgsc.wxColourData_SetColour(self.this,arg0.this)
34 return val
35 def SetCustomColour(self,arg0,arg1):
36 val = cmndlgsc.wxColourData_SetCustomColour(self.this,arg0,arg1.this)
37 return val
38 def __repr__(self):
39 return "<C wxColourData instance>"
40 class wxColourData(wxColourDataPtr):
41 def __init__(self) :
42 self.this = cmndlgsc.new_wxColourData()
43 self.thisown = 1
44
45
46
47
48 class wxColourDialogPtr(wxDialogPtr):
49 def __init__(self,this):
50 self.this = this
51 self.thisown = 0
52 def GetColourData(self):
53 val = cmndlgsc.wxColourDialog_GetColourData(self.this)
54 val = wxColourDataPtr(val)
55 val.thisown = 1
56 return val
57 def ShowModal(self):
58 val = cmndlgsc.wxColourDialog_ShowModal(self.this)
59 return val
60 def __repr__(self):
61 return "<C wxColourDialog instance>"
62 class wxColourDialog(wxColourDialogPtr):
63 def __init__(self,arg0,*args) :
64 argl = map(None,args)
65 try: argl[0] = argl[0].this
66 except: pass
67 args = tuple(argl)
68 self.this = apply(cmndlgsc.new_wxColourDialog,(arg0.this,)+args)
69 self.thisown = 1
70 wx._StdDialogCallbacks(self)
71
72
73
74
75 class wxFileDialogPtr(wxDialogPtr):
76 def __init__(self,this):
77 self.this = this
78 self.thisown = 0
79 def GetDirectory(self):
80 val = cmndlgsc.wxFileDialog_GetDirectory(self.this)
81 return val
82 def GetFilename(self):
83 val = cmndlgsc.wxFileDialog_GetFilename(self.this)
84 return val
85 def GetFilterIndex(self):
86 val = cmndlgsc.wxFileDialog_GetFilterIndex(self.this)
87 return val
88 def GetMessage(self):
89 val = cmndlgsc.wxFileDialog_GetMessage(self.this)
90 return val
91 def GetPath(self):
92 val = cmndlgsc.wxFileDialog_GetPath(self.this)
93 return val
94 def GetStyle(self):
95 val = cmndlgsc.wxFileDialog_GetStyle(self.this)
96 return val
97 def GetWildcard(self):
98 val = cmndlgsc.wxFileDialog_GetWildcard(self.this)
99 return val
100 def SetDirectory(self,arg0):
101 val = cmndlgsc.wxFileDialog_SetDirectory(self.this,arg0)
102 return val
103 def SetFilename(self,arg0):
104 val = cmndlgsc.wxFileDialog_SetFilename(self.this,arg0)
105 return val
106 def SetFilterIndex(self,arg0):
107 val = cmndlgsc.wxFileDialog_SetFilterIndex(self.this,arg0)
108 return val
109 def SetMessage(self,arg0):
110 val = cmndlgsc.wxFileDialog_SetMessage(self.this,arg0)
111 return val
112 def SetPath(self,arg0):
113 val = cmndlgsc.wxFileDialog_SetPath(self.this,arg0)
114 return val
115 def SetStyle(self,arg0):
116 val = cmndlgsc.wxFileDialog_SetStyle(self.this,arg0)
117 return val
118 def SetWildcard(self,arg0):
119 val = cmndlgsc.wxFileDialog_SetWildcard(self.this,arg0)
120 return val
121 def ShowModal(self):
122 val = cmndlgsc.wxFileDialog_ShowModal(self.this)
123 return val
124 def __repr__(self):
125 return "<C wxFileDialog instance>"
126 class wxFileDialog(wxFileDialogPtr):
127 def __init__(self,arg0,*args) :
128 argl = map(None,args)
129 try: argl[5] = argl[5].this
130 except: pass
131 args = tuple(argl)
132 self.this = apply(cmndlgsc.new_wxFileDialog,(arg0.this,)+args)
133 self.thisown = 1
134 wx._StdDialogCallbacks(self)
135
136
137
138
139 class wxSingleChoiceDialogPtr(wxDialogPtr):
140 def __init__(self,this):
141 self.this = this
142 self.thisown = 0
143 def GetSelection(self):
144 val = cmndlgsc.wxSingleChoiceDialog_GetSelection(self.this)
145 return val
146 def GetStringSelection(self):
147 val = cmndlgsc.wxSingleChoiceDialog_GetStringSelection(self.this)
148 return val
149 def SetSelection(self,arg0):
150 val = cmndlgsc.wxSingleChoiceDialog_SetSelection(self.this,arg0)
151 return val
152 def ShowModal(self):
153 val = cmndlgsc.wxSingleChoiceDialog_ShowModal(self.this)
154 return val
155 def __repr__(self):
156 return "<C wxSingleChoiceDialog instance>"
157 class wxSingleChoiceDialog(wxSingleChoiceDialogPtr):
158 def __init__(self,arg0,arg1,arg2,arg3,*args) :
159 argl = map(None,args)
160 try: argl[1] = argl[1].this
161 except: pass
162 args = tuple(argl)
163 self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,(arg0.this,arg1,arg2,arg3,)+args)
164 self.thisown = 1
165 wx._StdDialogCallbacks(self)
166
167
168
169
170 class wxTextEntryDialogPtr(wxDialogPtr):
171 def __init__(self,this):
172 self.this = this
173 self.thisown = 0
174 def GetValue(self):
175 val = cmndlgsc.wxTextEntryDialog_GetValue(self.this)
176 return val
177 def SetValue(self,arg0):
178 val = cmndlgsc.wxTextEntryDialog_SetValue(self.this,arg0)
179 return val
180 def ShowModal(self):
181 val = cmndlgsc.wxTextEntryDialog_ShowModal(self.this)
182 return val
183 def __repr__(self):
184 return "<C wxTextEntryDialog instance>"
185 class wxTextEntryDialog(wxTextEntryDialogPtr):
186 def __init__(self,arg0,arg1,*args) :
187 argl = map(None,args)
188 try: argl[3] = argl[3].this
189 except: pass
190 args = tuple(argl)
191 self.this = apply(cmndlgsc.new_wxTextEntryDialog,(arg0.this,arg1,)+args)
192 self.thisown = 1
193 wx._StdDialogCallbacks(self)
194
195
196
197
198 class wxFontDataPtr :
199 def __init__(self,this):
200 self.this = this
201 self.thisown = 0
202 def __del__(self):
203 if self.thisown == 1 :
204 cmndlgsc.delete_wxFontData(self.this)
205 def EnableEffects(self,arg0):
206 val = cmndlgsc.wxFontData_EnableEffects(self.this,arg0)
207 return val
208 def GetAllowSymbols(self):
209 val = cmndlgsc.wxFontData_GetAllowSymbols(self.this)
210 return val
211 def GetColour(self):
212 val = cmndlgsc.wxFontData_GetColour(self.this)
213 val = wxColourPtr(val)
214 return val
215 def GetChosenFont(self):
216 val = cmndlgsc.wxFontData_GetChosenFont(self.this)
217 val = wxFontPtr(val)
218 val.thisown = 1
219 return val
220 def GetEnableEffects(self):
221 val = cmndlgsc.wxFontData_GetEnableEffects(self.this)
222 return val
223 def GetInitialFont(self):
224 val = cmndlgsc.wxFontData_GetInitialFont(self.this)
225 val = wxFontPtr(val)
226 val.thisown = 1
227 return val
228 def GetShowHelp(self):
229 val = cmndlgsc.wxFontData_GetShowHelp(self.this)
230 return val
231 def SetAllowSymbols(self,arg0):
232 val = cmndlgsc.wxFontData_SetAllowSymbols(self.this,arg0)
233 return val
234 def SetChosenFont(self,arg0):
235 val = cmndlgsc.wxFontData_SetChosenFont(self.this,arg0.this)
236 return val
237 def SetColour(self,arg0):
238 val = cmndlgsc.wxFontData_SetColour(self.this,arg0.this)
239 return val
240 def SetInitialFont(self,arg0):
241 val = cmndlgsc.wxFontData_SetInitialFont(self.this,arg0.this)
242 return val
243 def SetRange(self,arg0,arg1):
244 val = cmndlgsc.wxFontData_SetRange(self.this,arg0,arg1)
245 return val
246 def SetShowHelp(self,arg0):
247 val = cmndlgsc.wxFontData_SetShowHelp(self.this,arg0)
248 return val
249 def __repr__(self):
250 return "<C wxFontData instance>"
251 class wxFontData(wxFontDataPtr):
252 def __init__(self) :
253 self.this = cmndlgsc.new_wxFontData()
254 self.thisown = 1
255
256
257
258
259 class wxFontDialogPtr(wxDialogPtr):
260 def __init__(self,this):
261 self.this = this
262 self.thisown = 0
263 def GetFontData(self):
264 val = cmndlgsc.wxFontDialog_GetFontData(self.this)
265 val = wxFontDataPtr(val)
266 return val
267 def ShowModal(self):
268 val = cmndlgsc.wxFontDialog_ShowModal(self.this)
269 return val
270 def __repr__(self):
271 return "<C wxFontDialog instance>"
272 class wxFontDialog(wxFontDialogPtr):
273 def __init__(self,arg0,*args) :
274 argl = map(None,args)
275 try: argl[0] = argl[0].this
276 except: pass
277 args = tuple(argl)
278 self.this = apply(cmndlgsc.new_wxFontDialog,(arg0.this,)+args)
279 self.thisown = 1
280 wx._StdDialogCallbacks(self)
281
282
283
284
285 class wxPageSetupDataPtr :
286 def __init__(self,this):
287 self.this = this
288 self.thisown = 0
289 def __del__(self):
290 if self.thisown == 1 :
291 cmndlgsc.delete_wxPageSetupData(self.this)
292 def EnableHelp(self,arg0):
293 val = cmndlgsc.wxPageSetupData_EnableHelp(self.this,arg0)
294 return val
295 def EnableMargins(self,arg0):
296 val = cmndlgsc.wxPageSetupData_EnableMargins(self.this,arg0)
297 return val
298 def EnableOrientation(self,arg0):
299 val = cmndlgsc.wxPageSetupData_EnableOrientation(self.this,arg0)
300 return val
301 def EnablePaper(self,arg0):
302 val = cmndlgsc.wxPageSetupData_EnablePaper(self.this,arg0)
303 return val
304 def EnablePrinter(self,arg0):
305 val = cmndlgsc.wxPageSetupData_EnablePrinter(self.this,arg0)
306 return val
307 def GetPaperSize(self):
308 val = cmndlgsc.wxPageSetupData_GetPaperSize(self.this)
309 val = wxPointPtr(val)
310 val.thisown = 1
311 return val
312 def GetMarginTopLeft(self):
313 val = cmndlgsc.wxPageSetupData_GetMarginTopLeft(self.this)
314 val = wxPointPtr(val)
315 val.thisown = 1
316 return val
317 def GetMarginBottomRight(self):
318 val = cmndlgsc.wxPageSetupData_GetMarginBottomRight(self.this)
319 val = wxPointPtr(val)
320 val.thisown = 1
321 return val
322 def GetMinMarginTopLeft(self):
323 val = cmndlgsc.wxPageSetupData_GetMinMarginTopLeft(self.this)
324 val = wxPointPtr(val)
325 val.thisown = 1
326 return val
327 def GetMinMarginBottomRight(self):
328 val = cmndlgsc.wxPageSetupData_GetMinMarginBottomRight(self.this)
329 val = wxPointPtr(val)
330 val.thisown = 1
331 return val
332 def GetOrientation(self):
333 val = cmndlgsc.wxPageSetupData_GetOrientation(self.this)
334 return val
335 def GetDefaultMinMargins(self):
336 val = cmndlgsc.wxPageSetupData_GetDefaultMinMargins(self.this)
337 return val
338 def GetEnableMargins(self):
339 val = cmndlgsc.wxPageSetupData_GetEnableMargins(self.this)
340 return val
341 def GetEnableOrientation(self):
342 val = cmndlgsc.wxPageSetupData_GetEnableOrientation(self.this)
343 return val
344 def GetEnablePaper(self):
345 val = cmndlgsc.wxPageSetupData_GetEnablePaper(self.this)
346 return val
347 def GetEnablePrinter(self):
348 val = cmndlgsc.wxPageSetupData_GetEnablePrinter(self.this)
349 return val
350 def GetEnableHelp(self):
351 val = cmndlgsc.wxPageSetupData_GetEnableHelp(self.this)
352 return val
353 def GetDefaultInfo(self):
354 val = cmndlgsc.wxPageSetupData_GetDefaultInfo(self.this)
355 return val
356 def SetPaperSize(self,arg0):
357 val = cmndlgsc.wxPageSetupData_SetPaperSize(self.this,arg0.this)
358 return val
359 def SetMarginTopLeft(self,arg0):
360 val = cmndlgsc.wxPageSetupData_SetMarginTopLeft(self.this,arg0.this)
361 return val
362 def SetMarginBottomRight(self,arg0):
363 val = cmndlgsc.wxPageSetupData_SetMarginBottomRight(self.this,arg0.this)
364 return val
365 def SetMinMarginTopLeft(self,arg0):
366 val = cmndlgsc.wxPageSetupData_SetMinMarginTopLeft(self.this,arg0.this)
367 return val
368 def SetMinMarginBottomRight(self,arg0):
369 val = cmndlgsc.wxPageSetupData_SetMinMarginBottomRight(self.this,arg0.this)
370 return val
371 def SetOrientation(self,arg0):
372 val = cmndlgsc.wxPageSetupData_SetOrientation(self.this,arg0)
373 return val
374 def SetDefaultMinMargins(self,arg0):
375 val = cmndlgsc.wxPageSetupData_SetDefaultMinMargins(self.this,arg0)
376 return val
377 def SetDefaultInfo(self,arg0):
378 val = cmndlgsc.wxPageSetupData_SetDefaultInfo(self.this,arg0)
379 return val
380 def __repr__(self):
381 return "<C wxPageSetupData instance>"
382 class wxPageSetupData(wxPageSetupDataPtr):
383 def __init__(self) :
384 self.this = cmndlgsc.new_wxPageSetupData()
385 self.thisown = 1
386
387
388
389
390 class wxPageSetupDialogPtr(wxDialogPtr):
391 def __init__(self,this):
392 self.this = this
393 self.thisown = 0
394 def GetPageSetupData(self):
395 val = cmndlgsc.wxPageSetupDialog_GetPageSetupData(self.this)
396 val = wxPageSetupDataPtr(val)
397 return val
398 def ShowModal(self):
399 val = cmndlgsc.wxPageSetupDialog_ShowModal(self.this)
400 return val
401 def __repr__(self):
402 return "<C wxPageSetupDialog instance>"
403 class wxPageSetupDialog(wxPageSetupDialogPtr):
404 def __init__(self,arg0,*args) :
405 argl = map(None,args)
406 try: argl[0] = argl[0].this
407 except: pass
408 args = tuple(argl)
409 self.this = apply(cmndlgsc.new_wxPageSetupDialog,(arg0.this,)+args)
410 self.thisown = 1
411 wx._StdDialogCallbacks(self)
412
413
414
415
416 class wxPrintDataPtr :
417 def __init__(self,this):
418 self.this = this
419 self.thisown = 0
420 def __del__(self):
421 if self.thisown == 1 :
422 cmndlgsc.delete_wxPrintData(self.this)
423 def EnableHelp(self,arg0):
424 val = cmndlgsc.wxPrintData_EnableHelp(self.this,arg0)
425 return val
426 def EnablePageNumbers(self,arg0):
427 val = cmndlgsc.wxPrintData_EnablePageNumbers(self.this,arg0)
428 return val
429 def EnablePrintToFile(self,arg0):
430 val = cmndlgsc.wxPrintData_EnablePrintToFile(self.this,arg0)
431 return val
432 def EnableSelection(self,arg0):
433 val = cmndlgsc.wxPrintData_EnableSelection(self.this,arg0)
434 return val
435 def GetAllPages(self):
436 val = cmndlgsc.wxPrintData_GetAllPages(self.this)
437 return val
438 def GetCollate(self):
439 val = cmndlgsc.wxPrintData_GetCollate(self.this)
440 return val
441 def GetFromPage(self):
442 val = cmndlgsc.wxPrintData_GetFromPage(self.this)
443 return val
444 def GetMaxPage(self):
445 val = cmndlgsc.wxPrintData_GetMaxPage(self.this)
446 return val
447 def GetMinPage(self):
448 val = cmndlgsc.wxPrintData_GetMinPage(self.this)
449 return val
450 def GetNoCopies(self):
451 val = cmndlgsc.wxPrintData_GetNoCopies(self.this)
452 return val
453 def GetOrientation(self):
454 val = cmndlgsc.wxPrintData_GetOrientation(self.this)
455 return val
456 def GetToPage(self):
457 val = cmndlgsc.wxPrintData_GetToPage(self.this)
458 return val
459 def SetCollate(self,arg0):
460 val = cmndlgsc.wxPrintData_SetCollate(self.this,arg0)
461 return val
462 def SetFromPage(self,arg0):
463 val = cmndlgsc.wxPrintData_SetFromPage(self.this,arg0)
464 return val
465 def SetMaxPage(self,arg0):
466 val = cmndlgsc.wxPrintData_SetMaxPage(self.this,arg0)
467 return val
468 def SetMinPage(self,arg0):
469 val = cmndlgsc.wxPrintData_SetMinPage(self.this,arg0)
470 return val
471 def SetOrientation(self,arg0):
472 val = cmndlgsc.wxPrintData_SetOrientation(self.this,arg0)
473 return val
474 def SetNoCopies(self,arg0):
475 val = cmndlgsc.wxPrintData_SetNoCopies(self.this,arg0)
476 return val
477 def SetPrintToFile(self,arg0):
478 val = cmndlgsc.wxPrintData_SetPrintToFile(self.this,arg0)
479 return val
480 def SetSetupDialog(self,arg0):
481 val = cmndlgsc.wxPrintData_SetSetupDialog(self.this,arg0)
482 return val
483 def SetToPage(self,arg0):
484 val = cmndlgsc.wxPrintData_SetToPage(self.this,arg0)
485 return val
486 def __repr__(self):
487 return "<C wxPrintData instance>"
488 class wxPrintData(wxPrintDataPtr):
489 def __init__(self) :
490 self.this = cmndlgsc.new_wxPrintData()
491 self.thisown = 1
492
493
494
495
496 class wxPrintDialogPtr(wxDialogPtr):
497 def __init__(self,this):
498 self.this = this
499 self.thisown = 0
500 def GetPrintData(self):
501 val = cmndlgsc.wxPrintDialog_GetPrintData(self.this)
502 val = wxPrintDataPtr(val)
503 return val
504 def GetPrintDC(self):
505 val = cmndlgsc.wxPrintDialog_GetPrintDC(self.this)
506 val = wxDCPtr(val)
507 val.thisown = 1
508 return val
509 def ShowModal(self):
510 val = cmndlgsc.wxPrintDialog_ShowModal(self.this)
511 return val
512 def __repr__(self):
513 return "<C wxPrintDialog instance>"
514 class wxPrintDialog(wxPrintDialogPtr):
515 def __init__(self,arg0,*args) :
516 argl = map(None,args)
517 try: argl[0] = argl[0].this
518 except: pass
519 args = tuple(argl)
520 self.this = apply(cmndlgsc.new_wxPrintDialog,(arg0.this,)+args)
521 self.thisown = 1
522 wx._StdDialogCallbacks(self)
523
524
525
526
527 class wxMessageDialogPtr(wxDialogPtr):
528 def __init__(self,this):
529 self.this = this
530 self.thisown = 0
531 def ShowModal(self):
532 val = cmndlgsc.wxMessageDialog_ShowModal(self.this)
533 return val
534 def __repr__(self):
535 return "<C wxMessageDialog instance>"
536 class wxMessageDialog(wxMessageDialogPtr):
537 def __init__(self,arg0,arg1,*args) :
538 argl = map(None,args)
539 try: argl[2] = argl[2].this
540 except: pass
541 args = tuple(argl)
542 self.this = apply(cmndlgsc.new_wxMessageDialog,(arg0.this,arg1,)+args)
543 self.thisown = 1
544 wx._StdDialogCallbacks(self)
545
546
547
548
549
550
551 #-------------- FUNCTION WRAPPERS ------------------
552
553
554
555 #-------------- VARIABLE WRAPPERS ------------------
556