TabView.setMenuModel
void setMenuModel(gio.menu_model.MenuModel menuModel = null)Sets the tab context menu model for self.
When a context menu is shown for a tab, it will be constructed from the provided menu model. Use the signalTabView::setup-menu signal to set up the menu actions for the particular tab.
Parameters
menuModel | a menu model |