Tool change support for gcode from excellon. Untested.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user