enaml
enaml copied to clipboard
Is it possible to show a context menu on tab area only when right-clicking on the tabs?
I'm wondering it is possible to show a context menu
on tab area only when right-clicking on the tabs?
Just like the following:
Context menu on tab
If adding a context menu on notebook
will display a context menu
everywhere inside notebook
instead of only on the tab area.
`
Notebook: nb:
tab_style = 'preferences'
Menu:
title = 'Futu'
context_menu = True
Action:
text = 'Connect'
triggered::print('connect...')
Action:
text = 'Property'
triggered::print('property')
Page:
title = 'FuTu'
closable = False
`
I don't think it is currently possible. But it may be worth looking into it. I must say I do not know how to implement that on the Qt side.