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¶
Methods Summary¶
Return the index of the selected item, possibly |
|
Set the selection to the item with the given index. |
Properties Summary¶
See |
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
andSetSelection