- working on a proper GCode Editor

This commit is contained in:
Marius Stanciu
2020-07-22 15:49:52 +03:00
parent 65d4f70b21
commit 9e8ab610b4
7 changed files with 245 additions and 21 deletions

View File

@@ -1557,8 +1557,13 @@ class FCInputDialog(QtWidgets.QInputDialog):
class FCButton(QtWidgets.QPushButton):
def __init__(self, parent=None):
super(FCButton, self).__init__(parent)
def __init__(self, text=None, checkable=None, click_callback=None, parent=None):
super(FCButton, self).__init__(text, parent)
if not checkable is None:
self.setCheckable(checkable)
if not click_callback is None:
self.clicked.connect(click_callback)
def get_value(self):
return self.isChecked()