- Tool Drilling - fixed incorrect annotations in CNCJob objects generated; one drawback is that now each tool (when Toolchange is ON) has it's own annotation order which lead to overlapping in the start point of one tool and the end of previous tool

- Tool Drilling - refactoring methods and optimizations
This commit is contained in:
Marius Stanciu
2020-07-10 17:05:32 +03:00
committed by Marius
parent 24192540d7
commit f53ffe54d9
5 changed files with 239 additions and 203 deletions

View File

@@ -10351,6 +10351,14 @@ class App(QtCore.QObject):
except AttributeError:
log.debug("shell_message() is called before Shell Class is instantiated. The message is: %s", str(msg))
def dec_format(self, val, dec=None):
"""
Returns a formatted float value with a certain number of decimals
"""
dec_nr = dec if dec is not None else self.decimals
return float('%.*f' % (dec_nr, val))
class ArgsThread(QtCore.QObject):
open_signal = pyqtSignal(list)