Hi,
Currently a user is experiencing the following issue with software I have written using kivy.
<SaveDialog>: | |
text_input: text_input | |
filechooser: filechooser | |
BoxLayout: | |
size: root.size | |
pos: root.pos | |
orientation: "vertical" | |
BoxLayout: | |
size_hint_y: None | |
height: '35dp' | |
ToggleButton: | |
text: "Icon" | |
state: "down" | |
group: "filechooser" | |
on_release: filechooser.view_mode = 'icon' | |
ToggleButton: | |
text: "List" | |
group: "filechooser" | |
on_release: filechooser.view_mode = 'list' | |
FileChooser: | |
id: filechooser | |
path: "~" | |
on_selection: text_input.text = self.selection and self.selection[0] or "" | |
FileChooserIconLayout | |
FileChooserListLayout | |
TextInput: | |
id: text_input | |
size_hint_y: None | |
height: '24dp' | |
multiline: False | |
BoxLayout: | |
size_hint_y: None | |
height: '35dp' | |
Button: | |
text: "Cancel" | |
on_release: root.cancel( ) | |
Button: | |
text: "Save" | |
on_release: root.save( filechooser.path, text_input.text ) |
def show_dialog( ): | |
content = SaveDialog( save = self.save, cancel = self.dismiss_popup ) | |
content.filechooser.path = os.path.expanduser( "~" ) | |
self._popup = Popup( title = "Save File", content = content, size_hint = ( 0.9, 0.9 ) ) | |
self._popup.open( ) |