aboutsummaryrefslogtreecommitdiffstats
path: root/tagit/dialogues/path_picker.kv
blob: 1837b802ff3ca5254054d1eab58c8f58a6b72bc0 (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
#:import join os.path.join
#:import pwd os.path.curdir

<PathPicker>:
    path: ''
    title: 'Please select a file or directory'
    filters: []
    dirselect: True

    DialogueContentTitle:
        title: root.title
        size_hint_y: 0.8

        FileChooserListView:
            text_size: self.width - dp(16), None
            halign: 'center'
            dirselect: root.dirselect
            path: pwd
            filters: root.filters

            on_selection: root.path = join(self.path, self.selection[0]); buttons.ok_enabled = True

        DialogueButtons_Two:
            id: buttons
            ok_enabled: False

## EOF ##