Import logbook outside of prepare_console function
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import sys
|
||||
|
||||
from PyQt5.QtWidgets import (QLabel, QMainWindow, QToolBar, QDockWidget, QAction)
|
||||
|
||||
from logbook import Logger
|
||||
import cadquery as cq
|
||||
|
||||
from .widgets.editor import Editor
|
||||
@@ -290,7 +290,6 @@ class MainWindow(QMainWindow,MainMixin):
|
||||
|
||||
def prepare_console(self):
|
||||
|
||||
from logbook import Logger
|
||||
console = self.components['console']
|
||||
obj_tree = self.components['object_tree']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user