.. include:: headings.inc .. _FileDirPickerEvent: ========================================================================================================================================== |phoenix_title| **FileDirPickerEvent** ========================================================================================================================================== This event class is used for the events generated by :ref:`FilePickerCtrl` and by :ref:`DirPickerCtrl`. .. _FileDirPickerEvent-events: |events| Events Emitted by this Class ===================================== Handlers bound for the following event types will receive a :ref:`FileDirPickerEvent` parameter. - EVT_FILEPICKER_CHANGED: Generated whenever the selected file changes. - EVT_DIRPICKER_CHANGED: Generated whenever the selected directory changes. .. seealso:: :ref:`FilePickerCtrl`, :ref:`DirPickerCtrl` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **FileDirPickerEvent** .. raw:: html

Inheritance diagram of FileDirPickerEvent

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~FileDirPickerEvent.__init__` :meth:`~FileDirPickerEvent.GetPath` Retrieve the absolute path of the file/directory the user has just selected. :meth:`~FileDirPickerEvent.SetPath` Set the absolute path of the file/directory associated with the event. ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~FileDirPickerEvent.Path` See :meth:`~FileDirPickerEvent.GetPath` and :meth:`~FileDirPickerEvent.SetPath` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: FileDirPickerEvent(CommandEvent) This event class is used for the events generated by FilePickerCtrl and by DirPickerCtrl. **Possible constructors**:: FileDirPickerEvent() FileDirPickerEvent(type, generator, id, path) .. method:: __init__(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **__init__** `(self)` **~~~** **__init__** `(self, type, generator, id, path)` The constructor is not normally used by the user code. :param `type`: :type `type`: EventType :param `generator`: :type `generator`: Object :param `id`: :type `id`: int :param `path`: :type `path`: string **~~~** .. method:: GetPath(self) Retrieve the absolute path of the file/directory the user has just selected. :rtype: `string` .. method:: SetPath(self, path) Set the absolute path of the file/directory associated with the event. :param `path`: :type `path`: string .. attribute:: Path See :meth:`~FileDirPickerEvent.GetPath` and :meth:`~FileDirPickerEvent.SetPath`