wx.lib.langlistctrl.LanguageListCtrl¶wx.ListCtrl derived control that displays languages and flags
Methods Summary¶__init__ |
Default class constructor. |
GetLanguage |
Get the currently selected language in the control. |
SetLanguage |
Selects the given language ids item in the control. |
SetUpFilter |
Filters the languages displayed in the control. |
Class API¶LanguageListCtrl(wx.ListCtrl)¶wx.ListCtrl derived control that displays languages and flags
__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: |
|
|---|
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: |
|
|---|
Language¶See GetLanguage and SetLanguage