phoenix_title wx.FileDialogChoice¶

Represents a custom read-only combobox inside wx.FileDialog.

Objects of this class can only be created by wx.FileDialogCustomize.AddChoice .

It is possible to bind to wxEVT_CHOICE events on this object, which will be generated when the selection in the combobox changes.

See wx.FileDialogCustomControl for more information.

Added in version 4.1/wxWidgets-3.1.7.


class_hierarchy Class Hierarchy¶

Inheritance diagram for class FileDialogChoice:

method_summary Methods Summary¶

GetSelection

Return the index of the selected item, possibly wx.NOT_FOUND.

SetSelection

Set the selection to the item with the given index.


property_summary Properties Summary¶

Selection

See GetSelection and SetSelection


api Class API¶

class wx.FileDialogChoice(FileDialogCustomControl)¶

Represents a custom read-only combobox inside FileDialog.


Methods¶

GetSelection(self)¶

Return the index of the selected item, possibly wx.NOT_FOUND.

Return type:

int



SetSelection(self, n)¶

Set the selection to the item with the given index.

Using NOT_FOUND for n is not supported, once a selection is made it cannot be undone.

Parameters:

n (int)

Return type:

None


Properties¶

Selection¶

See GetSelection and SetSelection