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