Explorar o código

hide showing 'None' if command end sucessfully

Kamil Sopko %!s(int64=9) %!d(string=hai) anos
pai
achega
2e51c1e9cd
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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")