to answer my own question:
 imv = pg.ImageView()
 histo_item = imv.getHistogramWidget().vb.menu.addAction("Extra action")

I expected that: imv.getHistogramWidget().item.getViewBox() would be 
returning the viewbox but it gives the LUTHistogramWidget... Tbh this was 
not intuitive to me, so if someone can explain why I would appreciate it. 
Kind regards,
Lavinia

On Monday, June 14, 2021 at 6:02:45 PM UTC+2 [email protected] wrote:

> Hello,
> I am trying to change the context menu available when we right click on 
> the histogram of an image view but I cannot find anywhere any reference to 
> it. Where is created? How can I change it? 
>
> I saw for the image itself there is a buildMenu() option which actually 
> creates that context menu and saves it in self.menu. Is there an equivalent 
> for the histogram somewhere? 
>
> Kind regards,
> Lavinia
>

-- 
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/bf32aac3-7da0-442e-ac42-ac5760783367n%40googlegroups.com.

Reply via email to