wx.lib.langlistctrl.LanguageListCtrl¶
wx.ListCtrl
derived control that displays languages and flags
Class Hierarchy¶
Known Superclasses¶
Methods Summary¶
Default class constructor. |
|
Get the currently selected language in the control. |
|
Selects the given language ids item in the control. |
|
Filters the languages displayed in the control. |
Properties Summary¶
See GetLanguage and SetLanguage |
Class API¶
- class LanguageListCtrl(wx.ListCtrl)¶
wx.ListCtrl
derived control that displays languages and flags
Methods¶
- __init__(self, parent, id=wx.ID_ANY, pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.LC_REPORT | wx.LC_NO_HEADER | wx.LC_SINGLE_SEL, filter=LC_AVAILABLE, only=(), select=None, name='languagelistctrl')¶
Default class constructor.
- Parameters:
parent (wx.Window) – Parent window. Must not be
None
.id (int) – Window identifier. The value
ID_ANY
indicates a default value.pos (wx.Point) – Window position. If
DefaultPosition
is specified then a default position is chosen.size (wx.Size) – Window size. If
DefaultSize
is specified then the window is sized appropriately.style (long) – Window style. See wx.ListCtrl.
filter – Filter the list of languages (LC_AVAILABLE, LC_ALL or LC_ONLY)
only – a tuple of language ids
select – a ‘wx.LANGUAGE_*’ id to be selected
- GetLanguage(self)¶
Get the currently selected language in the control.
- Returns:
The currently selected language
- SetLanguage(self, lang)¶
Selects the given language ids item in the control.
- Parameters:
lang – a ‘wx.LANGUAGE_*’ id
- SetUpFilter(self, filter=LC_AVAILABLE, only=())¶
Filters the languages displayed in the control.
- Parameters:
filter – Filter the list of languages (LC_AVAILABLE, LC_ALL or LC_ONLY)
only – a tuple of language ids
Properties¶
- Language¶
See
GetLanguage
andSetLanguage