Source code for prettyqt.widgets.widgetaction

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

from qtpy import QtWidgets

from prettyqt import widgets


QtWidgets.QWidgetAction.__bases__ = (widgets.Action,)


[docs]class WidgetAction(QtWidgets.QWidgetAction): pass
# def __init__(self, text="", icon=None, parent=None, shortcut="", tooltip=""): # super().__init__(parent=parent) # self.set_text(text) # self.set_icon(icon) # self.set_shortcut(shortcut) # self.set_tooltip(tooltip)