Skip to content

Commit

Permalink
Fix Variables with pyside 6.7
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroCabrera committed Apr 14, 2024
1 parent eda427e commit 9d66d17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions PyFlow/UI/Views/VariablesWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 9d66d17

Please sign in to comment.