A file control event holds information about events associated with FileCtrl objects.
Handlers bound for the following event types will receive a FileCtrlEvent parameter.
__init__ | Constructor. |
GetDirectory | Returns the current directory. |
GetFile | Returns the file selected (assuming it is only one file). |
GetFiles | Returns the files selected. |
GetFilterIndex | Returns the current file filter index. |
SetDirectory | Sets the directory of this event. |
SetFiles | Sets the files changed by this event. |
SetFilterIndex | Sets the filter index changed by this event. |
Directory | See GetDirectory and SetDirectory |
File | See GetFile |
Files | See GetFiles and SetFiles |
FilterIndex | See GetFilterIndex and SetFilterIndex |
A file control event holds information about events associated with FileCtrl objects.
Possible constructors:
FileCtrlEvent(type, evtObject, id)
Constructor.
Parameters: |
|
---|
Returns the current directory.
In case of a ``EVT_FILECTRL_FOLDERCHANGED``, this method returns the new directory.
Return type: | string |
---|
Returns the file selected (assuming it is only one file).
Return type: | string |
---|
Returns the files selected.
In case of a ``EVT_FILECTRL_SELECTIONCHANGED``, this method returns the files selected after the event.
Return type: | list of strings |
---|
Returns the current file filter index.
For a ``EVT_FILECTRL_FILTERCHANGED`` event, this method returns the new file filter index.
Return type: | int |
---|
New in version 2.9.1.
Sets the directory of this event.
Parameters: | directory (string) – |
---|
Sets the files changed by this event.
Parameters: | files (list of strings) – |
---|
Sets the filter index changed by this event.
Parameters: | index (int) – |
---|
New in version 2.9.1.
See GetDirectory and SetDirectory
See GetFilterIndex and SetFilterIndex