Source code for prettyqt.widgets.menu

# -*- coding: utf-8 -*-
"""
@author: Philipp Temminghoff
"""

from typing import Any, Callable, Optional, Union

import qtawesome as qta
from qtpy import QtWidgets, QtGui

from prettyqt import core, widgets, gui


QtWidgets.QMenu.__bases__ = (widgets.Widget,)





if __name__ == "__main__":
    app = widgets.app()
    menu = Menu("1")
    action = widgets.Action("test")
    menu.addAction(action)
    menu.show()
    menu.exec_(core.Point(200, 200))