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.append(self.current_dir)
|
||||||
self.history_pos = len(self.history) - 1
|
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.populate_files(item_to_select=file_to_select)
|
||||||
self.update_nav_buttons()
|
self.update_nav_buttons()
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class GlotzMol(tk.Tk):
|
|||||||
dialog = CustomFileDialog(self,
|
dialog = CustomFileDialog(self,
|
||||||
initial_dir=os.path.expanduser("~"),
|
initial_dir=os.path.expanduser("~"),
|
||||||
filetypes=[("All Files", "*.*")
|
filetypes=[("All Files", "*.*")
|
||||||
], dialog_mode="save")
|
])
|
||||||
|
|
||||||
# This is the crucial part: wait for the dialog to be closed
|
# This is the crucial part: wait for the dialog to be closed
|
||||||
self.wait_window(dialog)
|
self.wait_window(dialog)
|
||||||
@@ -55,7 +55,7 @@ if __name__ == "__main__":
|
|||||||
style = ttk.Style(root)
|
style = ttk.Style(root)
|
||||||
root.tk.call('source', f"{theme_path}/water.tcl")
|
root.tk.call('source', f"{theme_path}/water.tcl")
|
||||||
try:
|
try:
|
||||||
root.tk.call('set_theme', 'light')
|
root.tk.call('set_theme', 'dark')
|
||||||
except tk.TclError:
|
except tk.TclError:
|
||||||
pass
|
pass
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
|||||||
Reference in New Issue
Block a user