Skip to content

Application exit on right click #2233

@Cosmicoppai

Description

@Cosmicoppai

Application exits when right clicked on node label

Code to reproduce

from PyQt5 import QtWidgets as Qtw
from pyqtgraph.flowchart import Flowchart


class MainWindow(Qtw.QWidget):
    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        layout = Qtw.QGridLayout()

        # Create flowchart, define input/output terminals
        fc = Flowchart(terminals={
            'Input': {'io': 'in'},
            'Output': {'io': 'out'},
        })

        layout.addWidget(fc.widget())
        self.setLayout(layout)
        self.show()


if __name__ == '__main__':
    import sys
    app = Qtw.QApplication(sys.argv)
    w = MainWindow(windowTitle="create FlowChart")
    sys.exit(app.exec_())

Expected behavior

Application should be continue running

Real behavior

Application exits

Tested environment(s)

  • PyQtGraph version: 0.12.3
  • Qt Python binding: PyQt5
  • Python version: 3.10
  • Operating system: Windows 10
  • Installation method: pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions