aboutsummaryrefslogtreecommitdiffstats
path: root/tagit/dialogues/stoken.py
blob: 6e5427a5d3b30a275513e66c34e95dd98f41eb7c (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
31
32
33
34
35
36
37
38
39
40
"""Search token editor

Part of the tagit module.
A copy of the license is provided with the project.
Author: Matthias Baumgartner, 2022

"""
# kivy imports
from kivy.lang import Builder
import kivy.properties as kp

# inner-module imports
from .simple_input import SimpleInput

# exports
__all__ = ('TokenEdit', )


## code ##

# Load kv
Builder.load_string('''
#:import AutoTextInput tagit.dialogues

<TokenEdit>:
    text: ''
    ok_on_enter: True
    cancel_on_defocus: True
''')

# classes
class TokenEdit(SimpleInput):
    """Search token editor
    """
    # TODO: Currently this is no different than SimpleInput.
    # It should be extend to specify the type and getting help
    # with editing ranges and alternative selection.
    pass

## EOF ##