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