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 (47 lines) | stat: -rw-r--r-- 1,444 bytes parent folder | download | duplicates (4)
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
"""\
wxCheckBox widget configuration

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

config = {
    'wxklass': 'wxCheckBox',
    'style_defs': {
        'wxCHK_2STATE': {
            'desc': _('Create a 2-state checkbox. This is the default.'),
            'exclude': 'wxCHK_3STATE',
        },
        'wxCHK_3STATE': {
            'desc': _('Create a 3-state checkbox. Not implemented in wxOS2 '
                      'and wxGTK built against GTK+ 1.2.'),
            'exclude': 'wxCHK_2STATE',
        },
        'wxCHK_ALLOW_3RD_STATE_FOR_USER': {
            'desc': _("By default a user can't set a 3-state checkbox to the "
                      "third state. It can only be done from code. Using "
                      "this flags allows the user to set the checkbox to "
                      "the third state by clicking."),
            'require': 'wxCHK_3STATE',
        },
        'wxALIGN_RIGHT': {
            'desc': _('Makes the text appear on the left of the checkbox.')
        }
    },
    'style_list': ['wxCHK_2STATE', 'wxCHK_3STATE',
                   'wxCHK_ALLOW_3RD_STATE_FOR_USER', 'wxALIGN_RIGHT'],

    # mapping for selected values to checkbox states (wxCheckBoxState)
    'number2state': {
        0: 'wxCHK_UNCHECKED',
        1: 'wxCHK_CHECKED',
        2: 'wxCHK_UNDETERMINED',
    },
    'events': {
        'EVT_CHECKBOX': {},
    },
}