Skip to content
Snippets Groups Projects
Commit 79df2bfd authored by Christoph Schmidt's avatar Christoph Schmidt
Browse files

Fixed allowed_type for FieldInt

parent 290338e1
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ if __name__ == "__main__":
grd.addWidget(tree, 2, 0)
btn_set = QtWidgets.QPushButton("Set Wafer Number to 5")
btn_set.clicked.connect(lambda: config.wafer_number.set(5))
btn_set.clicked.connect(lambda: config.wafer_number.set("5"))
grd.addWidget(btn_set, 3, 0)
btn_save = QtWidgets.QPushButton("Save Config")
......
......@@ -14,7 +14,7 @@ class FieldInt(Field):
def __init__(self, value: int, friendly_name: str = None, description: str = None):
super().__init__(value, friendly_name, description)
self.view = FieldViewInt(self)
self._allowed_types = [int, None]
self._allowed_types = (int, None)
def _yaml_repr(self):
return int(self.value)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment