Tool change support for gcode from excellon. Untested.

This commit is contained in:
jpcaram
2015-02-07 13:32:58 -05:00
parent 17a3316ce4
commit bba4f3a8bb
5 changed files with 86 additions and 16 deletions

View File

@@ -227,4 +227,29 @@ class VerticalScrollArea(QtGui.QScrollArea):
# else:
# FlatCAMApp.App.log.debug(" Scroll bar hidden")
# self.setMinimumWidth(self.widget().minimumSizeHint().width())
return QtGui.QWidget.eventFilter(self, source, event)
return QtGui.QWidget.eventFilter(self, source, event)
class OptionalInputSection():
def __init__(self, cb, optinputs):
assert isinstance(cb, FCCheckBox)
self.cb = cb
self.optinputs = optinputs
self.on_cb_change()
self.cb.stateChanged.connect(self.on_cb_change)
def on_cb_change(self):
if self.cb.checkState():
for widget in self.optinputs:
widget.setEnabled(True)
else:
for widget in self.optinputs:
widget.setEnabled(False)