- major refactoring: started to move the methods connected to the Edit menu to their own class to clean up the App mega class

This commit is contained in:
Marius Stanciu
2024-03-28 14:49:05 +02:00
parent d583bb8cf2
commit e7cd73fde1
17 changed files with 766 additions and 726 deletions

View File

@@ -10,7 +10,7 @@ from appTool import AppTool
from appGUI.GUIElements import VerticalScrollArea, FCLabel, FCButton, FCFrame, GLay, FCEntry, FCCheckBox
from appGUI.VisPyVisuals import ShapeCollection
from camlib import AppRTreeStorage
from appEditors.AppGeoEditor import DrawToolShape
from appEditors.appGeoEditor import DrawToolShape
import math
import logging

View File

@@ -28,7 +28,7 @@ import builtins
from appObjects.AppObjectTemplate import ObjectDeleted
from appGUI.VisPyVisuals import *
from appGUI.PlotCanvasLegacy import ShapeCollectionLegacy
from appEditors.AppTextEditor import AppTextEditor
from appEditors.appTextEditor import AppTextEditor
from camlib import CNCjob

View File

@@ -26,7 +26,7 @@ import builtins
from appCommon.Common import LoudDict
from camlib import distance
from appEditors.AppTextEditor import AppTextEditor
from appEditors.appTextEditor import AppTextEditor
from io import StringIO
@@ -223,7 +223,7 @@ class SolderPaste(AppTool):
# either originally it was a string or not, xy_end will be made string
dias_option = self.app.options["tools_solderpaste_tools"]
dias_option = re.sub('[()\[\]]', '', str(dias_option)) if dias_option else None
dias_option = re.sub(r'[()\[\]]', '', str(dias_option)) if dias_option else None
try:
dias = [float(eval(dia)) for dia in dias_option.split(",") if dia != '']
except Exception as err: