def __init__(self, engine, menu_name):
        self._engine = engine
        self._menu_name = menu_name
        self._dialogs = []

        self._widget = QtWidgets.QWidget()
        self._handle = QtWidgets.QMenu(self._menu_name, self._widget)
        self._ui_cache = []
 def _add_sub_menu(self, menu_name, parent_menu):
     sub_menu = QtWidgets.QMenu(title=menu_name, parent=parent_menu)
     parent_menu.addMenu(sub_menu)
     return sub_menu