commit seven
This commit is contained in:
@@ -29,16 +29,14 @@ class GlotzMol(tk.Tk):
|
||||
container.columnconfigure(0, weight=1)
|
||||
|
||||
def open_custom_dialog(self):
|
||||
# Initial directory can be anywhere, let's test with /backup
|
||||
initial_directory = "/backup" if os.path.exists(
|
||||
"/backup") else os.path.expanduser("~")
|
||||
|
||||
dialog = CustomFileDialog(self,
|
||||
initial_dir=initial_directory,
|
||||
filetypes=[("Audio-Dateien", "*.mp3 *.wav"),
|
||||
initial_dir=os.path.expanduser("~"),
|
||||
filetypes=[("Alle Dateien", "*.*"),
|
||||
("Audio-Dateien", "*.mp3 *.wav"),
|
||||
("Video-Dateien", "*.mkv *.mp4"),
|
||||
("ISO-Images", "*.iso"),
|
||||
("Alle Dateien", "*.*")])
|
||||
])
|
||||
|
||||
# This is the crucial part: wait for the dialog to be closed
|
||||
self.wait_window(dialog)
|
||||
|
||||
Reference in New Issue
Block a user