Sfoglia il codice sorgente

hide showing 'None' if command end sucessfully

Kamil Sopko 9 anni fa
parent
commit
2e51c1e9cd
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      FlatCAMApp.py

+ 2 - 1
FlatCAMApp.py

@@ -698,7 +698,8 @@ class App(QtCore.QObject):
 
         try:
             result = self.tcl.eval(str(text))
-            self.shell.append_output(result + '\n')
+            if result!='None':
+                self.shell.append_output(result + '\n')
         except Tkinter.TclError, e:
             #this will display more precise answer if something in  TCL shell fail
             result = self.tcl.eval("set errorInfo")