wx.FileDirPickerEvent¶
This event class is used for the events generated by wx.FilePickerCtrl and by wx.DirPickerCtrl.
Events Emitted by this Class¶
Handlers bound for the following event types will receive a wx.FileDirPickerEvent parameter.
EVT_FILEPICKER_CHANGED: Generated whenever the selected file changes.
EVT_DIRPICKER_CHANGED: Generated whenever the selected directory changes.
See also
Class Hierarchy¶
Methods Summary¶
Retrieve the absolute path of the file/directory the user has just selected. |
|
Set the absolute path of the file/directory associated with the event. |
Properties Summary¶
Class API¶
- class wx.FileDirPickerEvent(CommandEvent)¶
Possible constructors:
FileDirPickerEvent() -> None FileDirPickerEvent(type, generator, id, path) -> None
This event class is used for the events generated by FilePickerCtrl and by DirPickerCtrl.
Methods¶
- __init__(self, *args, **kw)¶
-
__init__ (self)
- Return type:
None
__init__ (self, type, generator, id, path)
The constructor is not normally used by the user code.
- Parameters:
type (wx.EventType)
generator (wx.Object)
id (int)
path (string)
- Return type:
None
- GetPath(self)¶
Retrieve the absolute path of the file/directory the user has just selected.
- Return type:
str
- SetPath(self, path)¶
Set the absolute path of the file/directory associated with the event.
- Parameters:
path (string)
- Return type:
None
Properties¶