1 # This file was created automatically by SWIG.
10 from clip_dnd
import *
16 from stattool
import *
18 from controls
import *
22 def EVT_COMMAND_FIND(win
, id, func
):
23 win
.Connect(id, -1, wxEVT_COMMAND_FIND
, func
)
25 def EVT_COMMAND_FIND_NEXT(win
, id, func
):
26 win
.Connect(id, -1, wxEVT_COMMAND_FIND_NEXT
, func
)
28 def EVT_COMMAND_FIND_REPLACE(win
, id, func
):
29 win
.Connect(id, -1, wxEVT_COMMAND_FIND_REPLACE
, func
)
31 def EVT_COMMAND_FIND_REPLACE_ALL(win
, id, func
):
32 win
.Connect(id, -1, wxEVT_COMMAND_FIND_REPLACE_ALL
, func
)
34 def EVT_COMMAND_FIND_CLOSE(win
, id, func
):
35 win
.Connect(id, -1, wxEVT_COMMAND_FIND_CLOSE
, func
)
38 class wxColourDataPtr(wxObjectPtr
):
39 def __init__(self
,this
):
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
)
48 def GetColour(self
, *_args
, **_kwargs
):
49 val
= apply(cmndlgsc
.wxColourData_GetColour
,(self
,) + _args
, _kwargs
)
50 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
52 def GetCustomColour(self
, *_args
, **_kwargs
):
53 val
= apply(cmndlgsc
.wxColourData_GetCustomColour
,(self
,) + _args
, _kwargs
)
54 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
56 def SetChooseFull(self
, *_args
, **_kwargs
):
57 val
= apply(cmndlgsc
.wxColourData_SetChooseFull
,(self
,) + _args
, _kwargs
)
59 def SetColour(self
, *_args
, **_kwargs
):
60 val
= apply(cmndlgsc
.wxColourData_SetColour
,(self
,) + _args
, _kwargs
)
62 def SetCustomColour(self
, *_args
, **_kwargs
):
63 val
= apply(cmndlgsc
.wxColourData_SetCustomColour
,(self
,) + _args
, _kwargs
)
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
)
75 class wxColourDialogPtr(wxDialogPtr
):
76 def __init__(self
,this
):
79 def GetColourData(self
, *_args
, **_kwargs
):
80 val
= apply(cmndlgsc
.wxColourDialog_GetColourData
,(self
,) + _args
, _kwargs
)
81 if val
: val
= wxColourDataPtr(val
)
83 def ShowModal(self
, *_args
, **_kwargs
):
84 val
= apply(cmndlgsc
.wxColourDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
92 self
._setOORInfo
(self
)
97 class wxDirDialogPtr(wxDialogPtr
):
98 def __init__(self
,this
):
101 def GetPath(self
, *_args
, **_kwargs
):
102 val
= apply(cmndlgsc
.wxDirDialog_GetPath
,(self
,) + _args
, _kwargs
)
104 def GetMessage(self
, *_args
, **_kwargs
):
105 val
= apply(cmndlgsc
.wxDirDialog_GetMessage
,(self
,) + _args
, _kwargs
)
107 def GetStyle(self
, *_args
, **_kwargs
):
108 val
= apply(cmndlgsc
.wxDirDialog_GetStyle
,(self
,) + _args
, _kwargs
)
110 def SetMessage(self
, *_args
, **_kwargs
):
111 val
= apply(cmndlgsc
.wxDirDialog_SetMessage
,(self
,) + _args
, _kwargs
)
113 def SetPath(self
, *_args
, **_kwargs
):
114 val
= apply(cmndlgsc
.wxDirDialog_SetPath
,(self
,) + _args
, _kwargs
)
116 def ShowModal(self
, *_args
, **_kwargs
):
117 val
= apply(cmndlgsc
.wxDirDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
125 self
._setOORInfo
(self
)
130 class wxFileDialogPtr(wxDialogPtr
):
131 def __init__(self
,this
):
134 def GetDirectory(self
, *_args
, **_kwargs
):
135 val
= apply(cmndlgsc
.wxFileDialog_GetDirectory
,(self
,) + _args
, _kwargs
)
137 def GetFilename(self
, *_args
, **_kwargs
):
138 val
= apply(cmndlgsc
.wxFileDialog_GetFilename
,(self
,) + _args
, _kwargs
)
140 def GetFilterIndex(self
, *_args
, **_kwargs
):
141 val
= apply(cmndlgsc
.wxFileDialog_GetFilterIndex
,(self
,) + _args
, _kwargs
)
143 def GetMessage(self
, *_args
, **_kwargs
):
144 val
= apply(cmndlgsc
.wxFileDialog_GetMessage
,(self
,) + _args
, _kwargs
)
146 def GetPath(self
, *_args
, **_kwargs
):
147 val
= apply(cmndlgsc
.wxFileDialog_GetPath
,(self
,) + _args
, _kwargs
)
149 def GetStyle(self
, *_args
, **_kwargs
):
150 val
= apply(cmndlgsc
.wxFileDialog_GetStyle
,(self
,) + _args
, _kwargs
)
152 def GetWildcard(self
, *_args
, **_kwargs
):
153 val
= apply(cmndlgsc
.wxFileDialog_GetWildcard
,(self
,) + _args
, _kwargs
)
155 def SetDirectory(self
, *_args
, **_kwargs
):
156 val
= apply(cmndlgsc
.wxFileDialog_SetDirectory
,(self
,) + _args
, _kwargs
)
158 def SetFilename(self
, *_args
, **_kwargs
):
159 val
= apply(cmndlgsc
.wxFileDialog_SetFilename
,(self
,) + _args
, _kwargs
)
161 def SetFilterIndex(self
, *_args
, **_kwargs
):
162 val
= apply(cmndlgsc
.wxFileDialog_SetFilterIndex
,(self
,) + _args
, _kwargs
)
164 def SetMessage(self
, *_args
, **_kwargs
):
165 val
= apply(cmndlgsc
.wxFileDialog_SetMessage
,(self
,) + _args
, _kwargs
)
167 def SetPath(self
, *_args
, **_kwargs
):
168 val
= apply(cmndlgsc
.wxFileDialog_SetPath
,(self
,) + _args
, _kwargs
)
170 def SetStyle(self
, *_args
, **_kwargs
):
171 val
= apply(cmndlgsc
.wxFileDialog_SetStyle
,(self
,) + _args
, _kwargs
)
173 def SetWildcard(self
, *_args
, **_kwargs
):
174 val
= apply(cmndlgsc
.wxFileDialog_SetWildcard
,(self
,) + _args
, _kwargs
)
176 def ShowModal(self
, *_args
, **_kwargs
):
177 val
= apply(cmndlgsc
.wxFileDialog_ShowModal
,(self
,) + _args
, _kwargs
)
179 def GetFilenames(self
, *_args
, **_kwargs
):
180 val
= apply(cmndlgsc
.wxFileDialog_GetFilenames
,(self
,) + _args
, _kwargs
)
182 def GetPaths(self
, *_args
, **_kwargs
):
183 val
= apply(cmndlgsc
.wxFileDialog_GetPaths
,(self
,) + _args
, _kwargs
)
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
)
191 self
._setOORInfo
(self
)
196 class wxSingleChoiceDialogPtr(wxDialogPtr
):
197 def __init__(self
,this
):
200 def GetSelection(self
, *_args
, **_kwargs
):
201 val
= apply(cmndlgsc
.wxSingleChoiceDialog_GetSelection
,(self
,) + _args
, _kwargs
)
203 def GetStringSelection(self
, *_args
, **_kwargs
):
204 val
= apply(cmndlgsc
.wxSingleChoiceDialog_GetStringSelection
,(self
,) + _args
, _kwargs
)
206 def SetSelection(self
, *_args
, **_kwargs
):
207 val
= apply(cmndlgsc
.wxSingleChoiceDialog_SetSelection
,(self
,) + _args
, _kwargs
)
209 def ShowModal(self
, *_args
, **_kwargs
):
210 val
= apply(cmndlgsc
.wxSingleChoiceDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
218 self
._setOORInfo
(self
)
223 class wxTextEntryDialogPtr(wxDialogPtr
):
224 def __init__(self
,this
):
227 def GetValue(self
, *_args
, **_kwargs
):
228 val
= apply(cmndlgsc
.wxTextEntryDialog_GetValue
,(self
,) + _args
, _kwargs
)
230 def SetValue(self
, *_args
, **_kwargs
):
231 val
= apply(cmndlgsc
.wxTextEntryDialog_SetValue
,(self
,) + _args
, _kwargs
)
233 def ShowModal(self
, *_args
, **_kwargs
):
234 val
= apply(cmndlgsc
.wxTextEntryDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
242 self
._setOORInfo
(self
)
247 class wxFontDataPtr(wxObjectPtr
):
248 def __init__(self
,this
):
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
)
257 def GetAllowSymbols(self
, *_args
, **_kwargs
):
258 val
= apply(cmndlgsc
.wxFontData_GetAllowSymbols
,(self
,) + _args
, _kwargs
)
260 def GetColour(self
, *_args
, **_kwargs
):
261 val
= apply(cmndlgsc
.wxFontData_GetColour
,(self
,) + _args
, _kwargs
)
262 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
264 def GetChosenFont(self
, *_args
, **_kwargs
):
265 val
= apply(cmndlgsc
.wxFontData_GetChosenFont
,(self
,) + _args
, _kwargs
)
266 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
268 def GetEnableEffects(self
, *_args
, **_kwargs
):
269 val
= apply(cmndlgsc
.wxFontData_GetEnableEffects
,(self
,) + _args
, _kwargs
)
271 def GetInitialFont(self
, *_args
, **_kwargs
):
272 val
= apply(cmndlgsc
.wxFontData_GetInitialFont
,(self
,) + _args
, _kwargs
)
273 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
275 def GetShowHelp(self
, *_args
, **_kwargs
):
276 val
= apply(cmndlgsc
.wxFontData_GetShowHelp
,(self
,) + _args
, _kwargs
)
278 def SetAllowSymbols(self
, *_args
, **_kwargs
):
279 val
= apply(cmndlgsc
.wxFontData_SetAllowSymbols
,(self
,) + _args
, _kwargs
)
281 def SetChosenFont(self
, *_args
, **_kwargs
):
282 val
= apply(cmndlgsc
.wxFontData_SetChosenFont
,(self
,) + _args
, _kwargs
)
284 def SetColour(self
, *_args
, **_kwargs
):
285 val
= apply(cmndlgsc
.wxFontData_SetColour
,(self
,) + _args
, _kwargs
)
287 def SetInitialFont(self
, *_args
, **_kwargs
):
288 val
= apply(cmndlgsc
.wxFontData_SetInitialFont
,(self
,) + _args
, _kwargs
)
290 def SetRange(self
, *_args
, **_kwargs
):
291 val
= apply(cmndlgsc
.wxFontData_SetRange
,(self
,) + _args
, _kwargs
)
293 def SetShowHelp(self
, *_args
, **_kwargs
):
294 val
= apply(cmndlgsc
.wxFontData_SetShowHelp
,(self
,) + _args
, _kwargs
)
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
)
306 class wxFontDialogPtr(wxDialogPtr
):
307 def __init__(self
,this
):
310 def GetFontData(self
, *_args
, **_kwargs
):
311 val
= apply(cmndlgsc
.wxFontDialog_GetFontData
,(self
,) + _args
, _kwargs
)
312 if val
: val
= wxFontDataPtr(val
)
314 def ShowModal(self
, *_args
, **_kwargs
):
315 val
= apply(cmndlgsc
.wxFontDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
323 self
._setOORInfo
(self
)
328 class wxMessageDialogPtr(wxDialogPtr
):
329 def __init__(self
,this
):
332 def ShowModal(self
, *_args
, **_kwargs
):
333 val
= apply(cmndlgsc
.wxMessageDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
341 self
._setOORInfo
(self
)
346 class wxProgressDialogPtr(wxFramePtr
):
347 def __init__(self
,this
):
350 def Update(self
, *_args
, **_kwargs
):
351 val
= apply(cmndlgsc
.wxProgressDialog_Update
,(self
,) + _args
, _kwargs
)
353 def Resume(self
, *_args
, **_kwargs
):
354 val
= apply(cmndlgsc
.wxProgressDialog_Resume
,(self
,) + _args
, _kwargs
)
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
)
362 self
._setOORInfo
(self
)
367 class wxFindDialogEventPtr(wxCommandEventPtr
):
368 def __init__(self
,this
):
371 def GetFlags(self
, *_args
, **_kwargs
):
372 val
= apply(cmndlgsc
.wxFindDialogEvent_GetFlags
,(self
,) + _args
, _kwargs
)
374 def GetFindString(self
, *_args
, **_kwargs
):
375 val
= apply(cmndlgsc
.wxFindDialogEvent_GetFindString
,(self
,) + _args
, _kwargs
)
377 def GetReplaceString(self
, *_args
, **_kwargs
):
378 val
= apply(cmndlgsc
.wxFindDialogEvent_GetReplaceString
,(self
,) + _args
, _kwargs
)
380 def GetDialog(self
, *_args
, **_kwargs
):
381 val
= apply(cmndlgsc
.wxFindDialogEvent_GetDialog
,(self
,) + _args
, _kwargs
)
382 if val
: val
= wxFindReplaceDialogPtr(val
)
384 def SetFlags(self
, *_args
, **_kwargs
):
385 val
= apply(cmndlgsc
.wxFindDialogEvent_SetFlags
,(self
,) + _args
, _kwargs
)
387 def SetFindString(self
, *_args
, **_kwargs
):
388 val
= apply(cmndlgsc
.wxFindDialogEvent_SetFindString
,(self
,) + _args
, _kwargs
)
390 def SetReplaceString(self
, *_args
, **_kwargs
):
391 val
= apply(cmndlgsc
.wxFindDialogEvent_SetReplaceString
,(self
,) + _args
, _kwargs
)
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
)
403 class wxFindReplaceDataPtr(wxObjectPtr
):
404 def __init__(self
,this
):
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
)
413 def GetReplaceString(self
, *_args
, **_kwargs
):
414 val
= apply(cmndlgsc
.wxFindReplaceData_GetReplaceString
,(self
,) + _args
, _kwargs
)
416 def GetFlags(self
, *_args
, **_kwargs
):
417 val
= apply(cmndlgsc
.wxFindReplaceData_GetFlags
,(self
,) + _args
, _kwargs
)
419 def SetFlags(self
, *_args
, **_kwargs
):
420 val
= apply(cmndlgsc
.wxFindReplaceData_SetFlags
,(self
,) + _args
, _kwargs
)
422 def SetFindString(self
, *_args
, **_kwargs
):
423 val
= apply(cmndlgsc
.wxFindReplaceData_SetFindString
,(self
,) + _args
, _kwargs
)
425 def SetReplaceString(self
, *_args
, **_kwargs
):
426 val
= apply(cmndlgsc
.wxFindReplaceData_SetReplaceString
,(self
,) + _args
, _kwargs
)
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
)
438 class wxFindReplaceDialogPtr(wxDialogPtr
):
439 def __init__(self
,this
):
442 def Create(self
, *_args
, **_kwargs
):
443 val
= apply(cmndlgsc
.wxFindReplaceDialog_Create
,(self
,) + _args
, _kwargs
)
445 def GetData(self
, *_args
, **_kwargs
):
446 val
= apply(cmndlgsc
.wxFindReplaceDialog_GetData
,(self
,) + _args
, _kwargs
)
447 if val
: val
= wxFindReplaceDataPtr(val
)
449 def SetData(self
, *_args
, **_kwargs
):
450 val
= apply(cmndlgsc
.wxFindReplaceDialog_SetData
,(self
,) + _args
, _kwargs
)
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
)
458 self
._setOORInfo
(self
)
462 def wxPreFindReplaceDialog(*_args
,**_kwargs
):
463 val
= wxFindReplaceDialogPtr(apply(cmndlgsc
.new_wxPreFindReplaceDialog
,_args
,_kwargs
))
471 #-------------- FUNCTION WRAPPERS ------------------
475 #-------------- VARIABLE WRAPPERS ------------------
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