-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Sorry again for the inconvenience,
I try to use the FileselectorButton with the is_save option but when I call the callback_file_chosen_add I do not get the value of the entry box!?
I used the test_fileselector_button.py example with the modifications:
def save_cb(fsb, selected):
print(selected)
class FsButton(Fileselector, FileselectorButton):
def __init__(self, *args, **kwargs):
FileselectorButton.__init__(self, *args, **kwargs)
def fileselector_button_clicked(obj, item=None):
win = StandardWindow("fileselector", "File selector button test",
autodel=True, size=(240, 350))
if not obj:
win.callback_delete_request_add(lambda x: elementary.exit())
vbox = Box(win, size_hint_weight=EXPAND_BOTH)
win.resize_object_add(vbox)
vbox.show()
fse = FsButton(win, text="Select a file", inwin_mode=False,
size_hint_align=FILL_BOTH,
size_hint_weight=EXPAND_BOTH)
fse.callback_file_chosen_add(save_cb)
#fse.callback_done_add(save_cb)
#fse.callback_activated_add(save_cb)
vbox.pack_end(fse)
fse.show()
[...]
win.show()
I also tried to use Fileselector callbacks but nothing works!?
Metadata
Metadata
Assignees
Labels
No labels