]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/cmndlgs.py
SWIGged updates for wxMac
[wxWidgets.git] / wxPython / src / mac / cmndlgs.py
CommitLineData
e6056257
RD
1# This file was created automatically by SWIG.
2import cmndlgsc
3
4from misc import *
5
6from gdi import *
7
8from windows import *
9
10from clip_dnd import *
11
12from events import *
13
14from frames import *
15
16from stattool import *
17
18from controls import *
19import wx
20
21
22def EVT_COMMAND_FIND(win, id, func):
23 win.Connect(id, -1, wxEVT_COMMAND_FIND, func)
24
25def EVT_COMMAND_FIND_NEXT(win, id, func):
26 win.Connect(id, -1, wxEVT_COMMAND_FIND_NEXT, func)
27
28def EVT_COMMAND_FIND_REPLACE(win, id, func):
29 win.Connect(id, -1, wxEVT_COMMAND_FIND_REPLACE, func)
30
31def EVT_COMMAND_FIND_REPLACE_ALL(win, id, func):
32 win.Connect(id, -1, wxEVT_COMMAND_FIND_REPLACE_ALL, func)
33
34def EVT_COMMAND_FIND_CLOSE(win, id, func):
35 win.Connect(id, -1, wxEVT_COMMAND_FIND_CLOSE, func)
36
37
38class 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,)
67class 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
75class 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,)
88class 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
97class 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,)
121class 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
130class 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,)
187class 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
ca31b3da
RD
196class wxMultiChoiceDialogPtr(wxDialogPtr):
197 def __init__(self,this):
198 self.this = this
199 self.thisown = 0
200 def SetSelections(self, *_args, **_kwargs):
201 val = apply(cmndlgsc.wxMultiChoiceDialog_SetSelections,(self,) + _args, _kwargs)
202 return val
203 def GetSelections(self, *_args, **_kwargs):
204 val = apply(cmndlgsc.wxMultiChoiceDialog_GetSelections,(self,) + _args, _kwargs)
205 return val
206 def __repr__(self):
207 return "<C wxMultiChoiceDialog instance at %s>" % (self.this,)
208class wxMultiChoiceDialog(wxMultiChoiceDialogPtr):
209 def __init__(self,*_args,**_kwargs):
210 self.this = apply(cmndlgsc.new_wxMultiChoiceDialog,_args,_kwargs)
211 self.thisown = 1
212 self._setOORInfo(self)
213
214
215
216
e6056257
RD
217class wxSingleChoiceDialogPtr(wxDialogPtr):
218 def __init__(self,this):
219 self.this = this
220 self.thisown = 0
221 def GetSelection(self, *_args, **_kwargs):
222 val = apply(cmndlgsc.wxSingleChoiceDialog_GetSelection,(self,) + _args, _kwargs)
223 return val
224 def GetStringSelection(self, *_args, **_kwargs):
225 val = apply(cmndlgsc.wxSingleChoiceDialog_GetStringSelection,(self,) + _args, _kwargs)
226 return val
227 def SetSelection(self, *_args, **_kwargs):
228 val = apply(cmndlgsc.wxSingleChoiceDialog_SetSelection,(self,) + _args, _kwargs)
229 return val
230 def ShowModal(self, *_args, **_kwargs):
231 val = apply(cmndlgsc.wxSingleChoiceDialog_ShowModal,(self,) + _args, _kwargs)
232 return val
233 def __repr__(self):
234 return "<C wxSingleChoiceDialog instance at %s>" % (self.this,)
235class wxSingleChoiceDialog(wxSingleChoiceDialogPtr):
236 def __init__(self,*_args,**_kwargs):
237 self.this = apply(cmndlgsc.new_wxSingleChoiceDialog,_args,_kwargs)
238 self.thisown = 1
239 self._setOORInfo(self)
240
241
242
243
244class wxTextEntryDialogPtr(wxDialogPtr):
245 def __init__(self,this):
246 self.this = this
247 self.thisown = 0
248 def GetValue(self, *_args, **_kwargs):
249 val = apply(cmndlgsc.wxTextEntryDialog_GetValue,(self,) + _args, _kwargs)
250 return val
251 def SetValue(self, *_args, **_kwargs):
252 val = apply(cmndlgsc.wxTextEntryDialog_SetValue,(self,) + _args, _kwargs)
253 return val
254 def ShowModal(self, *_args, **_kwargs):
255 val = apply(cmndlgsc.wxTextEntryDialog_ShowModal,(self,) + _args, _kwargs)
256 return val
257 def __repr__(self):
258 return "<C wxTextEntryDialog instance at %s>" % (self.this,)
259class wxTextEntryDialog(wxTextEntryDialogPtr):
260 def __init__(self,*_args,**_kwargs):
261 self.this = apply(cmndlgsc.new_wxTextEntryDialog,_args,_kwargs)
262 self.thisown = 1
263 self._setOORInfo(self)
264
265
266
267
268class wxFontDataPtr(wxObjectPtr):
269 def __init__(self,this):
270 self.this = this
271 self.thisown = 0
272 def __del__(self,cmndlgsc=cmndlgsc):
273 if self.thisown == 1 :
274 cmndlgsc.delete_wxFontData(self)
275 def EnableEffects(self, *_args, **_kwargs):
276 val = apply(cmndlgsc.wxFontData_EnableEffects,(self,) + _args, _kwargs)
277 return val
278 def GetAllowSymbols(self, *_args, **_kwargs):
279 val = apply(cmndlgsc.wxFontData_GetAllowSymbols,(self,) + _args, _kwargs)
280 return val
281 def GetColour(self, *_args, **_kwargs):
282 val = apply(cmndlgsc.wxFontData_GetColour,(self,) + _args, _kwargs)
283 if val: val = wxColourPtr(val) ; val.thisown = 1
284 return val
285 def GetChosenFont(self, *_args, **_kwargs):
286 val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs)
287 if val: val = wxFontPtr(val) ; val.thisown = 1
288 return val
289 def GetEnableEffects(self, *_args, **_kwargs):
290 val = apply(cmndlgsc.wxFontData_GetEnableEffects,(self,) + _args, _kwargs)
291 return val
292 def GetInitialFont(self, *_args, **_kwargs):
293 val = apply(cmndlgsc.wxFontData_GetInitialFont,(self,) + _args, _kwargs)
294 if val: val = wxFontPtr(val) ; val.thisown = 1
295 return val
296 def GetShowHelp(self, *_args, **_kwargs):
297 val = apply(cmndlgsc.wxFontData_GetShowHelp,(self,) + _args, _kwargs)
298 return val
299 def SetAllowSymbols(self, *_args, **_kwargs):
300 val = apply(cmndlgsc.wxFontData_SetAllowSymbols,(self,) + _args, _kwargs)
301 return val
302 def SetChosenFont(self, *_args, **_kwargs):
303 val = apply(cmndlgsc.wxFontData_SetChosenFont,(self,) + _args, _kwargs)
304 return val
305 def SetColour(self, *_args, **_kwargs):
306 val = apply(cmndlgsc.wxFontData_SetColour,(self,) + _args, _kwargs)
307 return val
308 def SetInitialFont(self, *_args, **_kwargs):
309 val = apply(cmndlgsc.wxFontData_SetInitialFont,(self,) + _args, _kwargs)
310 return val
311 def SetRange(self, *_args, **_kwargs):
312 val = apply(cmndlgsc.wxFontData_SetRange,(self,) + _args, _kwargs)
313 return val
314 def SetShowHelp(self, *_args, **_kwargs):
315 val = apply(cmndlgsc.wxFontData_SetShowHelp,(self,) + _args, _kwargs)
316 return val
317 def __repr__(self):
318 return "<C wxFontData instance at %s>" % (self.this,)
319class wxFontData(wxFontDataPtr):
320 def __init__(self,*_args,**_kwargs):
321 self.this = apply(cmndlgsc.new_wxFontData,_args,_kwargs)
322 self.thisown = 1
323
324
325
326
327class wxFontDialogPtr(wxDialogPtr):
328 def __init__(self,this):
329 self.this = this
330 self.thisown = 0
331 def GetFontData(self, *_args, **_kwargs):
332 val = apply(cmndlgsc.wxFontDialog_GetFontData,(self,) + _args, _kwargs)
333 if val: val = wxFontDataPtr(val)
334 return val
335 def ShowModal(self, *_args, **_kwargs):
336 val = apply(cmndlgsc.wxFontDialog_ShowModal,(self,) + _args, _kwargs)
337 return val
338 def __repr__(self):
339 return "<C wxFontDialog instance at %s>" % (self.this,)
340class wxFontDialog(wxFontDialogPtr):
341 def __init__(self,*_args,**_kwargs):
342 self.this = apply(cmndlgsc.new_wxFontDialog,_args,_kwargs)
343 self.thisown = 1
344 self._setOORInfo(self)
345
346
347
348
349class wxMessageDialogPtr(wxDialogPtr):
350 def __init__(self,this):
351 self.this = this
352 self.thisown = 0
353 def ShowModal(self, *_args, **_kwargs):
354 val = apply(cmndlgsc.wxMessageDialog_ShowModal,(self,) + _args, _kwargs)
355 return val
356 def __repr__(self):
357 return "<C wxMessageDialog instance at %s>" % (self.this,)
358class wxMessageDialog(wxMessageDialogPtr):
359 def __init__(self,*_args,**_kwargs):
360 self.this = apply(cmndlgsc.new_wxMessageDialog,_args,_kwargs)
361 self.thisown = 1
362 self._setOORInfo(self)
363
364
365
366
367class wxProgressDialogPtr(wxFramePtr):
368 def __init__(self,this):
369 self.this = this
370 self.thisown = 0
371 def Update(self, *_args, **_kwargs):
372 val = apply(cmndlgsc.wxProgressDialog_Update,(self,) + _args, _kwargs)
373 return val
374 def Resume(self, *_args, **_kwargs):
375 val = apply(cmndlgsc.wxProgressDialog_Resume,(self,) + _args, _kwargs)
376 return val
377 def __repr__(self):
378 return "<C wxProgressDialog instance at %s>" % (self.this,)
379class wxProgressDialog(wxProgressDialogPtr):
380 def __init__(self,*_args,**_kwargs):
381 self.this = apply(cmndlgsc.new_wxProgressDialog,_args,_kwargs)
382 self.thisown = 1
383 self._setOORInfo(self)
384
385
386
387
388class wxFindDialogEventPtr(wxCommandEventPtr):
389 def __init__(self,this):
390 self.this = this
391 self.thisown = 0
392 def GetFlags(self, *_args, **_kwargs):
393 val = apply(cmndlgsc.wxFindDialogEvent_GetFlags,(self,) + _args, _kwargs)
394 return val
395 def GetFindString(self, *_args, **_kwargs):
396 val = apply(cmndlgsc.wxFindDialogEvent_GetFindString,(self,) + _args, _kwargs)
397 return val
398 def GetReplaceString(self, *_args, **_kwargs):
399 val = apply(cmndlgsc.wxFindDialogEvent_GetReplaceString,(self,) + _args, _kwargs)
400 return val
401 def GetDialog(self, *_args, **_kwargs):
402 val = apply(cmndlgsc.wxFindDialogEvent_GetDialog,(self,) + _args, _kwargs)
403 if val: val = wxFindReplaceDialogPtr(val)
404 return val
405 def SetFlags(self, *_args, **_kwargs):
406 val = apply(cmndlgsc.wxFindDialogEvent_SetFlags,(self,) + _args, _kwargs)
407 return val
408 def SetFindString(self, *_args, **_kwargs):
409 val = apply(cmndlgsc.wxFindDialogEvent_SetFindString,(self,) + _args, _kwargs)
410 return val
411 def SetReplaceString(self, *_args, **_kwargs):
412 val = apply(cmndlgsc.wxFindDialogEvent_SetReplaceString,(self,) + _args, _kwargs)
413 return val
414 def __repr__(self):
415 return "<C wxFindDialogEvent instance at %s>" % (self.this,)
416class wxFindDialogEvent(wxFindDialogEventPtr):
417 def __init__(self,*_args,**_kwargs):
418 self.this = apply(cmndlgsc.new_wxFindDialogEvent,_args,_kwargs)
419 self.thisown = 1
420
421
422
423
424class wxFindReplaceDataPtr(wxObjectPtr):
425 def __init__(self,this):
426 self.this = this
427 self.thisown = 0
428 def __del__(self,cmndlgsc=cmndlgsc):
429 if self.thisown == 1 :
430 cmndlgsc.delete_wxFindReplaceData(self)
431 def GetFindString(self, *_args, **_kwargs):
432 val = apply(cmndlgsc.wxFindReplaceData_GetFindString,(self,) + _args, _kwargs)
433 return val
434 def GetReplaceString(self, *_args, **_kwargs):
435 val = apply(cmndlgsc.wxFindReplaceData_GetReplaceString,(self,) + _args, _kwargs)
436 return val
437 def GetFlags(self, *_args, **_kwargs):
438 val = apply(cmndlgsc.wxFindReplaceData_GetFlags,(self,) + _args, _kwargs)
439 return val
440 def SetFlags(self, *_args, **_kwargs):
441 val = apply(cmndlgsc.wxFindReplaceData_SetFlags,(self,) + _args, _kwargs)
442 return val
443 def SetFindString(self, *_args, **_kwargs):
444 val = apply(cmndlgsc.wxFindReplaceData_SetFindString,(self,) + _args, _kwargs)
445 return val
446 def SetReplaceString(self, *_args, **_kwargs):
447 val = apply(cmndlgsc.wxFindReplaceData_SetReplaceString,(self,) + _args, _kwargs)
448 return val
449 def __repr__(self):
450 return "<C wxFindReplaceData instance at %s>" % (self.this,)
451class wxFindReplaceData(wxFindReplaceDataPtr):
452 def __init__(self,*_args,**_kwargs):
453 self.this = apply(cmndlgsc.new_wxFindReplaceData,_args,_kwargs)
454 self.thisown = 1
455
456
457
458
459class wxFindReplaceDialogPtr(wxDialogPtr):
460 def __init__(self,this):
461 self.this = this
462 self.thisown = 0
463 def Create(self, *_args, **_kwargs):
464 val = apply(cmndlgsc.wxFindReplaceDialog_Create,(self,) + _args, _kwargs)
465 return val
466 def GetData(self, *_args, **_kwargs):
467 val = apply(cmndlgsc.wxFindReplaceDialog_GetData,(self,) + _args, _kwargs)
468 if val: val = wxFindReplaceDataPtr(val)
469 return val
470 def SetData(self, *_args, **_kwargs):
471 val = apply(cmndlgsc.wxFindReplaceDialog_SetData,(self,) + _args, _kwargs)
472 return val
473 def __repr__(self):
474 return "<C wxFindReplaceDialog instance at %s>" % (self.this,)
475class wxFindReplaceDialog(wxFindReplaceDialogPtr):
476 def __init__(self,*_args,**_kwargs):
477 self.this = apply(cmndlgsc.new_wxFindReplaceDialog,_args,_kwargs)
478 self.thisown = 1
479 self._setOORInfo(self)
480
481
482
483def wxPreFindReplaceDialog(*_args,**_kwargs):
484 val = wxFindReplaceDialogPtr(apply(cmndlgsc.new_wxPreFindReplaceDialog,_args,_kwargs))
485 val.thisown = 1
486 val._setOORInfo(val)
487 return val
488
489
490
491
492#-------------- FUNCTION WRAPPERS ------------------
493
494
495
496#-------------- VARIABLE WRAPPERS ------------------
497
ca31b3da 498wxCHOICEDLG_STYLE = cmndlgsc.wxCHOICEDLG_STYLE
e6056257
RD
499wxFR_DOWN = cmndlgsc.wxFR_DOWN
500wxFR_WHOLEWORD = cmndlgsc.wxFR_WHOLEWORD
501wxFR_MATCHCASE = cmndlgsc.wxFR_MATCHCASE
502wxFR_REPLACEDIALOG = cmndlgsc.wxFR_REPLACEDIALOG
503wxFR_NOUPDOWN = cmndlgsc.wxFR_NOUPDOWN
504wxFR_NOMATCHCASE = cmndlgsc.wxFR_NOMATCHCASE
505wxFR_NOWHOLEWORD = cmndlgsc.wxFR_NOWHOLEWORD
506wxEVT_COMMAND_FIND = cmndlgsc.wxEVT_COMMAND_FIND
507wxEVT_COMMAND_FIND_NEXT = cmndlgsc.wxEVT_COMMAND_FIND_NEXT
508wxEVT_COMMAND_FIND_REPLACE = cmndlgsc.wxEVT_COMMAND_FIND_REPLACE
509wxEVT_COMMAND_FIND_REPLACE_ALL = cmndlgsc.wxEVT_COMMAND_FIND_REPLACE_ALL
510wxEVT_COMMAND_FIND_CLOSE = cmndlgsc.wxEVT_COMMAND_FIND_CLOSE