Skip to content

Commit

Permalink
variable tool fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroCabrera committed Apr 14, 2024
1 parent fb589fe commit f7c47b3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions PyFlow/Packages/PyFlowBase/Tools/VariablesTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ def __init__(self):
super(VariablesTool, self).__init__()
self.setMinimumSize(QtCore.QSize(200, 50))
self.varsWidget = None
self.content = QWidget()
self.content.setObjectName("VariablesToolContent")
self.verticalLayout = QVBoxLayout(self.content)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.setWidget(self.content)

@staticmethod
def isSingleton():
Expand All @@ -44,7 +37,8 @@ def onShow(self):
super(VariablesTool, self).onShow()
self.varsWidget = VariablesWidget(self.pyFlowInstance)
self.pyFlowInstance.fileBeenLoaded.connect(self.varsWidget.actualize)
self.verticalLayout.addWidget(self.varsWidget)
self.varsWidget.setObjectName("VariablesWidget")
self.setWidget(self.varsWidget)
self.varsWidget.actualize()

def showEvent(self, event):
Expand Down

0 comments on commit f7c47b3

Please sign in to comment.