File: wconfig.py

package info (click to toggle)
wxglade 1%3A1.1.1%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,592 kB
  • sloc: python: 30,644; javascript: 740; makefile: 169; cpp: 99; perl: 90; lisp: 62; xml: 61; sh: 3
file content (45 lines) | stat: -rw-r--r-- 1,508 bytes parent folder | download | duplicates (3)
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
"""\
wxComboBox widget configuration

@copyright: 2014-2016 Carsten Grohmann
@license: MIT (see LICENSE.txt) - THIS PROGRAM COMES WITH NO WARRANTY
"""

config = {
    'wxklass': 'wxComboBox',
    'style_defs': {
        'wxCB_SIMPLE': {
            'desc': _('Creates a combobox with a permanently displayed list. Windows only.'),
        },
        'wxCB_DROPDOWN': {
            'desc': _('Creates a combobox with a drop-down list.'),
        },
        'wxCB_READONLY': {
            'desc': _('Same as wxCB_DROPDOWN but only the strings specified '
                      'as the combobox choices can be selected, it is '
                      'impossible to select (even from a program) a string '
                      'which is not in the choices list.'),
        },
        'wxCB_SORT': {
            'desc': _('Sorts the entries in the list alphabetically.'),
        },
        'wxTE_PROCESS_ENTER': {
            'desc': _('The control will generate the event '
                      'wxEVT_COMMAND_TEXT_ENTER (otherwise pressing Enter '
                      'key is either processed internally by the control '
                      'or used for navigation between dialog controls). '
                      'Windows only.'),
        },
    },
    'default_style': 'wxCB_DROPDOWN',
    'style_list': ['wxCB_SIMPLE', 'wxCB_DROPDOWN', 'wxCB_READONLY', 'wxCB_SORT', 'wxTE_PROCESS_ENTER'],
    'events': {
        'EVT_COMBOBOX': {},
        'EVT_TEXT': {},
        'EVT_TEXT_ENTER': {},
    },
}