diff --git a/MethodicConfigurator/ardupilot_methodic_configurator.py b/MethodicConfigurator/ardupilot_methodic_configurator.py index f5736b5..ce902be 100755 --- a/MethodicConfigurator/ardupilot_methodic_configurator.py +++ b/MethodicConfigurator/ardupilot_methodic_configurator.py @@ -17,24 +17,24 @@ from logging import error as logging_error from sys import exit as sys_exit -from MethodicConfigurator.backend_filesystem import LocalFilesystem -from MethodicConfigurator.backend_flightcontroller import FlightController +from backend_filesystem import LocalFilesystem +from backend_flightcontroller import FlightController -from MethodicConfigurator.frontend_tkinter_base import show_error_message +from frontend_tkinter_base import show_error_message -from MethodicConfigurator.frontend_tkinter_connection_selection import ConnectionSelectionWindow +from frontend_tkinter_connection_selection import ConnectionSelectionWindow -from MethodicConfigurator.frontend_tkinter_flightcontroller_info import FlightControllerInfoWindow +from frontend_tkinter_flightcontroller_info import FlightControllerInfoWindow -from MethodicConfigurator.frontend_tkinter_directory_selection import VehicleDirectorySelectionWindow +from frontend_tkinter_directory_selection import VehicleDirectorySelectionWindow -from MethodicConfigurator.frontend_tkinter_component_editor import ComponentEditorWindow +from frontend_tkinter_component_editor import ComponentEditorWindow -from MethodicConfigurator.frontend_tkinter_parameter_editor import ParameterEditorWindow +from frontend_tkinter_parameter_editor import ParameterEditorWindow -from MethodicConfigurator.common_arguments import add_common_arguments_and_parse +from common_arguments import add_common_arguments_and_parse -from MethodicConfigurator.version import VERSION +from version import VERSION def argument_parser(): diff --git a/MethodicConfigurator/backend_filesystem.py b/MethodicConfigurator/backend_filesystem.py index 99c0f56..1843ecd 100644 --- a/MethodicConfigurator/backend_filesystem.py +++ b/MethodicConfigurator/backend_filesystem.py @@ -30,16 +30,16 @@ from zipfile import ZipFile -from MethodicConfigurator.annotate_params import BASE_URL, PARAM_DEFINITION_XML_FILE, Par -from MethodicConfigurator.annotate_params import get_xml_data -from MethodicConfigurator.annotate_params import create_doc_dict -from MethodicConfigurator.annotate_params import format_columns -from MethodicConfigurator.annotate_params import split_into_lines -from MethodicConfigurator.annotate_params import update_parameter_documentation - -from MethodicConfigurator.backend_filesystem_vehicle_components import VehicleComponents -from MethodicConfigurator.backend_filesystem_configuration_steps import ConfigurationSteps -from MethodicConfigurator.backend_filesystem_program_settings import ProgramSettings +from annotate_params import BASE_URL, PARAM_DEFINITION_XML_FILE, Par +from annotate_params import get_xml_data +from annotate_params import create_doc_dict +from annotate_params import format_columns +from annotate_params import split_into_lines +from annotate_params import update_parameter_documentation + +from backend_filesystem_vehicle_components import VehicleComponents +from backend_filesystem_configuration_steps import ConfigurationSteps +from backend_filesystem_program_settings import ProgramSettings TOOLTIP_MAX_LENGTH = 105 diff --git a/MethodicConfigurator/backend_filesystem_configuration_steps.py b/MethodicConfigurator/backend_filesystem_configuration_steps.py index 5c32e08..76f98a2 100644 --- a/MethodicConfigurator/backend_filesystem_configuration_steps.py +++ b/MethodicConfigurator/backend_filesystem_configuration_steps.py @@ -21,7 +21,7 @@ from typing import Tuple -from MethodicConfigurator.annotate_params import Par +from annotate_params import Par class ConfigurationSteps: diff --git a/MethodicConfigurator/backend_filesystem_vehicle_components.py b/MethodicConfigurator/backend_filesystem_vehicle_components.py index bc9881e..e42754a 100644 --- a/MethodicConfigurator/backend_filesystem_vehicle_components.py +++ b/MethodicConfigurator/backend_filesystem_vehicle_components.py @@ -23,9 +23,9 @@ from json import dump as json_dump from json import JSONDecodeError -from MethodicConfigurator.backend_filesystem_program_settings import ProgramSettings +from backend_filesystem_program_settings import ProgramSettings -from MethodicConfigurator.middleware_template_overview import TemplateOverview +from middleware_template_overview import TemplateOverview class VehicleComponents: diff --git a/MethodicConfigurator/backend_flightcontroller.py b/MethodicConfigurator/backend_flightcontroller.py index 74be45b..3568ecb 100644 --- a/MethodicConfigurator/backend_flightcontroller.py +++ b/MethodicConfigurator/backend_flightcontroller.py @@ -25,9 +25,9 @@ from serial.serialutil import SerialException -from MethodicConfigurator.annotate_params import Par +from annotate_params import Par -from MethodicConfigurator.backend_flightcontroller_info import BackendFlightcontrollerInfo +from backend_flightcontroller_info import BackendFlightcontrollerInfo # adding all this allows pyinstaller to build a working windows executable # note that using --hidden-import does not work for these modules diff --git a/MethodicConfigurator/backend_mavftp.py b/MethodicConfigurator/backend_mavftp.py index c118e18..e717c55 100644 --- a/MethodicConfigurator/backend_mavftp.py +++ b/MethodicConfigurator/backend_mavftp.py @@ -33,11 +33,11 @@ from io import BytesIO as SIO # from param_ftp import ParamData -from MethodicConfigurator.param_ftp import ftp_param_decode +from param_ftp import ftp_param_decode -from MethodicConfigurator.common_arguments import add_common_arguments_and_parse +from common_arguments import add_common_arguments_and_parse -from MethodicConfigurator.backend_flightcontroller import FlightController +from backend_flightcontroller import FlightController # adding all this allows pyinstaller to build a working Windows executable # note that using --hidden-import does not work for these modules diff --git a/MethodicConfigurator/common_arguments.py b/MethodicConfigurator/common_arguments.py index 47b04a9..4e07bb9 100644 --- a/MethodicConfigurator/common_arguments.py +++ b/MethodicConfigurator/common_arguments.py @@ -8,7 +8,7 @@ SPDX-License-Identifier: GPL-3.0-or-later ''' -from MethodicConfigurator.version import VERSION +from version import VERSION def add_common_arguments_and_parse(parser): diff --git a/MethodicConfigurator/frontend_tkinter_base.py b/MethodicConfigurator/frontend_tkinter_base.py index 6be4301..67cb2dc 100644 --- a/MethodicConfigurator/frontend_tkinter_base.py +++ b/MethodicConfigurator/frontend_tkinter_base.py @@ -25,7 +25,7 @@ from PIL import Image from PIL import ImageTk -from MethodicConfigurator.backend_filesystem import LocalFilesystem +from backend_filesystem import LocalFilesystem def show_error_message(title: str, message: str): diff --git a/MethodicConfigurator/frontend_tkinter_component_editor.py b/MethodicConfigurator/frontend_tkinter_component_editor.py index d9edfff..7871426 100644 --- a/MethodicConfigurator/frontend_tkinter_component_editor.py +++ b/MethodicConfigurator/frontend_tkinter_component_editor.py @@ -18,18 +18,18 @@ import tkinter as tk from tkinter import ttk -from MethodicConfigurator.common_arguments import add_common_arguments_and_parse +from common_arguments import add_common_arguments_and_parse -from MethodicConfigurator.backend_filesystem import LocalFilesystem +from backend_filesystem import LocalFilesystem -from MethodicConfigurator.battery_cell_voltages import BatteryCell +from battery_cell_voltages import BatteryCell -from MethodicConfigurator.frontend_tkinter_component_editor_base import ComponentEditorWindowBase +from frontend_tkinter_component_editor_base import ComponentEditorWindowBase -#from MethodicConfigurator.frontend_tkinter_base import show_tooltip -from MethodicConfigurator.frontend_tkinter_base import show_error_message +#from frontend_tkinter_base import show_tooltip +from frontend_tkinter_base import show_error_message -from MethodicConfigurator.version import VERSION +from version import VERSION def argument_parser(): diff --git a/MethodicConfigurator/frontend_tkinter_component_editor_base.py b/MethodicConfigurator/frontend_tkinter_component_editor_base.py index 3b3b8a7..95fc939 100644 --- a/MethodicConfigurator/frontend_tkinter_component_editor_base.py +++ b/MethodicConfigurator/frontend_tkinter_component_editor_base.py @@ -18,16 +18,16 @@ import tkinter as tk from tkinter import ttk -from MethodicConfigurator.common_arguments import add_common_arguments_and_parse +from common_arguments import add_common_arguments_and_parse -from MethodicConfigurator.backend_filesystem import LocalFilesystem +from backend_filesystem import LocalFilesystem -from MethodicConfigurator.frontend_tkinter_base import show_tooltip -from MethodicConfigurator.frontend_tkinter_base import show_error_message -from MethodicConfigurator.frontend_tkinter_base import ScrollFrame -from MethodicConfigurator.frontend_tkinter_base import BaseWindow +from frontend_tkinter_base import show_tooltip +from frontend_tkinter_base import show_error_message +from frontend_tkinter_base import ScrollFrame +from frontend_tkinter_base import BaseWindow -from MethodicConfigurator.version import VERSION +from version import VERSION def argument_parser(): diff --git a/MethodicConfigurator/frontend_tkinter_connection_selection.py b/MethodicConfigurator/frontend_tkinter_connection_selection.py index 7761df3..bab0ae1 100644 --- a/MethodicConfigurator/frontend_tkinter_connection_selection.py +++ b/MethodicConfigurator/frontend_tkinter_connection_selection.py @@ -22,15 +22,15 @@ from tkinter import ttk from tkinter import simpledialog -from MethodicConfigurator.common_arguments import add_common_arguments_and_parse +from common_arguments import add_common_arguments_and_parse -from MethodicConfigurator.backend_flightcontroller import FlightController +from backend_flightcontroller import FlightController -from MethodicConfigurator.frontend_tkinter_base import show_no_connection_error -from MethodicConfigurator.frontend_tkinter_base import show_tooltip -from MethodicConfigurator.frontend_tkinter_base import update_combobox_width -from MethodicConfigurator.frontend_tkinter_base import ProgressWindow -from MethodicConfigurator.frontend_tkinter_base import BaseWindow +from frontend_tkinter_base import show_no_connection_error +from frontend_tkinter_base import show_tooltip +from frontend_tkinter_base import update_combobox_width +from frontend_tkinter_base import ProgressWindow +from frontend_tkinter_base import BaseWindow # https://dev.to/geraldew/python-tkinter-an-exercise-in-wrapping-the-combobox-ndb diff --git a/MethodicConfigurator/frontend_tkinter_directory_selection.py b/MethodicConfigurator/frontend_tkinter_directory_selection.py index b5b65d3..208c73d 100644 --- a/MethodicConfigurator/frontend_tkinter_directory_selection.py +++ b/MethodicConfigurator/frontend_tkinter_directory_selection.py @@ -26,18 +26,18 @@ from tkinter import ttk from tkinter import filedialog -from MethodicConfigurator.version import VERSION +from version import VERSION -from MethodicConfigurator.common_arguments import add_common_arguments_and_parse +from common_arguments import add_common_arguments_and_parse -from MethodicConfigurator.backend_filesystem import LocalFilesystem -from MethodicConfigurator.backend_filesystem_program_settings import ProgramSettings +from backend_filesystem import LocalFilesystem +from backend_filesystem_program_settings import ProgramSettings -from MethodicConfigurator.frontend_tkinter_base import show_no_param_files_error -from MethodicConfigurator.frontend_tkinter_base import show_tooltip -from MethodicConfigurator.frontend_tkinter_base import BaseWindow +from frontend_tkinter_base import show_no_param_files_error +from frontend_tkinter_base import show_tooltip +from frontend_tkinter_base import BaseWindow -from MethodicConfigurator.frontend_tkinter_template_overview import TemplateOverviewWindow +from frontend_tkinter_template_overview import TemplateOverviewWindow class DirectorySelectionWidgets(): diff --git a/MethodicConfigurator/frontend_tkinter_flightcontroller_info.py b/MethodicConfigurator/frontend_tkinter_flightcontroller_info.py index 97b618d..17d11c1 100644 --- a/MethodicConfigurator/frontend_tkinter_flightcontroller_info.py +++ b/MethodicConfigurator/frontend_tkinter_flightcontroller_info.py @@ -14,14 +14,14 @@ import tkinter as tk from tkinter import ttk -from MethodicConfigurator.backend_flightcontroller import FlightController -#from MethodicConfigurator.backend_flightcontroller_info import BackendFlightcontrollerInfo +from backend_flightcontroller import FlightController +#from backend_flightcontroller_info import BackendFlightcontrollerInfo -#from MethodicConfigurator.frontend_tkinter_base import show_tooltip -from MethodicConfigurator.frontend_tkinter_base import ProgressWindow -from MethodicConfigurator.frontend_tkinter_base import BaseWindow +#from frontend_tkinter_base import show_tooltip +from frontend_tkinter_base import ProgressWindow +from frontend_tkinter_base import BaseWindow -from MethodicConfigurator.version import VERSION +from version import VERSION class FlightControllerInfoWindow(BaseWindow): diff --git a/MethodicConfigurator/frontend_tkinter_parameter_editor.py b/MethodicConfigurator/frontend_tkinter_parameter_editor.py index 7ae570a..fc8b129 100644 --- a/MethodicConfigurator/frontend_tkinter_parameter_editor.py +++ b/MethodicConfigurator/frontend_tkinter_parameter_editor.py @@ -24,22 +24,22 @@ from webbrowser import open as webbrowser_open # to open the blog post documentation -from MethodicConfigurator.backend_filesystem import LocalFilesystem -from MethodicConfigurator.backend_filesystem import is_within_tolerance +from backend_filesystem import LocalFilesystem +from backend_filesystem import is_within_tolerance -from MethodicConfigurator.backend_flightcontroller import FlightController +from backend_flightcontroller import FlightController -from MethodicConfigurator.frontend_tkinter_base import show_tooltip -from MethodicConfigurator.frontend_tkinter_base import AutoResizeCombobox -from MethodicConfigurator.frontend_tkinter_base import ProgressWindow -from MethodicConfigurator.frontend_tkinter_base import BaseWindow -from MethodicConfigurator.frontend_tkinter_base import RichText +from frontend_tkinter_base import show_tooltip +from frontend_tkinter_base import AutoResizeCombobox +from frontend_tkinter_base import ProgressWindow +from frontend_tkinter_base import BaseWindow +from frontend_tkinter_base import RichText -from MethodicConfigurator.frontend_tkinter_directory_selection import VehicleDirectorySelectionWidgets +from frontend_tkinter_directory_selection import VehicleDirectorySelectionWidgets -from MethodicConfigurator.frontend_tkinter_parameter_editor_table import ParameterEditorTable +from frontend_tkinter_parameter_editor_table import ParameterEditorTable -from MethodicConfigurator.tempcal_imu import IMUfit +from tempcal_imu import IMUfit class DocumentationFrame: # pylint: disable=too-few-public-methods diff --git a/MethodicConfigurator/frontend_tkinter_parameter_editor_table.py b/MethodicConfigurator/frontend_tkinter_parameter_editor_table.py index cc6782d..8643f34 100644 --- a/MethodicConfigurator/frontend_tkinter_parameter_editor_table.py +++ b/MethodicConfigurator/frontend_tkinter_parameter_editor_table.py @@ -21,16 +21,16 @@ #from logging import error as logging_error from logging import critical as logging_critical -#from MethodicConfigurator.backend_filesystem import LocalFilesystem -from MethodicConfigurator.backend_filesystem import is_within_tolerance +#from backend_filesystem import LocalFilesystem +from backend_filesystem import is_within_tolerance -#from MethodicConfigurator.backend_flightcontroller import FlightController +#from backend_flightcontroller import FlightController -from MethodicConfigurator.frontend_tkinter_base import show_tooltip -#from MethodicConfigurator.frontend_tkinter_base import AutoResizeCombobox -from MethodicConfigurator.frontend_tkinter_base import ScrollFrame +from frontend_tkinter_base import show_tooltip +#from frontend_tkinter_base import AutoResizeCombobox +from frontend_tkinter_base import ScrollFrame -from MethodicConfigurator.annotate_params import Par +from annotate_params import Par class ParameterEditorTable(ScrollFrame): # pylint: disable=too-many-ancestors diff --git a/MethodicConfigurator/frontend_tkinter_template_overview.py b/MethodicConfigurator/frontend_tkinter_template_overview.py index 97ee3b6..1d69b8a 100644 --- a/MethodicConfigurator/frontend_tkinter_template_overview.py +++ b/MethodicConfigurator/frontend_tkinter_template_overview.py @@ -15,16 +15,16 @@ import tkinter as tk from tkinter import ttk -from MethodicConfigurator.middleware_template_overview import TemplateOverview +from middleware_template_overview import TemplateOverview -from MethodicConfigurator.backend_filesystem_program_settings import ProgramSettings -from MethodicConfigurator.backend_filesystem_vehicle_components import VehicleComponents +from backend_filesystem_program_settings import ProgramSettings +from backend_filesystem_vehicle_components import VehicleComponents -from MethodicConfigurator.common_arguments import add_common_arguments_and_parse +from common_arguments import add_common_arguments_and_parse -from MethodicConfigurator.frontend_tkinter_base import BaseWindow +from frontend_tkinter_base import BaseWindow -from MethodicConfigurator.version import VERSION +from version import VERSION class TemplateOverviewWindow(BaseWindow): """