*************Edit******************

I figured it out, mostly:
def raiseContextMenu(self, ev):
        """
        Raise the context menu
        """
        if not self.menuEnabled():
            return
        menu = self.getMenu()

        menu = self.scene().addParentContextMenus(self, menu, ev)

        pos  = ev.screenPos()
        menu.popup(QtCore.QPoint(pos.x(), pos.y()))




On Sunday, 9 July 2017 18:12:11 UTC-7, Joel Adamson wrote:
>
> Hey,
>
> I wanted to add the option to export to a custom viewbox context menu. So 
> far I've tried:
>
> for item in pg.plot().scene().contextMenu:
>      self.menu.addAction(item)
>
> because the returned value is a QAction item.
>
> This just crashes the kernel.
>
> Help?
>
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/pyqtgraph/998ca438-bbe7-4604-8192-59235581426c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to