- refactored some of the code in the App class and created a new Tcl Command named Help

This commit is contained in:
Marius Stanciu
2020-04-22 23:00:54 +03:00
committed by Marius
parent 66d9ddd402
commit a1499158c2
10 changed files with 551 additions and 459 deletions

View File

@@ -252,3 +252,11 @@ class FlatCAMTool(QtWidgets.QWidget):
(_("Edited value is out of range"), minval, maxval))
else:
self.app.inform.emit('[success] %s' % _("Edited value is within limits."))
def sizeHint(self):
"""
I've overloaded this just in case I will need to make changes in the future to enforce dimensions
:return:
"""
default_hint_size = super(FlatCAMTool, self).sizeHint()
return QtCore.QSize(default_hint_size.width(), default_hint_size.height())