- refactoring names for some classes

This commit is contained in:
Marius Stanciu
2022-03-24 18:35:44 +02:00
committed by Marius
parent cd42c40198
commit eec366ce7f
59 changed files with 4196 additions and 4193 deletions

View File

@@ -1,6 +1,6 @@
import sys
import re
import app_Main
import appMain
import abc
import collections
from PyQt6 import QtCore
@@ -9,7 +9,7 @@ from contextlib import contextmanager
class TclCommand(object):
# FlatCAMApp
# appMain class is held here
app = None
# Logger
@@ -51,10 +51,10 @@ class TclCommand(object):
self.app = app
if self.app is None:
raise TypeError('Expected app to be FlatCAMApp instance.')
raise TypeError('Expected app to be appMain instance.')
if not isinstance(self.app, app_Main.App):
raise TypeError('Expected FlatCAMApp, got %s.' % type(app))
if not isinstance(self.app, appMain.App):
raise TypeError('Expected appMain, got %s.' % type(app))
self.log = self.app.log
self.error_info = None