Phoenix Logo

phoenix_title wx.lib.langlistctrl.LanguageListCtrl

wx.ListCtrl derived control that displays languages and flags


class_hierarchy Class Hierarchy

Inheritance diagram for class LanguageListCtrl:


super_classes Known Superclasses

wx.ListCtrl


method_summary 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.

property_summary Properties Summary

Language See GetLanguage and SetLanguage

api 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 and SetLanguage