Co-authored-by: Chris Stuart <chris.stuart@ukaea.uk>
This commit is contained in:
parent
be6f28b03c
commit
ddb597a3dd
@ -763,6 +763,9 @@ class FlowchartCtrlWidget(QtGui.QWidget):
|
|||||||
item = self.items[node]
|
item = self.items[node]
|
||||||
self.ui.ctrlList.setCurrentItem(item)
|
self.ui.ctrlList.setCurrentItem(item)
|
||||||
|
|
||||||
|
def clearSelection(self):
|
||||||
|
self.ui.ctrlList.selectionModel().clearSelection()
|
||||||
|
|
||||||
|
|
||||||
class FlowchartWidget(dockarea.DockArea):
|
class FlowchartWidget(dockarea.DockArea):
|
||||||
"""Includes the actual graphical flowchart and debugging interface"""
|
"""Includes the actual graphical flowchart and debugging interface"""
|
||||||
@ -890,7 +893,10 @@ class FlowchartWidget(dockarea.DockArea):
|
|||||||
item = items[0]
|
item = items[0]
|
||||||
if hasattr(item, 'node') and isinstance(item.node, Node):
|
if hasattr(item, 'node') and isinstance(item.node, Node):
|
||||||
n = item.node
|
n = item.node
|
||||||
|
if n in self.ctrl.items:
|
||||||
self.ctrl.select(n)
|
self.ctrl.select(n)
|
||||||
|
else:
|
||||||
|
self.ctrl.clearSelection()
|
||||||
data = {'outputs': n.outputValues(), 'inputs': n.inputValues()}
|
data = {'outputs': n.outputValues(), 'inputs': n.inputValues()}
|
||||||
self.selNameLabel.setText(n.name())
|
self.selNameLabel.setText(n.name())
|
||||||
if hasattr(n, 'nodeName'):
|
if hasattr(n, 'nodeName'):
|
||||||
|
Loading…
Reference in New Issue
Block a user