From d97f1a5c5fc046150082117dc00b5d4f2d51ff7b Mon Sep 17 00:00:00 2001 From: "Dr.-Ing. Amilcar do Carmo Lucas" Date: Thu, 25 Apr 2024 01:02:00 +0200 Subject: [PATCH] FEATURE: Ask the users to read the documentation before editing the parameters --- .../frontend_tkinter_parameter_editor.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/MethodicConfigurator/frontend_tkinter_parameter_editor.py b/MethodicConfigurator/frontend_tkinter_parameter_editor.py index 1481257..166d404 100644 --- a/MethodicConfigurator/frontend_tkinter_parameter_editor.py +++ b/MethodicConfigurator/frontend_tkinter_parameter_editor.py @@ -497,6 +497,10 @@ def __init__(self, current_file: str, flight_controller: FlightController, self.__create_parameter_area_widgets() + self.root.after(50, self.read_flight_controller_parameters(reread=False)) # 50 milliseconds + self.root.after(50, self.__please_read_the_docs()) + self.root.mainloop() + def __create_conf_widgets(self, version: str): config_frame = tk.Frame(self.root) config_frame.pack(side=tk.TOP, fill="x", expand=False, pady=(4, 0)) # Pack the frame at the top of the window @@ -574,8 +578,11 @@ def __create_parameter_area_widgets(self): show_tooltip(skip_button, "Skip to the next intermediate parameter file without writing any changes to the flight " "controller\nIf changes have been made to the current file it will ask if you want to save them") - self.root.after(50, self.read_flight_controller_parameters(reread=False)) # 50 milliseconds - self.root.mainloop() + @staticmethod + def __please_read_the_docs(): + messagebox.showinfo("Welcome to the ArduPilot Methodic Configurator", + "Please read ALL the documentation on top of the parameter table" + " before editing the parameters and the reason they changed") def __do_tempcal_imu(self, selected_file:str): tempcal_imu_result_param_filename, tempcal_imu_result_param_fullpath = \