Any clue how to let user create graphitem live with mouse clicks ?

36 views
Skip to first unread message

Michał Piech

unread,
Jan 21, 2017, 5:29:37 PM1/21/17
to pyqtgraph
Hello

First of all thanks for pyqtgraph, it's been really helpful.
I am trying to run a simulation on user defined graph so I wanted to let user create GraphItem.

Best way would be through mouse interactions - left click creates a node, drag between nodes creates a vertex,
right click on a vertex opens up a context menu for choosing vertex-cost.

Second way would be creating a graph with buttons/slidelists.

The problem is that I need to create and update the graph live.
Any idea how to do it ?

Reply all
Reply to author
Forward
0 new messages