- 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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user