Skip to content

Commit 5963078

Browse files
sequece tool added
1 parent 50e40fc commit 5963078

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

pica/main.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ class PICALauncherApp:
180180
"Quick Calc": resource_path("utils/Quick_Calc_GUI.py"),
181181
"Time Utility": resource_path("utils/Time_Utility_GUI.py"),
182182
"Unit Converter": resource_path("utils/Unit_Converter_GUI.py"),
183+
"Sequence Visualizer": resource_path("utils/SeqVisualizer_GUI.py"),
183184
}
184185

185186
def __init__(self, root):
@@ -760,14 +761,14 @@ def open_tools_popup(self):
760761
"""Creates a small pop-up window for additional tools."""
761762
tools_win = Toplevel(self.root)
762763
tools_win.title("Tools")
763-
tools_win.geometry("300x320")
764+
tools_win.geometry("300x360")
764765
tools_win.configure(bg=self.CLR_BG_DARK)
765766
tools_win.transient(self.root)
766767
tools_win.grab_set()
767768

768769
# Center the pop-up over the main window
769770
x = self.root.winfo_x() + (self.root.winfo_width() // 2) - 150
770-
y = self.root.winfo_y() + (self.root.winfo_height() // 2) - 160
771+
y = self.root.winfo_y() + (self.root.winfo_height() // 2) - 180
771772
tools_win.geometry(f"+{x}+{y}")
772773

773774
ttk.Label(
@@ -811,6 +812,14 @@ def open_tools_popup(self):
811812
command=lambda: self.launch_script(self.SCRIPT_PATHS["Unit Converter"])
812813
).pack(fill='x', padx=30, pady=5)
813814

815+
# Launch Sequence Visualizer Button
816+
ttk.Button(
817+
tools_win,
818+
text="Sequence Visualizer",
819+
style='App.TButton',
820+
command=lambda: self.launch_script(self.SCRIPT_PATHS["Sequence Visualizer"])
821+
).pack(fill='x', padx=30, pady=5)
822+
814823
# Close Button
815824
ttk.Button(
816825
tools_win,

0 commit comments

Comments
 (0)