From e965ca54947628e1f100bbab7a178f140d2849a7 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 19 Jun 2023 14:37:31 +0300 Subject: [PATCH] - added a new signal allowing printing messages in statusbar without polluting the Tcl Shell; to be used in the future for low-ranking messages --- CHANGELOG.md | 4 ++++ appMain.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30363cf2..1652dfae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ CHANGELOG for FlatCAM Evo beta ================================================= +19.06.2023 + +- added a new signal allowing printing messages in statusbar without polluting the Tcl Shell; to be used in the future for low-ranking messages + 17.06.2023 - NCC Plugin: modified the previous change and now the simplification action is much bigger reducing the number of coordinates by a factor of 20 (20 times less) diff --git a/appMain.py b/appMain.py index 731c9c48..7e6a1d4f 100644 --- a/appMain.py +++ b/appMain.py @@ -218,6 +218,7 @@ class App(QtCore.QObject): inform = QtCore.pyqtSignal([str], [str, bool]) # Handled by: App.info_shell() --> Print on the shell inform_shell = QtCore.pyqtSignal([str], [str, bool]) + inform_no_echo = QtCore.pyqtSignal(str) app_quit = QtCore.pyqtSignal() @@ -1178,6 +1179,7 @@ class App(QtCore.QObject): # signal for displaying messages in status bar self.inform[str].connect(self.info) self.inform[str, bool].connect(self.info) + self.inform_no_echo[str].connect(lambda txt: self.info(msg=txt, shell_echo=False)) # noqa # signals for displaying messages in the Tcl Shell are now connected in the ToolShell class