]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/cmndlgs.py
fixed a typo
[wxWidgets.git] / wxPython / src / msw / 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 fonts import *
9
10 from windows import *
11
12 from clip_dnd import *
13
14 from events import *
15
16 from frames import *
17
18 from stattool import *
19
20 from controls import *
21 import wx
22
23
24 def EVT_COMMAND_FIND(win, id, func):
25 win.Connect(id, -1, wxEVT_COMMAND_FIND, func)
26
27 def EVT_COMMAND_FIND_NEXT(win, id, func):
28 win.Connect(id, -1, wxEVT_COMMAND_FIND_NEXT, func)
29
30 def EVT_COMMAND_FIND_REPLACE(win, id, func):
31 win.Connect(id, -1, wxEVT_COMMAND_FIND_REPLACE, func)
32
33 def EVT_COMMAND_FIND_REPLACE_ALL(win, id, func):
34 win.Connect(id, -1, wxEVT_COMMAND_FIND_REPLACE_ALL, func)
35
36 def EVT_COMMAND_FIND_CLOSE(win, id, func):
37 win.Connect(id, -1, wxEVT_COMMAND_FIND_CLOSE, func)
38
39
40 class wxColourDataPtr(wxObjectPtr):
41 def __init__(self,this):
42 self.this = this
43 self.thisown = 0
44 def __del__(self,cmndlgsc=cmndlgsc):
45 if self.thisown == 1 :
46 cmndlgsc.delete_wxColourData(self)
47 def GetChooseFull(self, *_args, **_kwargs):
48 val = apply(cmndlgsc.wxColourData_GetChooseFull,(self,) + _args, _kwargs)
49 return val
50 def GetColour(self, *_args, **_kwargs):
51 val = apply(cmndlgsc.wxColourData_GetColour,(self,) + _args, _kwargs)
52 if val: val = wxColourPtr(val) ; val.thisown = 1
53 return val
54 def GetCustomColour(self, *_args, **_kwargs):
55 val = apply(cmndlgsc.wxColourData_GetCustomColour,(self,) + _args, _kwargs)
56 if val: val = wxColourPtr(val) ; val.thisown = 1
57 return val
58 def SetChooseFull(self, *_args, **_kwargs):
59 val = apply(cmndlgsc.wxColourData_SetChooseFull,(self,) + _args, _kwargs)
60 return val
61 def SetColour(self, *_args, **_kwargs):
62 val = apply(cmndlgsc.wxColourData_SetColour,(self,) + _args, _kwargs)
63 return val
64 def SetCustomColour(self, *_args, **_kwargs):
65 val = apply(cmndlgsc.wxColourData_SetCustomColour,(self,) + _args, _kwargs)
66 return val
67 def __repr__(self):
68 return "<C wxColourData instance at %s>" % (self.this,)
69 class wxColourData(wxColourDataPtr):
70 def __init__(self,*_args,**_kwargs):
71 self.this = apply(cmndlgsc.new_wxColourData,_args,_kwargs)
72 self.thisown = 1
73
74
75
76
77 class wxColourDialogPtr(wxDialogPtr):
78 def __init__(self,this):
79 self.this = this
80 self.thisown = 0
81 def GetColourData(self, *_args, **_kwargs):
82 val = apply(cmndlgsc.wxColourDialog_GetColourData,(self,) + _args, _kwargs)
83 if val: val = wxColourDataPtr(val)
84 return val
85 def ShowModal(self, *_args, **_kwargs):
86 val = apply(cmndlgsc.wxColourDialog_ShowModal,(self,) + _args, _kwargs)
87 return val
88 def __repr__(self):
89 return "<C wxColourDialog instance at %s>" % (self.this,)
90 class wxColourDialog(wxColourDialogPtr):
91 def __init__(self,*_args,**_kwargs):
92 self.this = apply(cmndlgsc.new_wxColourDialog,_args,_kwargs)
93 self.thisown = 1
94 self._setOORInfo(self)
95
96
97
98
99 class wxDirDialogPtr(wxDialogPtr):
100 def __init__(self,this):
101 self.this = this
102 self.thisown = 0
103 def GetPath(self, *_args, **_kwargs):
104 val = apply(cmndlgsc.wxDirDialog_GetPath,(self,) + _args, _kwargs)
105 return val
106 def GetMessage(self, *_args, **_kwargs):
107 val = apply(cmndlgsc.wxDirDialog_GetMessage,(self,) + _args, _kwargs)
108 return val
109 def GetStyle(self, *_args, **_kwargs):
110 val = apply(cmndlgsc.wxDirDialog_GetStyle,(self,) + _args, _kwargs)
111 return val
112 def SetMessage(self, *_args, **_kwargs):
113 val = apply(cmndlgsc.wxDirDialog_SetMessage,(self,) + _args, _kwargs)
114 return val
115 def SetPath(self, *_args, **_kwargs):
116 val = apply(cmndlgsc.wxDirDialog_SetPath,(self,) + _args, _kwargs)
117 return val
118 def ShowModal(self, *_args, **_kwargs):
119 val = apply(cmndlgsc.wxDirDialog_ShowModal,(self,) + _args, _kwargs)
120 return val
121 def __repr__(self):
122 return "<C wxDirDialog instance at %s>" % (self.this,)
123 class wxDirDialog(wxDirDialogPtr):
124 def __init__(self,*_args,**_kwargs):
125 self.this = apply(cmndlgsc.new_wxDirDialog,_args,_kwargs)
126 self.thisown = 1
127 self._setOORInfo(self)
128
129
130
131
132 class wxFileDialogPtr(wxDialogPtr):
133 def __init__(self,this):
134 self.this = this
135 self.thisown = 0
136 def GetDirectory(self, *_args, **_kwargs):
137 val = apply(cmndlgsc.wxFileDialog_GetDirectory,(self,) + _args, _kwargs)
138 return val
139 def GetFilename(self, *_args, **_kwargs):
140 val = apply(cmndlgsc.wxFileDialog_GetFilename,(self,) + _args, _kwargs)
141 return val
142 def GetFilterIndex(self, *_args, **_kwargs):
143 val = apply(cmndlgsc.wxFileDialog_GetFilterIndex,(self,) + _args, _kwargs)
144 return val
145 def GetMessage(self, *_args, **_kwargs):
146 val = apply(cmndlgsc.wxFileDialog_GetMessage,(self,) + _args, _kwargs)
147 return val
148 def GetPath(self, *_args, **_kwargs):
149 val = apply(cmndlgsc.wxFileDialog_GetPath,(self,) + _args, _kwargs)
150 return val
151 def GetStyle(self, *_args, **_kwargs):
152 val = apply(cmndlgsc.wxFileDialog_GetStyle,(self,) + _args, _kwargs)
153 return val
154 def GetWildcard(self, *_args, **_kwargs):
155 val = apply(cmndlgsc.wxFileDialog_GetWildcard,(self,) + _args, _kwargs)
156 return val
157 def SetDirectory(self, *_args, **_kwargs):
158 val = apply(cmndlgsc.wxFileDialog_SetDirectory,(self,) + _args, _kwargs)
159 return val
160 def SetFilename(self, *_args, **_kwargs):
161 val = apply(cmndlgsc.wxFileDialog_SetFilename,(self,) + _args, _kwargs)
162 return val
163 def SetFilterIndex(self, *_args, **_kwargs):
164 val = apply(cmndlgsc.wxFileDialog_SetFilterIndex,(self,) + _args, _kwargs)
165 return val
166 def SetMessage(self, *_args, **_kwargs):
167 val = apply(cmndlgsc.wxFileDialog_SetMessage,(self,) + _args, _kwargs)
168 return val
169 def SetPath(self, *_args, **_kwargs):
170 val = apply(cmndlgsc.wxFileDialog_SetPath,(self,) + _args, _kwargs)
171 return val
172 def SetStyle(self, *_args, **_kwargs):
173 val = apply(cmndlgsc.wxFileDialog_SetStyle,(self,) + _args, _kwargs)
174 return val
175 def SetWildcard(self, *_args, **_kwargs):
176 val = apply(cmndlgsc.wxFileDialog_SetWildcard,(self,) + _args, _kwargs)
177 return val
178 def ShowModal(self, *_args, **_kwargs):
179 val = apply(cmndlgsc.wxFileDialog_ShowModal,(self,) + _args, _kwargs)
180 return val
181 def GetFilenames(self, *_args, **_kwargs):
182 val = apply(cmndlgsc.wxFileDialog_GetFilenames,(self,) + _args, _kwargs)
183 return val
184 def GetPaths(self, *_args, **_kwargs):
185 val = apply(cmndlgsc.wxFileDialog_GetPaths,(self,) + _args, _kwargs)
186 return val
187 def __repr__(self):
188 return "<C wxFileDialog instance at %s>" % (self.this,)
189 class wxFileDialog(wxFileDialogPtr):
190 def __init__(self,*_args,**_kwargs):
191 self.this = apply(cmndlgsc.new_wxFileDialog,_args,_kwargs)
192 self.thisown = 1
193 self._setOORInfo(self)
194
195
196
197
198 class wxMultiChoiceDialogPtr(wxDialogPtr):
199 def __init__(self,this):
200 self.this = this
201 self.thisown = 0
202 def SetSelections(self, *_args, **_kwargs):
203 val = apply(cmndlgsc.wxMultiChoiceDialog_SetSelections,(self,) + _args, _kwargs)
204 return val
205 def GetSelections(self, *_args, **_kwargs):
206 val = apply(cmndlgsc.wxMultiChoiceDialog_GetSelections,(self,) + _args, _kwargs)
207 return val
208 def __repr__(self):
209 return "<C wxMultiChoiceDialog instance at %s>" % (self.this,)
210 class wxMultiChoiceDialog(wxMultiChoiceDialogPtr):
211 def __init__(self,*_args,**_kwargs):
212 self.this = apply(cmndlgsc.new_wxMultiChoiceDialog,_args,_kwargs)
213 self.thisown = 1
214 self._setOORInfo(self)
215
216
217
218
219 class wxSingleChoiceDialogPtr(wxDialogPtr):
220 def __init__(self,this):
221 self.this = this
222 self.thisown = 0
223 def GetSelection(self, *_args, **_kwargs):
224 val = apply(cmndlgsc.wxSingleChoiceDialog_GetSelection,(self,) + _args, _kwargs)
225 return val
226 def GetStringSelection(self, *_args, **_kwargs):
227 val = apply(cmndlgsc.wxSingleChoiceDialog_GetStringSelection,(self,) + _args, _kwargs)
228 return val
229 def SetSelection(self, *_args, **_kwargs):
230 val = apply(cmndlgsc.wxSingleChoiceDialog_SetSelection,(self,) + _args, _kwargs)
231 return val
232 def ShowModal(self, *_args, **_kwargs):
233 val = apply(cmndlgsc.wxSingleChoiceDialog_ShowModal,(self,) + _args, _kwargs)
234 return val
235 def __repr__(self):
236 return "<C wxSingleChoiceDialog instance at %s>" % (self.this,)
237 class wxSingleChoiceDialog(wxSingleChoiceDialogPtr):
238 def __init__(self,*_args,**_kwargs):
239 self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,_args,_kwargs)
240 self.thisown = 1
241 self._setOORInfo(self)
242
243
244
245
246 class wxTextEntryDialogPtr(wxDialogPtr):
247 def __init__(self,this):
248 self.this = this
249 self.thisown = 0
250 def GetValue(self, *_args, **_kwargs):
251 val = apply(cmndlgsc.wxTextEntryDialog_GetValue,(self,) + _args, _kwargs)
252 return val
253 def SetValue(self, *_args, **_kwargs):
254 val = apply(cmndlgsc.wxTextEntryDialog_SetValue,(self,) + _args, _kwargs)
255 return val
256 def ShowModal(self, *_args, **_kwargs):
257 val = apply(cmndlgsc.wxTextEntryDialog_ShowModal,(self,) + _args, _kwargs)
258 return val
259 def __repr__(self):
260 return "<C wxTextEntryDialog instance at %s>" % (self.this,)
261 class wxTextEntryDialog(wxTextEntryDialogPtr):
262 def __init__(self,*_args,**_kwargs):
263 self.this = apply(cmndlgsc.new_wxTextEntryDialog,_args,_kwargs)
264 self.thisown = 1
265 self._setOORInfo(self)
266
267
268
269
270 class wxFontDataPtr(wxObjectPtr):
271 def __init__(self,this):
272 self.this = this
273 self.thisown = 0
274 def __del__(self,cmndlgsc=cmndlgsc):
275 if self.thisown == 1 :
276 cmndlgsc.delete_wxFontData(self)
277 def EnableEffects(self, *_args, **_kwargs):
278 val = apply(cmndlgsc.wxFontData_EnableEffects,(self,) + _args, _kwargs)
279 return val
280 def GetAllowSymbols(self, *_args, **_kwargs):
281 val = apply(cmndlgsc.wxFontData_GetAllowSymbols,(self,) + _args, _kwargs)
282 return val
283 def GetColour(self, *_args, **_kwargs):
284 val = apply(cmndlgsc.wxFontData_GetColour,(self,) + _args, _kwargs)
285 if val: val = wxColourPtr(val) ; val.thisown = 1
286 return val
287 def GetChosenFont(self, *_args, **_kwargs):
288 val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs)
289 if val: val = wxFontPtr(val) ; val.thisown = 1
290 return val
291 def GetEnableEffects(self, *_args, **_kwargs):
292 val = apply(cmndlgsc.wxFontData_GetEnableEffects,(self,) + _args, _kwargs)
293 return val
294 def GetInitialFont(self, *_args, **_kwargs):
295 val = apply(cmndlgsc.wxFontData_GetInitialFont,(self,) + _args, _kwargs)
296 if val: val = wxFontPtr(val) ; val.thisown = 1
297 return val
298 def GetShowHelp(self, *_args, **_kwargs):
299 val = apply(cmndlgsc.wxFontData_GetShowHelp,(self,) + _args, _kwargs)
300 return val
301 def SetAllowSymbols(self, *_args, **_kwargs):
302 val = apply(cmndlgsc.wxFontData_SetAllowSymbols,(self,) + _args, _kwargs)
303 return val
304 def SetChosenFont(self, *_args, **_kwargs):
305 val = apply(cmndlgsc.wxFontData_SetChosenFont,(self,) + _args, _kwargs)
306 return val
307 def SetColour(self, *_args, **_kwargs):
308 val = apply(cmndlgsc.wxFontData_SetColour,(self,) + _args, _kwargs)
309 return val
310 def SetInitialFont(self, *_args, **_kwargs):
311 val = apply(cmndlgsc.wxFontData_SetInitialFont,(self,) + _args, _kwargs)
312 return val
313 def SetRange(self, *_args, **_kwargs):
314 val = apply(cmndlgsc.wxFontData_SetRange,(self,) + _args, _kwargs)
315 return val
316 def SetShowHelp(self, *_args, **_kwargs):
317 val = apply(cmndlgsc.wxFontData_SetShowHelp,(self,) + _args, _kwargs)
318 return val
319 def __repr__(self):
320 return "<C wxFontData instance at %s>" % (self.this,)
321 class wxFontData(wxFontDataPtr):
322 def __init__(self,*_args,**_kwargs):
323 self.this = apply(cmndlgsc.new_wxFontData,_args,_kwargs)
324 self.thisown = 1
325
326
327
328
329 class wxFontDialogPtr(wxDialogPtr):
330 def __init__(self,this):
331 self.this = this
332 self.thisown = 0
333 def GetFontData(self, *_args, **_kwargs):
334 val = apply(cmndlgsc.wxFontDialog_GetFontData,(self,) + _args, _kwargs)
335 if val: val = wxFontDataPtr(val)
336 return val
337 def ShowModal(self, *_args, **_kwargs):
338 val = apply(cmndlgsc.wxFontDialog_ShowModal,(self,) + _args, _kwargs)
339 return val
340 def __repr__(self):
341 return "<C wxFontDialog instance at %s>" % (self.this,)
342 class wxFontDialog(wxFontDialogPtr):
343 def __init__(self,*_args,**_kwargs):
344 self.this = apply(cmndlgsc.new_wxFontDialog,_args,_kwargs)
345 self.thisown = 1
346 self._setOORInfo(self)
347
348
349
350
351 class wxMessageDialogPtr(wxDialogPtr):
352 def __init__(self,this):
353 self.this = this
354 self.thisown = 0
355 def ShowModal(self, *_args, **_kwargs):
356 val = apply(cmndlgsc.wxMessageDialog_ShowModal,(self,) + _args, _kwargs)
357 return val
358 def __repr__(self):
359 return "<C wxMessageDialog instance at %s>" % (self.this,)
360 class wxMessageDialog(wxMessageDialogPtr):
361 def __init__(self,*_args,**_kwargs):
362 self.this = apply(cmndlgsc.new_wxMessageDialog,_args,_kwargs)
363 self.thisown = 1
364 self._setOORInfo(self)
365
366
367
368
369 class wxProgressDialogPtr(wxFramePtr):
370 def __init__(self,this):
371 self.this = this
372 self.thisown = 0
373 def Update(self, *_args, **_kwargs):
374 val = apply(cmndlgsc.wxProgressDialog_Update,(self,) + _args, _kwargs)
375 return val
376 def Resume(self, *_args, **_kwargs):
377 val = apply(cmndlgsc.wxProgressDialog_Resume,(self,) + _args, _kwargs)
378 return val
379 def __repr__(self):
380 return "<C wxProgressDialog instance at %s>" % (self.this,)
381 class wxProgressDialog(wxProgressDialogPtr):
382 def __init__(self,*_args,**_kwargs):
383 self.this = apply(cmndlgsc.new_wxProgressDialog,_args,_kwargs)
384 self.thisown = 1
385 self._setOORInfo(self)
386
387
388
389
390 class wxFindDialogEventPtr(wxCommandEventPtr):
391 def __init__(self,this):
392 self.this = this
393 self.thisown = 0
394 def GetFlags(self, *_args, **_kwargs):
395 val = apply(cmndlgsc.wxFindDialogEvent_GetFlags,(self,) + _args, _kwargs)
396 return val
397 def GetFindString(self, *_args, **_kwargs):
398 val = apply(cmndlgsc.wxFindDialogEvent_GetFindString,(self,) + _args, _kwargs)
399 return val
400 def GetReplaceString(self, *_args, **_kwargs):
401 val = apply(cmndlgsc.wxFindDialogEvent_GetReplaceString,(self,) + _args, _kwargs)
402 return val
403 def GetDialog(self, *_args, **_kwargs):
404 val = apply(cmndlgsc.wxFindDialogEvent_GetDialog,(self,) + _args, _kwargs)
405 if val: val = wxFindReplaceDialogPtr(val)
406 return val
407 def SetFlags(self, *_args, **_kwargs):
408 val = apply(cmndlgsc.wxFindDialogEvent_SetFlags,(self,) + _args, _kwargs)
409 return val
410 def SetFindString(self, *_args, **_kwargs):
411 val = apply(cmndlgsc.wxFindDialogEvent_SetFindString,(self,) + _args, _kwargs)
412 return val
413 def SetReplaceString(self, *_args, **_kwargs):
414 val = apply(cmndlgsc.wxFindDialogEvent_SetReplaceString,(self,) + _args, _kwargs)
415 return val
416 def __repr__(self):
417 return "<C wxFindDialogEvent instance at %s>" % (self.this,)
418 class wxFindDialogEvent(wxFindDialogEventPtr):
419 def __init__(self,*_args,**_kwargs):
420 self.this = apply(cmndlgsc.new_wxFindDialogEvent,_args,_kwargs)
421 self.thisown = 1
422
423
424
425
426 class wxFindReplaceDataPtr(wxObjectPtr):
427 def __init__(self,this):
428 self.this = this
429 self.thisown = 0
430 def __del__(self,cmndlgsc=cmndlgsc):
431 if self.thisown == 1 :
432 cmndlgsc.delete_wxFindReplaceData(self)
433 def GetFindString(self, *_args, **_kwargs):
434 val = apply(cmndlgsc.wxFindReplaceData_GetFindString,(self,) + _args, _kwargs)
435 return val
436 def GetReplaceString(self, *_args, **_kwargs):
437 val = apply(cmndlgsc.wxFindReplaceData_GetReplaceString,(self,) + _args, _kwargs)
438 return val
439 def GetFlags(self, *_args, **_kwargs):
440 val = apply(cmndlgsc.wxFindReplaceData_GetFlags,(self,) + _args, _kwargs)
441 return val
442 def SetFlags(self, *_args, **_kwargs):
443 val = apply(cmndlgsc.wxFindReplaceData_SetFlags,(self,) + _args, _kwargs)
444 return val
445 def SetFindString(self, *_args, **_kwargs):
446 val = apply(cmndlgsc.wxFindReplaceData_SetFindString,(self,) + _args, _kwargs)
447 return val
448 def SetReplaceString(self, *_args, **_kwargs):
449 val = apply(cmndlgsc.wxFindReplaceData_SetReplaceString,(self,) + _args, _kwargs)
450 return val
451 def __repr__(self):
452 return "<C wxFindReplaceData instance at %s>" % (self.this,)
453 class wxFindReplaceData(wxFindReplaceDataPtr):
454 def __init__(self,*_args,**_kwargs):
455 self.this = apply(cmndlgsc.new_wxFindReplaceData,_args,_kwargs)
456 self.thisown = 1
457
458
459
460
461 class wxFindReplaceDialogPtr(wxDialogPtr):
462 def __init__(self,this):
463 self.this = this
464 self.thisown = 0
465 def Create(self, *_args, **_kwargs):
466 val = apply(cmndlgsc.wxFindReplaceDialog_Create,(self,) + _args, _kwargs)
467 return val
468 def GetData(self, *_args, **_kwargs):
469 val = apply(cmndlgsc.wxFindReplaceDialog_GetData,(self,) + _args, _kwargs)
470 if val: val = wxFindReplaceDataPtr(val)
471 return val
472 def SetData(self, *_args, **_kwargs):
473 val = apply(cmndlgsc.wxFindReplaceDialog_SetData,(self,) + _args, _kwargs)
474 return val
475 def __repr__(self):
476 return "<C wxFindReplaceDialog instance at %s>" % (self.this,)
477 class wxFindReplaceDialog(wxFindReplaceDialogPtr):
478 def __init__(self,*_args,**_kwargs):
479 self.this = apply(cmndlgsc.new_wxFindReplaceDialog,_args,_kwargs)
480 self.thisown = 1
481 self._setOORInfo(self)
482
483
484
485 def wxPreFindReplaceDialog(*_args,**_kwargs):
486 val = wxFindReplaceDialogPtr(apply(cmndlgsc.new_wxPreFindReplaceDialog,_args,_kwargs))
487 val.thisown = 1
488 val._setOORInfo(val)
489 return val
490
491
492
493
494 #-------------- FUNCTION WRAPPERS ------------------
495
496
497
498 #-------------- VARIABLE WRAPPERS ------------------
499
500 wxCHOICEDLG_STYLE = cmndlgsc.wxCHOICEDLG_STYLE
501 wxFR_DOWN = cmndlgsc.wxFR_DOWN
502 wxFR_WHOLEWORD = cmndlgsc.wxFR_WHOLEWORD
503 wxFR_MATCHCASE = cmndlgsc.wxFR_MATCHCASE
504 wxFR_REPLACEDIALOG = cmndlgsc.wxFR_REPLACEDIALOG
505 wxFR_NOUPDOWN = cmndlgsc.wxFR_NOUPDOWN
506 wxFR_NOMATCHCASE = cmndlgsc.wxFR_NOMATCHCASE
507 wxFR_NOWHOLEWORD = cmndlgsc.wxFR_NOWHOLEWORD
508 wxEVT_COMMAND_FIND = cmndlgsc.wxEVT_COMMAND_FIND
509 wxEVT_COMMAND_FIND_NEXT = cmndlgsc.wxEVT_COMMAND_FIND_NEXT
510 wxEVT_COMMAND_FIND_REPLACE = cmndlgsc.wxEVT_COMMAND_FIND_REPLACE
511 wxEVT_COMMAND_FIND_REPLACE_ALL = cmndlgsc.wxEVT_COMMAND_FIND_REPLACE_ALL
512 wxEVT_COMMAND_FIND_CLOSE = cmndlgsc.wxEVT_COMMAND_FIND_CLOSE