Source code for optimeed.visualize.gui.widgets.widget_menuButton
fromPyQt5importQtWidgets
[docs]classwidget_menuButton(QtWidgets.QMenu):"""Same as QMenu, but integrates it behind a button more easily."""def__init__(self,theParentButton):super().__init__()self.theButton=theParentButtonself.theButton.setMenu(self)