Skip to content

Commit bcc6289

Browse files
committed
feat(GUI): add clickable link to tuning guide in step 11 dialog
When transitioning from Step 11 (initial ATC PID tuning) to Step 12, if "Automatically open documentation links..." is disabled, the popup message previously mentioned the tuning guide but did not provide any clickable links, which was confusing to users. This change adds a blue, underlined "Open Tuning Guide" label that opens the relevant ArduPilot tuning instructions page in the default web browser Closes #951 Signed-off-by: neo-0007 <hrishikeshgohain123@gmail.com>
1 parent 1c25b7e commit bcc6289

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

ardupilot_methodic_configurator/frontend_tkinter_parameter_editor.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,17 @@ def __should_copy_fc_values_to_file(self, selected_file: str) -> None: # pylint
541541
message_label = tk.Label(dialog, text=msg, justify=tk.LEFT, padx=20, pady=10)
542542
message_label.pack(padx=10, pady=10)
543543

544+
# Clickable link to tuning guide
545+
link_label = tk.Label(
546+
dialog,
547+
text=_("Open Tuning Guide relevant Section"),
548+
fg="blue",
549+
cursor="hand2",
550+
font=("TkDefaultFont", 9, "underline"),
551+
)
552+
link_label.pack(pady=(0, 10))
553+
link_label.bind("<Button-1>", lambda _e: self.configuration_manager.open_documentation_in_browser(selected_file))
554+
544555
# Result variable
545556
result: list[Optional[Literal[True, False]]] = [None]
546557

0 commit comments

Comments
 (0)