wx.lib.langlistctrl¶ListCtrl and functions to display languages and the flags of their countries
Functions Summary¶BuildLanguageCountryMapping |
Builds a mapping of language ids to LANG_COUNTRY codes. |
CreateLanguagesResourceLists |
Create a language resource list |
GetLanguageFlag |
Create a language resource list |
GetWxIdentifierForLanguage |
Get the wx identifier for a language. |
Classes Summary¶LanguageListCtrl |
wx.ListCtrl derived control that displays languages and flags |
BuildLanguageCountryMapping()¶Builds a mapping of language ids to LANG_COUNTRY codes.
| Returns: | the mapping as a {langID: countryCode} |
|---|
CreateLanguagesResourceLists(filter=LC_AVAILABLE, only=())¶Create a language resource list
| Parameters: |
|
|---|---|
| Returns: | a tuple of (bitmaps, language descriptions, language ids) |
GetLanguageFlag(lang)¶Create a language resource list
| Parameters: |
|
|---|---|
| Returns: | a tuple of (bitmaps, language descriptions, language ids) |
GetWxIdentifierForLanguage(lang)¶Get the wx identifier for a language.
| Returns: | The language id as a string |
|---|