open_file_dialog return object instead path string #1483
Labels
bug
A crash or error in behavior.
documentation
An improvement required in the project's documentation.
Describe the bug
If I want to have a path with the function
open_file_dialog
orselect_folder_dialog
it returns to me, the object.To Reproduce
When I call
open_file_dialog(),
in my case, it return something like<toga_gtk.dialogs.OpenFileDialog object at 0x7f5e96c373c8>
Do I made something wrong ?
I make the function call like that :
self.filename = self.main_window.open_file_dialog("title", initial_directory=None, multiselect=True, file_types=['png', 'jpg']) print(self.filename)
Expected behavior
If I read the doc, normally the function
open_file_dialog(title, initial_directory=None, file_types=None, multiselect=False, on_result=None)
returns a string, in this case, the path. And this is what I need.Environment:
It's little bit strange, maybe I made something wrong, but normally I easy the retrieve a path and I don't understand why it doesn't return me the same thing that the documentation.
The text was updated successfully, but these errors were encountered: