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
, delfunc
=cmndlgsc
.delete_wxColourData
):
50 def GetChooseFull(self
, *_args
, **_kwargs
):
51 val
= apply(cmndlgsc
.wxColourData_GetChooseFull
,(self
,) + _args
, _kwargs
)
53 def GetColour(self
, *_args
, **_kwargs
):
54 val
= apply(cmndlgsc
.wxColourData_GetColour
,(self
,) + _args
, _kwargs
)
55 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
57 def GetCustomColour(self
, *_args
, **_kwargs
):
58 val
= apply(cmndlgsc
.wxColourData_GetCustomColour
,(self
,) + _args
, _kwargs
)
59 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
61 def SetChooseFull(self
, *_args
, **_kwargs
):
62 val
= apply(cmndlgsc
.wxColourData_SetChooseFull
,(self
,) + _args
, _kwargs
)
64 def SetColour(self
, *_args
, **_kwargs
):
65 val
= apply(cmndlgsc
.wxColourData_SetColour
,(self
,) + _args
, _kwargs
)
67 def SetCustomColour(self
, *_args
, **_kwargs
):
68 val
= apply(cmndlgsc
.wxColourData_SetCustomColour
,(self
,) + _args
, _kwargs
)
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
)
80 class wxColourDialogPtr(wxDialogPtr
):
81 def __init__(self
,this
):
84 def GetColourData(self
, *_args
, **_kwargs
):
85 val
= apply(cmndlgsc
.wxColourDialog_GetColourData
,(self
,) + _args
, _kwargs
)
86 if val
: val
= wxColourDataPtr(val
)
88 def ShowModal(self
, *_args
, **_kwargs
):
89 val
= apply(cmndlgsc
.wxColourDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
97 self
._setOORInfo
(self
)
102 class wxDirDialogPtr(wxDialogPtr
):
103 def __init__(self
,this
):
106 def GetPath(self
, *_args
, **_kwargs
):
107 val
= apply(cmndlgsc
.wxDirDialog_GetPath
,(self
,) + _args
, _kwargs
)
109 def GetMessage(self
, *_args
, **_kwargs
):
110 val
= apply(cmndlgsc
.wxDirDialog_GetMessage
,(self
,) + _args
, _kwargs
)
112 def GetStyle(self
, *_args
, **_kwargs
):
113 val
= apply(cmndlgsc
.wxDirDialog_GetStyle
,(self
,) + _args
, _kwargs
)
115 def SetMessage(self
, *_args
, **_kwargs
):
116 val
= apply(cmndlgsc
.wxDirDialog_SetMessage
,(self
,) + _args
, _kwargs
)
118 def SetPath(self
, *_args
, **_kwargs
):
119 val
= apply(cmndlgsc
.wxDirDialog_SetPath
,(self
,) + _args
, _kwargs
)
121 def ShowModal(self
, *_args
, **_kwargs
):
122 val
= apply(cmndlgsc
.wxDirDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
130 self
._setOORInfo
(self
)
135 class wxFileDialogPtr(wxDialogPtr
):
136 def __init__(self
,this
):
139 def GetDirectory(self
, *_args
, **_kwargs
):
140 val
= apply(cmndlgsc
.wxFileDialog_GetDirectory
,(self
,) + _args
, _kwargs
)
142 def GetFilename(self
, *_args
, **_kwargs
):
143 val
= apply(cmndlgsc
.wxFileDialog_GetFilename
,(self
,) + _args
, _kwargs
)
145 def GetFilterIndex(self
, *_args
, **_kwargs
):
146 val
= apply(cmndlgsc
.wxFileDialog_GetFilterIndex
,(self
,) + _args
, _kwargs
)
148 def GetMessage(self
, *_args
, **_kwargs
):
149 val
= apply(cmndlgsc
.wxFileDialog_GetMessage
,(self
,) + _args
, _kwargs
)
151 def GetPath(self
, *_args
, **_kwargs
):
152 val
= apply(cmndlgsc
.wxFileDialog_GetPath
,(self
,) + _args
, _kwargs
)
154 def GetStyle(self
, *_args
, **_kwargs
):
155 val
= apply(cmndlgsc
.wxFileDialog_GetStyle
,(self
,) + _args
, _kwargs
)
157 def GetWildcard(self
, *_args
, **_kwargs
):
158 val
= apply(cmndlgsc
.wxFileDialog_GetWildcard
,(self
,) + _args
, _kwargs
)
160 def SetDirectory(self
, *_args
, **_kwargs
):
161 val
= apply(cmndlgsc
.wxFileDialog_SetDirectory
,(self
,) + _args
, _kwargs
)
163 def SetFilename(self
, *_args
, **_kwargs
):
164 val
= apply(cmndlgsc
.wxFileDialog_SetFilename
,(self
,) + _args
, _kwargs
)
166 def SetFilterIndex(self
, *_args
, **_kwargs
):
167 val
= apply(cmndlgsc
.wxFileDialog_SetFilterIndex
,(self
,) + _args
, _kwargs
)
169 def SetMessage(self
, *_args
, **_kwargs
):
170 val
= apply(cmndlgsc
.wxFileDialog_SetMessage
,(self
,) + _args
, _kwargs
)
172 def SetPath(self
, *_args
, **_kwargs
):
173 val
= apply(cmndlgsc
.wxFileDialog_SetPath
,(self
,) + _args
, _kwargs
)
175 def SetStyle(self
, *_args
, **_kwargs
):
176 val
= apply(cmndlgsc
.wxFileDialog_SetStyle
,(self
,) + _args
, _kwargs
)
178 def SetWildcard(self
, *_args
, **_kwargs
):
179 val
= apply(cmndlgsc
.wxFileDialog_SetWildcard
,(self
,) + _args
, _kwargs
)
181 def ShowModal(self
, *_args
, **_kwargs
):
182 val
= apply(cmndlgsc
.wxFileDialog_ShowModal
,(self
,) + _args
, _kwargs
)
184 def GetFilenames(self
, *_args
, **_kwargs
):
185 val
= apply(cmndlgsc
.wxFileDialog_GetFilenames
,(self
,) + _args
, _kwargs
)
187 def GetPaths(self
, *_args
, **_kwargs
):
188 val
= apply(cmndlgsc
.wxFileDialog_GetPaths
,(self
,) + _args
, _kwargs
)
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
)
196 self
._setOORInfo
(self
)
201 class wxMultiChoiceDialogPtr(wxDialogPtr
):
202 def __init__(self
,this
):
205 def SetSelections(self
, *_args
, **_kwargs
):
206 val
= apply(cmndlgsc
.wxMultiChoiceDialog_SetSelections
,(self
,) + _args
, _kwargs
)
208 def GetSelections(self
, *_args
, **_kwargs
):
209 val
= apply(cmndlgsc
.wxMultiChoiceDialog_GetSelections
,(self
,) + _args
, _kwargs
)
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
)
217 self
._setOORInfo
(self
)
222 class wxSingleChoiceDialogPtr(wxDialogPtr
):
223 def __init__(self
,this
):
226 def GetSelection(self
, *_args
, **_kwargs
):
227 val
= apply(cmndlgsc
.wxSingleChoiceDialog_GetSelection
,(self
,) + _args
, _kwargs
)
229 def GetStringSelection(self
, *_args
, **_kwargs
):
230 val
= apply(cmndlgsc
.wxSingleChoiceDialog_GetStringSelection
,(self
,) + _args
, _kwargs
)
232 def SetSelection(self
, *_args
, **_kwargs
):
233 val
= apply(cmndlgsc
.wxSingleChoiceDialog_SetSelection
,(self
,) + _args
, _kwargs
)
235 def ShowModal(self
, *_args
, **_kwargs
):
236 val
= apply(cmndlgsc
.wxSingleChoiceDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
244 self
._setOORInfo
(self
)
249 class wxTextEntryDialogPtr(wxDialogPtr
):
250 def __init__(self
,this
):
253 def GetValue(self
, *_args
, **_kwargs
):
254 val
= apply(cmndlgsc
.wxTextEntryDialog_GetValue
,(self
,) + _args
, _kwargs
)
256 def SetValue(self
, *_args
, **_kwargs
):
257 val
= apply(cmndlgsc
.wxTextEntryDialog_SetValue
,(self
,) + _args
, _kwargs
)
259 def ShowModal(self
, *_args
, **_kwargs
):
260 val
= apply(cmndlgsc
.wxTextEntryDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
268 self
._setOORInfo
(self
)
273 class wxFontDataPtr(wxObjectPtr
):
274 def __init__(self
,this
):
277 def __del__(self
, delfunc
=cmndlgsc
.delete_wxFontData
):
278 if self
.thisown
== 1:
283 def EnableEffects(self
, *_args
, **_kwargs
):
284 val
= apply(cmndlgsc
.wxFontData_EnableEffects
,(self
,) + _args
, _kwargs
)
286 def GetAllowSymbols(self
, *_args
, **_kwargs
):
287 val
= apply(cmndlgsc
.wxFontData_GetAllowSymbols
,(self
,) + _args
, _kwargs
)
289 def GetColour(self
, *_args
, **_kwargs
):
290 val
= apply(cmndlgsc
.wxFontData_GetColour
,(self
,) + _args
, _kwargs
)
291 if val
: val
= wxColourPtr(val
) ; val
.thisown
= 1
293 def GetChosenFont(self
, *_args
, **_kwargs
):
294 val
= apply(cmndlgsc
.wxFontData_GetChosenFont
,(self
,) + _args
, _kwargs
)
295 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
297 def GetEnableEffects(self
, *_args
, **_kwargs
):
298 val
= apply(cmndlgsc
.wxFontData_GetEnableEffects
,(self
,) + _args
, _kwargs
)
300 def GetInitialFont(self
, *_args
, **_kwargs
):
301 val
= apply(cmndlgsc
.wxFontData_GetInitialFont
,(self
,) + _args
, _kwargs
)
302 if val
: val
= wxFontPtr(val
) ; val
.thisown
= 1
304 def GetShowHelp(self
, *_args
, **_kwargs
):
305 val
= apply(cmndlgsc
.wxFontData_GetShowHelp
,(self
,) + _args
, _kwargs
)
307 def SetAllowSymbols(self
, *_args
, **_kwargs
):
308 val
= apply(cmndlgsc
.wxFontData_SetAllowSymbols
,(self
,) + _args
, _kwargs
)
310 def SetChosenFont(self
, *_args
, **_kwargs
):
311 val
= apply(cmndlgsc
.wxFontData_SetChosenFont
,(self
,) + _args
, _kwargs
)
313 def SetColour(self
, *_args
, **_kwargs
):
314 val
= apply(cmndlgsc
.wxFontData_SetColour
,(self
,) + _args
, _kwargs
)
316 def SetInitialFont(self
, *_args
, **_kwargs
):
317 val
= apply(cmndlgsc
.wxFontData_SetInitialFont
,(self
,) + _args
, _kwargs
)
319 def SetRange(self
, *_args
, **_kwargs
):
320 val
= apply(cmndlgsc
.wxFontData_SetRange
,(self
,) + _args
, _kwargs
)
322 def SetShowHelp(self
, *_args
, **_kwargs
):
323 val
= apply(cmndlgsc
.wxFontData_SetShowHelp
,(self
,) + _args
, _kwargs
)
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
)
335 class wxFontDialogPtr(wxDialogPtr
):
336 def __init__(self
,this
):
339 def GetFontData(self
, *_args
, **_kwargs
):
340 val
= apply(cmndlgsc
.wxFontDialog_GetFontData
,(self
,) + _args
, _kwargs
)
341 if val
: val
= wxFontDataPtr(val
)
343 def ShowModal(self
, *_args
, **_kwargs
):
344 val
= apply(cmndlgsc
.wxFontDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
352 self
._setOORInfo
(self
)
357 class wxMessageDialogPtr(wxDialogPtr
):
358 def __init__(self
,this
):
361 def ShowModal(self
, *_args
, **_kwargs
):
362 val
= apply(cmndlgsc
.wxMessageDialog_ShowModal
,(self
,) + _args
, _kwargs
)
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
)
370 self
._setOORInfo
(self
)
375 class wxProgressDialogPtr(wxFramePtr
):
376 def __init__(self
,this
):
379 def Update(self
, *_args
, **_kwargs
):
380 val
= apply(cmndlgsc
.wxProgressDialog_Update
,(self
,) + _args
, _kwargs
)
382 def Resume(self
, *_args
, **_kwargs
):
383 val
= apply(cmndlgsc
.wxProgressDialog_Resume
,(self
,) + _args
, _kwargs
)
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
)
391 self
._setOORInfo
(self
)
396 class wxFindDialogEventPtr(wxCommandEventPtr
):
397 def __init__(self
,this
):
400 def GetFlags(self
, *_args
, **_kwargs
):
401 val
= apply(cmndlgsc
.wxFindDialogEvent_GetFlags
,(self
,) + _args
, _kwargs
)
403 def GetFindString(self
, *_args
, **_kwargs
):
404 val
= apply(cmndlgsc
.wxFindDialogEvent_GetFindString
,(self
,) + _args
, _kwargs
)
406 def GetReplaceString(self
, *_args
, **_kwargs
):
407 val
= apply(cmndlgsc
.wxFindDialogEvent_GetReplaceString
,(self
,) + _args
, _kwargs
)
409 def GetDialog(self
, *_args
, **_kwargs
):
410 val
= apply(cmndlgsc
.wxFindDialogEvent_GetDialog
,(self
,) + _args
, _kwargs
)
411 if val
: val
= wxFindReplaceDialogPtr(val
)
413 def SetFlags(self
, *_args
, **_kwargs
):
414 val
= apply(cmndlgsc
.wxFindDialogEvent_SetFlags
,(self
,) + _args
, _kwargs
)
416 def SetFindString(self
, *_args
, **_kwargs
):
417 val
= apply(cmndlgsc
.wxFindDialogEvent_SetFindString
,(self
,) + _args
, _kwargs
)
419 def SetReplaceString(self
, *_args
, **_kwargs
):
420 val
= apply(cmndlgsc
.wxFindDialogEvent_SetReplaceString
,(self
,) + _args
, _kwargs
)
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
)
432 class wxFindReplaceDataPtr(wxObjectPtr
):
433 def __init__(self
,this
):
436 def __del__(self
, delfunc
=cmndlgsc
.delete_wxFindReplaceData
):
437 if self
.thisown
== 1:
442 def GetFindString(self
, *_args
, **_kwargs
):
443 val
= apply(cmndlgsc
.wxFindReplaceData_GetFindString
,(self
,) + _args
, _kwargs
)
445 def GetReplaceString(self
, *_args
, **_kwargs
):
446 val
= apply(cmndlgsc
.wxFindReplaceData_GetReplaceString
,(self
,) + _args
, _kwargs
)
448 def GetFlags(self
, *_args
, **_kwargs
):
449 val
= apply(cmndlgsc
.wxFindReplaceData_GetFlags
,(self
,) + _args
, _kwargs
)
451 def SetFlags(self
, *_args
, **_kwargs
):
452 val
= apply(cmndlgsc
.wxFindReplaceData_SetFlags
,(self
,) + _args
, _kwargs
)
454 def SetFindString(self
, *_args
, **_kwargs
):
455 val
= apply(cmndlgsc
.wxFindReplaceData_SetFindString
,(self
,) + _args
, _kwargs
)
457 def SetReplaceString(self
, *_args
, **_kwargs
):
458 val
= apply(cmndlgsc
.wxFindReplaceData_SetReplaceString
,(self
,) + _args
, _kwargs
)
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
)
470 class wxFindReplaceDialogPtr(wxDialogPtr
):
471 def __init__(self
,this
):
474 def Create(self
, *_args
, **_kwargs
):
475 val
= apply(cmndlgsc
.wxFindReplaceDialog_Create
,(self
,) + _args
, _kwargs
)
477 def GetData(self
, *_args
, **_kwargs
):
478 val
= apply(cmndlgsc
.wxFindReplaceDialog_GetData
,(self
,) + _args
, _kwargs
)
479 if val
: val
= wxFindReplaceDataPtr(val
)
481 def SetData(self
, *_args
, **_kwargs
):
482 val
= apply(cmndlgsc
.wxFindReplaceDialog_SetData
,(self
,) + _args
, _kwargs
)
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
)
490 self
._setOORInfo
(self
)
494 def wxPreFindReplaceDialog(*_args
,**_kwargs
):
495 val
= wxFindReplaceDialogPtr(apply(cmndlgsc
.new_wxPreFindReplaceDialog
,_args
,_kwargs
))
503 #-------------- FUNCTION WRAPPERS ------------------
507 #-------------- VARIABLE WRAPPERS ------------------
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