- in CNCJob UI Autolevelling - sending GCode/GRBL commands is now threaded

This commit is contained in:
Marius Stanciu
2020-08-19 04:15:15 +03:00
parent 3afcabe559
commit 33c633f0c4
3 changed files with 20 additions and 7 deletions

View File

@@ -208,7 +208,7 @@ class App(QtCore.QObject):
# Handled by: App.info() --> Print on the status bar
inform = QtCore.pyqtSignal([str], [str, bool])
# Handled by: App.info_shell() --> Print on the shell
inform_shell = QtCore.pyqtSignal(str)
inform_shell = QtCore.pyqtSignal([str], [str, bool])
app_quit = QtCore.pyqtSignal()
@@ -791,7 +791,8 @@ class App(QtCore.QObject):
self.inform[str, bool].connect(self.info)
# signal for displaying messages in the shell
self.inform_shell.connect(self.info_shell)
self.inform_shell[str].connect(self.info_shell)
self.inform_shell[str, bool].connect(self.info_shell)
# signal to be called when the app is quiting
self.app_quit.connect(self.quit_application, type=Qt.QueuedConnection)
@@ -2546,8 +2547,8 @@ class App(QtCore.QObject):
if msg != '' and shell_echo is True:
self.shell_message(msg)
def info_shell(self, msg):
self.shell_message(msg=msg)
def info_shell(self, msg, new_line=True):
self.shell_message(msg=msg, new_line=new_line)
def on_import_preferences(self):
"""