commit 75

This commit is contained in:
2025-08-08 22:39:36 +02:00
parent 482eaae591
commit 9e495cc73c
4 changed files with 3 additions and 3 deletions

View File

@@ -1219,7 +1219,7 @@ class CustomFileDialog(tk.Toplevel):
self.history.append(self.current_dir)
self.history_pos = len(self.history) - 1
self.widget_manager.search_animation.hide() # Hide animation on navigation
self.widget_manager.search_animation.stop() # Stop animation and show static frame
self.populate_files(item_to_select=file_to_select)
self.update_nav_buttons()

View File

@@ -33,7 +33,7 @@ class GlotzMol(tk.Tk):
dialog = CustomFileDialog(self,
initial_dir=os.path.expanduser("~"),
filetypes=[("All Files", "*.*")
], dialog_mode="save")
])
# This is the crucial part: wait for the dialog to be closed
self.wait_window(dialog)
@@ -55,7 +55,7 @@ if __name__ == "__main__":
style = ttk.Style(root)
root.tk.call('source', f"{theme_path}/water.tcl")
try:
root.tk.call('set_theme', 'light')
root.tk.call('set_theme', 'dark')
except tk.TclError:
pass
root.mainloop()