From 23a4e04fbb0dd6f58487c41ed66c90bc8b36eec1 Mon Sep 17 00:00:00 2001 From: "Dr.-Ing. Amilcar do Carmo Lucas" Date: Thu, 25 Apr 2024 00:29:11 +0200 Subject: [PATCH] IMPROVEMENT: Rename Component Editor window class to be consistent --- MethodicConfigurator/ardupilot_methodic_configurator.py | 4 ++-- MethodicConfigurator/frontend_tkinter_component_editor.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MethodicConfigurator/ardupilot_methodic_configurator.py b/MethodicConfigurator/ardupilot_methodic_configurator.py index 03e4a0f..83dcab3 100755 --- a/MethodicConfigurator/ardupilot_methodic_configurator.py +++ b/MethodicConfigurator/ardupilot_methodic_configurator.py @@ -25,7 +25,7 @@ from frontend_tkinter_directory_selection import VehicleDirectorySelectionWindow -from frontend_tkinter_component_editor import JsonEditorApp +from frontend_tkinter_component_editor import ComponentEditorWindow from frontend_tkinter_parameter_editor import ParameterEditorWindow @@ -129,7 +129,7 @@ def main(): start_file = local_filesystem.get_start_file(args.n) - component_editor_window = JsonEditorApp(VERSION, local_filesystem) + component_editor_window = ComponentEditorWindow(VERSION, local_filesystem) component_editor_window.root.mainloop() # Call the GUI function with the starting intermediate parameter file diff --git a/MethodicConfigurator/frontend_tkinter_component_editor.py b/MethodicConfigurator/frontend_tkinter_component_editor.py index 8b075ad..a3d0ea7 100644 --- a/MethodicConfigurator/frontend_tkinter_component_editor.py +++ b/MethodicConfigurator/frontend_tkinter_component_editor.py @@ -65,7 +65,7 @@ def argument_parser(): # pylint: enable=duplicate-code -class JsonEditorApp(BaseWindow): +class ComponentEditorWindow(BaseWindow): """ A class for editing JSON files in the ArduPilot methodic configurator. @@ -193,5 +193,5 @@ def save_data(self): logging_basicConfig(level=logging_getLevelName(args.loglevel), format='%(asctime)s - %(levelname)s - %(message)s') filesystem = LocalFilesystem(args.vehicle_dir, args.vehicle_type) - app = JsonEditorApp(VERSION, filesystem) + app = ComponentEditorWindow(VERSION, filesystem) app.root.mainloop()