Hi RC,

have a look at the code in *pyqtgraph/graphicsItems/ViewBox/.*
The submenu on the right is created in the *axisCtrlTemplate_*.py* files. 
At the top you can find a *Form.resize(..,..) *with hard-coded values. A 
bigger size might solve the issue with the weird scaling of the fonts in 
your UI. You can also see that the menu is actually defined via a 
*QGridLayout.* You can arange and add widgets to your liking within that.
The menu to the left is instantiated in *ViewBoxMenu.py.* I just had a 
quick look at the code, but it looks like you can add a z-axis menu by 
extending the loop (*for axis in 'XY':*) in the constructor and adding the 
corresponding functions for event handling down in this file.

Hope this helps a bit.

Cheers
Sebastian



Am Dienstag, 18. April 2017 14:26:09 UTC+2 schrieb RC:
>
>
>
> I guys, I hope someone can help me out with this one.
>
>
> I have a pyqtgraph context menu and want to add my own Z-Axis. I can 
> create a qlineedit widget but I am not able to create multiple widget on 
> the same line in the context menu as show below (e.g. radio button and 2 
> text boxes on same line)
>
> [image: enter image description here] 
> <https://i.stack.imgur.com/bk6xN.png>
>
> As a minimum I would like to achieve:-
>
> Z Axis -> [input value], string, [input value] all on the same line
>
> I've had a look in qmenu but couldn't find what I needed. Anyone know how 
> to achieve this? I think i am missing something
>
> Also if anyone knows how to change the size of the X Axis qlineedit boxes 
> and make them bigger it would be great as they are a bit squashed as you 
> can see. This may be due to the resolution of my screen being very high.
>
>
> Thanks for any help you can provide on this.
>

-- 
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/4857f434-4871-46df-aab1-a948d5ef984b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to