commit seven

This commit is contained in:
2025-07-26 18:34:40 +02:00
parent 1dd22ef0f8
commit d7c4c0088b
3 changed files with 92 additions and 156 deletions

View File

@@ -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)