aboutsummaryrefslogtreecommitdiffstats
path: root/tagit/actions/action.kv
blob: 807dd1838e60270fe982daf67538dbe9b01d6aaa (plain)
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

<Action>:
    # internas
    orientation: 'horizontal'

    # responsiveness
    # *touch_trigger* is enabled automatically if an image or text is shown.
    # If that is undesired, *touch_trigger* has to be disabled **after** the
    # declaration of *show*.
    key_trigger: True
    touch_trigger: False

    # size
    # By default the width expands as necessary. To get a fixed width,
    # set the width manually or via size_hint_x and set *autowidth* to False.
    # If something is shown, *height* is automatically set to *default_height*
    # unless specified otherwise in by the caller.
    default_height: 30
    size: 0, 0
    size_hint: None, None
    autowidth: True

    # behaviour
    # The default is that no buttons are shown and touch triggers are disabled.
    # NOTE: Callers need to declare show **last** to ensure that all other
    # properties are set. The only exception is *touch_trigger* which has
    # to be disabled **after** show.
    show: []

 ## EOF ##