From c581bbfdc006974fe4ff72f1d65e0b82ec0e4352 Mon Sep 17 00:00:00 2001 From: "Dr.-Ing. Amilcar do Carmo Lucas" Date: Mon, 22 Apr 2024 20:22:51 +0200 Subject: [PATCH] IMPROVEMENT: rename frontend_tkinter files to better describe what they do --- ARCHITECTURE.md | 5 +++++ MethodicConfigurator/ardupilot_methodic_configurator.py | 4 ++-- ...ponent_editor.py => frontend_tkinter_component_editor.py} | 0 ...ntend_tkinter.py => frontend_tkinter_parameter_editor.py} | 0 unittests/frontend_tkinter_unittest.py | 4 ++-- 5 files changed, 9 insertions(+), 4 deletions(-) rename MethodicConfigurator/{component_editor.py => frontend_tkinter_component_editor.py} (100%) mode change 100755 => 100644 rename MethodicConfigurator/{frontend_tkinter.py => frontend_tkinter_parameter_editor.py} (100%) diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md index 1b4566c..26d6a1d 100644 --- a/ARCHITECTURE.md +++ b/ARCHITECTURE.md @@ -80,6 +80,11 @@ It consists of four main components: 2. the local filesystem backend, does file I/O on the local file system. Operates mostly on parameter files and metadata/documentation files 3. the flight controller backend, does communication with the flight controller 4. the tkinter frontend, this is the GUI the user interacts with + 1. `frontend_tkinter_base.py` + 2. `frontend_tkinter_connection_selection.py` + 3. `frontend_tkinter_directory_selection.py` + 4. `frontend_tkinter_component_editor.py` + 5. `frontend_tkinter_parameter_editor.py` ![Software Architecture diagram](images/Architecture.drawio.png) diff --git a/MethodicConfigurator/ardupilot_methodic_configurator.py b/MethodicConfigurator/ardupilot_methodic_configurator.py index 5aded5a..a82b4ac 100755 --- a/MethodicConfigurator/ardupilot_methodic_configurator.py +++ b/MethodicConfigurator/ardupilot_methodic_configurator.py @@ -25,9 +25,9 @@ from frontend_tkinter_directory_selection import VehicleDirectorySelectionWindow -from component_editor import JsonEditorApp +from frontend_tkinter_component_editor import JsonEditorApp -from frontend_tkinter import ParameterEditorWindow +from frontend_tkinter_parameter_editor import ParameterEditorWindow from version import VERSION diff --git a/MethodicConfigurator/component_editor.py b/MethodicConfigurator/frontend_tkinter_component_editor.py old mode 100755 new mode 100644 similarity index 100% rename from MethodicConfigurator/component_editor.py rename to MethodicConfigurator/frontend_tkinter_component_editor.py diff --git a/MethodicConfigurator/frontend_tkinter.py b/MethodicConfigurator/frontend_tkinter_parameter_editor.py similarity index 100% rename from MethodicConfigurator/frontend_tkinter.py rename to MethodicConfigurator/frontend_tkinter_parameter_editor.py diff --git a/unittests/frontend_tkinter_unittest.py b/unittests/frontend_tkinter_unittest.py index cfb97fb..9bb58cb 100644 --- a/unittests/frontend_tkinter_unittest.py +++ b/unittests/frontend_tkinter_unittest.py @@ -13,8 +13,8 @@ import unittest from unittest.mock import patch, MagicMock import tkinter as tk -from frontend_tkinter import show_error_message -from frontend_tkinter import show_tooltip +from frontend_tkinter_parameter_editor import show_error_message +from frontend_tkinter_parameter_editor import show_tooltip class TestShowErrorMessage(unittest.TestCase):