File: wx.lib.langlistctrl.txt

package info (click to toggle)
wxpython4.0 4.2.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 232,540 kB
  • sloc: cpp: 958,937; python: 233,059; ansic: 150,441; makefile: 51,662; sh: 8,687; perl: 1,563; javascript: 584; php: 326; xml: 200
file content (99 lines) | stat: -rw-r--r-- 3,212 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2020 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc

.. module:: wx.lib.langlistctrl

.. currentmodule:: wx.lib.langlistctrl

.. highlight:: python



.. _wx.lib.langlistctrl:

==========================================================================================================================================
|phoenix_title|  **wx.lib.langlistctrl**
==========================================================================================================================================

ListCtrl and functions to display languages and the flags of their countries


|function_summary| Functions Summary
====================================

================================================================================ ================================================================================
:func:`~wx.lib.langlistctrl.BuildLanguageCountryMapping`                         Builds a mapping of language ids to LANG_COUNTRY codes.
:func:`~wx.lib.langlistctrl.CreateLanguagesResourceLists`                        Create a language resource list
:func:`~wx.lib.langlistctrl.GetLanguageFlag`                                     Create a language resource list
:func:`~wx.lib.langlistctrl.GetWxIdentifierForLanguage`                          Get the wx identifier for a language.
================================================================================ ================================================================================


|


|class_summary| Classes Summary
===============================

================================================================================ ================================================================================
:ref:`~wx.lib.langlistctrl.LanguageListCtrl`                                     :class:`wx.ListCtrl` derived control that displays languages and flags
================================================================================ ================================================================================


|


.. toctree::
   :maxdepth: 1
   :hidden:

   wx.lib.langlistctrl.LanguageListCtrl





Functions
------------

.. function:: BuildLanguageCountryMapping()

   Builds a mapping of language ids to LANG_COUNTRY codes.
   
   :returns: the mapping as a {langID: countryCode}


.. function:: CreateLanguagesResourceLists(filter=LC_AVAILABLE, only=())

   Create a language resource list
   
   :param `filter`: Filter the list of languages (LC_AVAILABLE, LC_ALL or LC_ONLY)
   :param `only`: a tuple of language ids
   
   :returns: a tuple of (bitmaps, language descriptions, language ids)


.. function:: GetLanguageFlag(lang)

   Create a language resource list
   
   :param `filter`: Filter the list of languages (LC_AVAILABLE, LC_ALL or LC_ONLY)
   :param `only`: a tuple of language ids
   
   :returns: a tuple of (bitmaps, language descriptions, language ids)


.. function:: GetWxIdentifierForLanguage(lang)

   Get the wx identifier for a language.
   
   :returns: The language id as a string