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