Disable right-click context menu

148 views
Skip to first unread message

Bob

unread,
Jun 18, 2019, 6:59:39 PM6/18/19
to pyqtgraph
Hello,

I would like disable the right-click context menu completel. I have a graph for which this menu isn't at all relevant and I would like right-clicks to be used for a different purpose. How do I get rid of the menu, please?

TIA!

vas...@gmail.com

unread,
Jun 18, 2019, 7:07:59 PM6/18/19
to pyqt...@googlegroups.com
Hi Bob,

To get the rid of the menu, you could try to add enableMenu=False as a parameter when initialize ViewBox.
http://www.pyqtgraph.org/documentation/graphicsItems/viewbox.html  



--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqtgraph+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/e12cd803-6637-4a35-b007-881c53c3277e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bob

unread,
Jun 18, 2019, 7:10:49 PM6/18/19
to pyqtgraph
Fantastic, thanks for the reply. I wasn't sure where to look for that answer. 


On Wednesday, June 19, 2019 at 12:07:59 AM UTC+1, vas...@gmail.com wrote:
Hi Bob,

To get the rid of the menu, you could try to add enableMenu=False as a parameter when initialize ViewBox.
http://www.pyqtgraph.org/documentation/graphicsItems/viewbox.html  



On Tue, Jun 18, 2019 at 3:59 PM Bob <raaca...@gmail.com> wrote:
Hello,

I would like disable the right-click context menu completel. I have a graph for which this menu isn't at all relevant and I would like right-clicks to be used for a different purpose. How do I get rid of the menu, please?

TIA!

--
You received this message because you are subscribed to the Google Groups "pyqtgraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyqt...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages