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