From 9d66d17bb59db383845a290889abbd295cf03bbe Mon Sep 17 00:00:00 2001 From: Pedro Date: Mon, 15 Apr 2024 01:42:06 +0200 Subject: [PATCH] Fix Variables with pyside 6.7 --- PyFlow/UI/Views/VariablesWidget.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PyFlow/UI/Views/VariablesWidget.py b/PyFlow/UI/Views/VariablesWidget.py index faefa162..fbebea84 100644 --- a/PyFlow/UI/Views/VariablesWidget.py +++ b/PyFlow/UI/Views/VariablesWidget.py @@ -63,7 +63,7 @@ def __init__(self, pyFlowInstance, parent=None): self.setupUi(self) self.pyFlowInstance = pyFlowInstance self.pyFlowInstance.graphManager.get().graphChanged.connect(self.onGraphChanged) - self.pbNewVar.clicked.connect(self.createVariable) + self.pbNewVar.clicked.connect(lambda : self.createVariable()) self.listWidget = VariablesListWidget() self.lytListWidget.addWidget(self.listWidget) self.pyFlowInstance.newFileExecuted.connect(self.actualize) @@ -100,8 +100,9 @@ def createVariableWrapperAndAddToList(self, rawVariable): return uiVariable def createVariable( - self, dataType="BoolPin", accessLevel=AccessLevel.public, uid=None + self, dataType="AnyPin", accessLevel=AccessLevel.public, uid=None ): + print(dataType) rawVariable = ( self.pyFlowInstance.graphManager.get() .activeGraph()