- 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

@@ -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: