コード例 #1
0
 def save_file(_):
     dialog = Gempyre.Dialog()
     filter = [("Foo", ["*.foo", "*.bar"])]
     result = dialog.save_file_dialog("hop", str(Path.home()), filter)
     if result:
         output.set_html(result)
コード例 #2
0
 def open_files(_):
     result = Gempyre.Dialog().open_files_dialog("hop", str(Path.home()))
     if result:
         output.set_html(str(result))
コード例 #3
0
 def open_dir(_):
     dialog = Gempyre.Dialog()
     result = dialog.open_dir_dialog("hop", str(Path.home()))
     if result:
         output.set_html(result)
コード例 #4
0
 def open_file(_):
     dlg = Gempyre.Dialog()
     result = dlg.open_file_dialog("hop", str(Path.home()),
                                   [("Text", ["*.txt", "*.text"])])
     if result:
         output.set_html(result)