A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://wxpython.org/Phoenix/docs/html/wx.FileCtrlEvent.html below:

wx.FileCtrlEvent — wxPython Phoenix 4.2.4a1 documentation

wx.FileCtrlEvent¶

A file control event holds information about events associated with wx.FileCtrl objects.

Events Emitted by this Class¶

Handlers bound for the following event types will receive a wx.FileCtrlEvent parameter.

Class Hierarchy¶

Inheritance diagram for class

FileCtrlEvent

:

Methods Summary¶ Properties Summary¶ Class API¶
class wx.FileCtrlEvent(CommandEvent)¶

Possible constructors:

FileCtrlEvent(type, evtObject, id) -> None

A file control event holds information about events associated with FileCtrl objects.


Methods¶
__init__(self, type, evtObject, id)¶

Constructor.

Parameters:
  • type (wx.EventType)

  • evtObject (wx.Object)

  • id (int)

Return type:

None


GetDirectory(self)¶

Returns the current directory.

In case of a EVT_FILECTRL_FOLDERCHANGED, this method returns the new directory.

Return type:

str


GetFile(self)¶

Returns the file selected (assuming it is only one file).

Return type:

str


GetFiles(self)¶

Returns the files selected.

In case of a EVT_FILECTRL_SELECTIONCHANGED, this method returns the files selected after the event.

Return type:

List[str]


GetFilterIndex(self)¶

Returns the current file filter index.

For a EVT_FILECTRL_FILTERCHANGED event, this method returns the new file filter index.

Return type:

int

Added in version 2.9.1.


SetDirectory(self, directory)¶

Sets the directory of this event.

Parameters:

directory (string)

Return type:

None


SetFiles(self, files)¶

Sets the files changed by this event.

Parameters:

files (list of strings)

Return type:

None


SetFilterIndex(self, index)¶

Sets the filter index changed by this event.

Parameters:

index (int)

Return type:

None

Added in version 2.9.1.


Properties¶
Directory¶

See GetDirectory and SetDirectory


File¶

See GetFile


Files¶

See GetFiles and SetFiles


FilterIndex¶

See GetFilterIndex and SetFilterIndex


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4