commit 75
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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()
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user