schrodinger.application.msv.gui.gui_utils module¶
Create a
QAction
with an associated menu.QAction.menu()
andQAction.setMenu()
were removed from PyQt 6, so we have to create the menu first and then get an action from the menu. We store the menu asaction.menu
so we can access it later.- Parameters
title – The title of the submenu
parent – The Qt parent of the submenu
menu_class – The QMenu class or subclass to use
- Returns
The newly created action