mirror of
https://github.com/Cian-H/Melter.git
synced 2026-05-25 08:52:04 +01:00
30 lines
788 B
Plaintext
30 lines
788 B
Plaintext
# file_chooser_popup.kv
|
|
#:kivy 2.0
|
|
#:import path os.path.expanduser
|
|
|
|
<FileChooserPopup>:
|
|
title: "Choose a data folder"
|
|
size_hint: .9, .9
|
|
auto_dismiss: False
|
|
|
|
BoxLayout:
|
|
orientation: "vertical"
|
|
FileChooser:
|
|
id: filechooser
|
|
path: path("~")
|
|
dirselect: True
|
|
FileChooserIconLayout
|
|
|
|
BoxLayout:
|
|
size_hint: (1, 0.1)
|
|
pos_hint: {'center_x': .5, 'center_y': .5}
|
|
spacing: 20
|
|
Button:
|
|
text: "Cancel"
|
|
on_release: root.dismiss()
|
|
Button:
|
|
text: "Load"
|
|
on_release: root.load(filechooser.selection)
|
|
id: ldbtn
|
|
disabled: True if filechooser.selection==[] else False
|