1 # This file was created automatically by SWIG.
12 from clip_dnd
import *
18 from stattool
import *
20 from controls
import *
24 def EVT_COMMAND_FIND(win
, id, func
):
25 win
.Connect(id, -1, wxEVT_COMMAND_FIND
, func
)
27 def EVT_COMMAND_FIND_NEXT(win
, id, func
):
28 win
.Connect(id, -1, wxEVT_COMMAND_FIND_NEXT
, func
)
30 def EVT_COMMAND_FIND_REPLACE(win
, id, func
):
31 win
.Connect(id, -1, wxEVT_COMMAND_FIND_REPLACE
, func
)
33 def EVT_COMMAND_FIND_REPLACE_ALL(win
, id, func
):
34 win
.Connect(id, -1, wxEVT_COMMAND_FIND_REPLACE_ALL
, func
)
36 def EVT_COMMAND_FIND_CLOSE(win
, id, func
):
37 win
.Connect(id, -1, wxEVT_COMMAND_FIND_CLOSE
, func
)
40 class wxColourDataPtr(wxObjectPtr
):
41 def __init__(self
,this
):
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
)
50 def GetColour(self
, *_args
, **_kwargs
):
51 val
= apply(cmndlgsc
.wxColourData_GetColour
,(self
,) + _args
, _kwargs
)
52 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
54 def GetCustomColour(self
, *_args
, **_kwargs
):
55 val
= apply(cmndlgsc
.wxColourData_GetCustomColour
,(self
,) + _args
, _kwargs
)
56 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
58 def SetChooseFull(self
, *_args
, **_kwargs
):
59 val
= apply(cmndlgsc
.wxColourData_SetChooseFull
,(self
,) + _args
, _kwargs
)
61 def SetColour(self
, *_args
, **_kwargs
):
62 val
= apply(cmndlgsc
.wxColourData_SetColour
,(self
,) + _args
, _kwargs
)
64 def SetCustomColour(self
, *_args
, **_kwargs
):
65 val
= apply(cmndlgsc
.wxColourData_SetCustomColour
,(self
,) + _args
, _kwargs
)
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
)
77 class wxColourDialogPtr(wxDialogPtr
):
78 def __init__(self
,this
):
81 def GetColourData(self
, *_args
, **_kwargs
):
82 val
= apply(cmndlgsc
.wxColourDialog_GetColourData
,(self
,) + _args
, _kwargs
)
83 if val
: val
= wxColourDataPtr(val
)
85 def ShowModal(self
, *_args
, **_kwargs
):
86 val
= apply(cmndlgsc
.wxColourDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
94 self
._setOORInfo
(self
)
99 class wxDirDialogPtr(wxDialogPtr
):
100 def __init__(self
,this
):
103 def GetPath(self
, *_args
, **_kwargs
):
104 val
= apply(cmndlgsc
.wxDirDialog_GetPath
,(self
,) + _args
, _kwargs
)
106 def GetMessage(self
, *_args
, **_kwargs
):
107 val
= apply(cmndlgsc
.wxDirDialog_GetMessage
,(self
,) + _args
, _kwargs
)
109 def GetStyle(self
, *_args
, **_kwargs
):
110 val
= apply(cmndlgsc
.wxDirDialog_GetStyle
,(self
,) + _args
, _kwargs
)
112 def SetMessage(self
, *_args
, **_kwargs
):
113 val
= apply(cmndlgsc
.wxDirDialog_SetMessage
,(self
,) + _args
, _kwargs
)
115 def SetPath(self
, *_args
, **_kwargs
):
116 val
= apply(cmndlgsc
.wxDirDialog_SetPath
,(self
,) + _args
, _kwargs
)
118 def ShowModal(self
, *_args
, **_kwargs
):
119 val
= apply(cmndlgsc
.wxDirDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
127 self
._setOORInfo
(self
)
132 class wxFileDialogPtr(wxDialogPtr
):
133 def __init__(self
,this
):
136 def GetDirectory(self
, *_args
, **_kwargs
):
137 val
= apply(cmndlgsc
.wxFileDialog_GetDirectory
,(self
,) + _args
, _kwargs
)
139 def GetFilename(self
, *_args
, **_kwargs
):
140 val
= apply(cmndlgsc
.wxFileDialog_GetFilename
,(self
,) + _args
, _kwargs
)
142 def GetFilterIndex(self
, *_args
, **_kwargs
):
143 val
= apply(cmndlgsc
.wxFileDialog_GetFilterIndex
,(self
,) + _args
, _kwargs
)
145 def GetMessage(self
, *_args
, **_kwargs
):
146 val
= apply(cmndlgsc
.wxFileDialog_GetMessage
,(self
,) + _args
, _kwargs
)
148 def GetPath(self
, *_args
, **_kwargs
):
149 val
= apply(cmndlgsc
.wxFileDialog_GetPath
,(self
,) + _args
, _kwargs
)
151 def GetStyle(self
, *_args
, **_kwargs
):
152 val
= apply(cmndlgsc
.wxFileDialog_GetStyle
,(self
,) + _args
, _kwargs
)
154 def GetWildcard(self
, *_args
, **_kwargs
):
155 val
= apply(cmndlgsc
.wxFileDialog_GetWildcard
,(self
,) + _args
, _kwargs
)
157 def SetDirectory(self
, *_args
, **_kwargs
):
158 val
= apply(cmndlgsc
.wxFileDialog_SetDirectory
,(self
,) + _args
, _kwargs
)
160 def SetFilename(self
, *_args
, **_kwargs
):
161 val
= apply(cmndlgsc
.wxFileDialog_SetFilename
,(self
,) + _args
, _kwargs
)
163 def SetFilterIndex(self
, *_args
, **_kwargs
):
164 val
= apply(cmndlgsc
.wxFileDialog_SetFilterIndex
,(self
,) + _args
, _kwargs
)
166 def SetMessage(self
, *_args
, **_kwargs
):
167 val
= apply(cmndlgsc
.wxFileDialog_SetMessage
,(self
,) + _args
, _kwargs
)
169 def SetPath(self
, *_args
, **_kwargs
):
170 val
= apply(cmndlgsc
.wxFileDialog_SetPath
,(self
,) + _args
, _kwargs
)
172 def SetStyle(self
, *_args
, **_kwargs
):
173 val
= apply(cmndlgsc
.wxFileDialog_SetStyle
,(self
,) + _args
, _kwargs
)
175 def SetWildcard(self
, *_args
, **_kwargs
):
176 val
= apply(cmndlgsc
.wxFileDialog_SetWildcard
,(self
,) + _args
, _kwargs
)
178 def ShowModal(self
, *_args
, **_kwargs
):
179 val
= apply(cmndlgsc
.wxFileDialog_ShowModal
,(self
,) + _args
, _kwargs
)
181 def GetFilenames(self
, *_args
, **_kwargs
):
182 val
= apply(cmndlgsc
.wxFileDialog_GetFilenames
,(self
,) + _args
, _kwargs
)
184 def GetPaths(self
, *_args
, **_kwargs
):
185 val
= apply(cmndlgsc
.wxFileDialog_GetPaths
,(self
,) + _args
, _kwargs
)
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
)
193 self
._setOORInfo
(self
)
198 class wxMultiChoiceDialogPtr(wxDialogPtr
):
199 def __init__(self
,this
):
202 def SetSelections(self
, *_args
, **_kwargs
):
203 val
= apply(cmndlgsc
.wxMultiChoiceDialog_SetSelections
,(self
,) + _args
, _kwargs
)
205 def GetSelections(self
, *_args
, **_kwargs
):
206 val
= apply(cmndlgsc
.wxMultiChoiceDialog_GetSelections
,(self
,) + _args
, _kwargs
)
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
)
214 self
._setOORInfo
(self
)
219 class wxSingleChoiceDialogPtr(wxDialogPtr
):
220 def __init__(self
,this
):
223 def GetSelection(self
, *_args
, **_kwargs
):
224 val
= apply(cmndlgsc
.wxSingleChoiceDialog_GetSelection
,(self
,) + _args
, _kwargs
)
226 def GetStringSelection(self
, *_args
, **_kwargs
):
227 val
= apply(cmndlgsc
.wxSingleChoiceDialog_GetStringSelection
,(self
,) + _args
, _kwargs
)
229 def SetSelection(self
, *_args
, **_kwargs
):
230 val
= apply(cmndlgsc
.wxSingleChoiceDialog_SetSelection
,(self
,) + _args
, _kwargs
)
232 def ShowModal(self
, *_args
, **_kwargs
):
233 val
= apply(cmndlgsc
.wxSingleChoiceDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
241 self
._setOORInfo
(self
)
246 class wxTextEntryDialogPtr(wxDialogPtr
):
247 def __init__(self
,this
):
250 def GetValue(self
, *_args
, **_kwargs
):
251 val
= apply(cmndlgsc
.wxTextEntryDialog_GetValue
,(self
,) + _args
, _kwargs
)
253 def SetValue(self
, *_args
, **_kwargs
):
254 val
= apply(cmndlgsc
.wxTextEntryDialog_SetValue
,(self
,) + _args
, _kwargs
)
256 def ShowModal(self
, *_args
, **_kwargs
):
257 val
= apply(cmndlgsc
.wxTextEntryDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
265 self
._setOORInfo
(self
)
270 class wxFontDataPtr(wxObjectPtr
):
271 def __init__(self
,this
):
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
)
280 def GetAllowSymbols(self
, *_args
, **_kwargs
):
281 val
= apply(cmndlgsc
.wxFontData_GetAllowSymbols
,(self
,) + _args
, _kwargs
)
283 def GetColour(self
, *_args
, **_kwargs
):
284 val
= apply(cmndlgsc
.wxFontData_GetColour
,(self
,) + _args
, _kwargs
)
285 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
287 def GetChosenFont(self
, *_args
, **_kwargs
):
288 val
= apply(cmndlgsc
.wxFontData_GetChosenFont
,(self
,) + _args
, _kwargs
)
289 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
291 def GetEnableEffects(self
, *_args
, **_kwargs
):
292 val
= apply(cmndlgsc
.wxFontData_GetEnableEffects
,(self
,) + _args
, _kwargs
)
294 def GetInitialFont(self
, *_args
, **_kwargs
):
295 val
= apply(cmndlgsc
.wxFontData_GetInitialFont
,(self
,) + _args
, _kwargs
)
296 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
298 def GetShowHelp(self
, *_args
, **_kwargs
):
299 val
= apply(cmndlgsc
.wxFontData_GetShowHelp
,(self
,) + _args
, _kwargs
)
301 def SetAllowSymbols(self
, *_args
, **_kwargs
):
302 val
= apply(cmndlgsc
.wxFontData_SetAllowSymbols
,(self
,) + _args
, _kwargs
)
304 def SetChosenFont(self
, *_args
, **_kwargs
):
305 val
= apply(cmndlgsc
.wxFontData_SetChosenFont
,(self
,) + _args
, _kwargs
)
307 def SetColour(self
, *_args
, **_kwargs
):
308 val
= apply(cmndlgsc
.wxFontData_SetColour
,(self
,) + _args
, _kwargs
)
310 def SetInitialFont(self
, *_args
, **_kwargs
):
311 val
= apply(cmndlgsc
.wxFontData_SetInitialFont
,(self
,) + _args
, _kwargs
)
313 def SetRange(self
, *_args
, **_kwargs
):
314 val
= apply(cmndlgsc
.wxFontData_SetRange
,(self
,) + _args
, _kwargs
)
316 def SetShowHelp(self
, *_args
, **_kwargs
):
317 val
= apply(cmndlgsc
.wxFontData_SetShowHelp
,(self
,) + _args
, _kwargs
)
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
)
329 class wxFontDialogPtr(wxDialogPtr
):
330 def __init__(self
,this
):
333 def GetFontData(self
, *_args
, **_kwargs
):
334 val
= apply(cmndlgsc
.wxFontDialog_GetFontData
,(self
,) + _args
, _kwargs
)
335 if val
: val
= wxFontDataPtr(val
)
337 def ShowModal(self
, *_args
, **_kwargs
):
338 val
= apply(cmndlgsc
.wxFontDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
346 self
._setOORInfo
(self
)
351 class wxMessageDialogPtr(wxDialogPtr
):
352 def __init__(self
,this
):
355 def ShowModal(self
, *_args
, **_kwargs
):
356 val
= apply(cmndlgsc
.wxMessageDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
364 self
._setOORInfo
(self
)
369 class wxProgressDialogPtr(wxFramePtr
):
370 def __init__(self
,this
):
373 def Update(self
, *_args
, **_kwargs
):
374 val
= apply(cmndlgsc
.wxProgressDialog_Update
,(self
,) + _args
, _kwargs
)
376 def Resume(self
, *_args
, **_kwargs
):
377 val
= apply(cmndlgsc
.wxProgressDialog_Resume
,(self
,) + _args
, _kwargs
)
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
)
385 self
._setOORInfo
(self
)
390 class wxFindDialogEventPtr(wxCommandEventPtr
):
391 def __init__(self
,this
):
394 def GetFlags(self
, *_args
, **_kwargs
):
395 val
= apply(cmndlgsc
.wxFindDialogEvent_GetFlags
,(self
,) + _args
, _kwargs
)
397 def GetFindString(self
, *_args
, **_kwargs
):
398 val
= apply(cmndlgsc
.wxFindDialogEvent_GetFindString
,(self
,) + _args
, _kwargs
)
400 def GetReplaceString(self
, *_args
, **_kwargs
):
401 val
= apply(cmndlgsc
.wxFindDialogEvent_GetReplaceString
,(self
,) + _args
, _kwargs
)
403 def GetDialog(self
, *_args
, **_kwargs
):
404 val
= apply(cmndlgsc
.wxFindDialogEvent_GetDialog
,(self
,) + _args
, _kwargs
)
405 if val
: val
= wxFindReplaceDialogPtr(val
)
407 def SetFlags(self
, *_args
, **_kwargs
):
408 val
= apply(cmndlgsc
.wxFindDialogEvent_SetFlags
,(self
,) + _args
, _kwargs
)
410 def SetFindString(self
, *_args
, **_kwargs
):
411 val
= apply(cmndlgsc
.wxFindDialogEvent_SetFindString
,(self
,) + _args
, _kwargs
)
413 def SetReplaceString(self
, *_args
, **_kwargs
):
414 val
= apply(cmndlgsc
.wxFindDialogEvent_SetReplaceString
,(self
,) + _args
, _kwargs
)
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
)
426 class wxFindReplaceDataPtr(wxObjectPtr
):
427 def __init__(self
,this
):
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
)
436 def GetReplaceString(self
, *_args
, **_kwargs
):
437 val
= apply(cmndlgsc
.wxFindReplaceData_GetReplaceString
,(self
,) + _args
, _kwargs
)
439 def GetFlags(self
, *_args
, **_kwargs
):
440 val
= apply(cmndlgsc
.wxFindReplaceData_GetFlags
,(self
,) + _args
, _kwargs
)
442 def SetFlags(self
, *_args
, **_kwargs
):
443 val
= apply(cmndlgsc
.wxFindReplaceData_SetFlags
,(self
,) + _args
, _kwargs
)
445 def SetFindString(self
, *_args
, **_kwargs
):
446 val
= apply(cmndlgsc
.wxFindReplaceData_SetFindString
,(self
,) + _args
, _kwargs
)
448 def SetReplaceString(self
, *_args
, **_kwargs
):
449 val
= apply(cmndlgsc
.wxFindReplaceData_SetReplaceString
,(self
,) + _args
, _kwargs
)
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
)
461 class wxFindReplaceDialogPtr(wxDialogPtr
):
462 def __init__(self
,this
):
465 def Create(self
, *_args
, **_kwargs
):
466 val
= apply(cmndlgsc
.wxFindReplaceDialog_Create
,(self
,) + _args
, _kwargs
)
468 def GetData(self
, *_args
, **_kwargs
):
469 val
= apply(cmndlgsc
.wxFindReplaceDialog_GetData
,(self
,) + _args
, _kwargs
)
470 if val
: val
= wxFindReplaceDataPtr(val
)
472 def SetData(self
, *_args
, **_kwargs
):
473 val
= apply(cmndlgsc
.wxFindReplaceDialog_SetData
,(self
,) + _args
, _kwargs
)
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
)
481 self
._setOORInfo
(self
)
485 def wxPreFindReplaceDialog(*_args
,**_kwargs
):
486 val
= wxFindReplaceDialogPtr(apply(cmndlgsc
.new_wxPreFindReplaceDialog
,_args
,_kwargs
))
494 #-------------- FUNCTION WRAPPERS ------------------
498 #-------------- VARIABLE WRAPPERS ------------------
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