# encoding: utf-8
# module PyQt6.QtWidgets
# from C:\Users\xukai\Downloads\发票2\venv\Lib\site-packages\PyQt6\QtWidgets.pyd
# by generator 1.147
# no doc

# imports
import PyQt6.QtCore as __PyQt6_QtCore
import PyQt6.QtGui as __PyQt6_QtGui
import PyQt6.sip as __PyQt6_sip


from .QDialog import QDialog

class QMessageBox(QDialog):
    """
    QMessageBox(parent: typing.Optional[QWidget] = None)
    QMessageBox(icon: QMessageBox.Icon, title: str, text: str, buttons: QMessageBox.StandardButton = QMessageBox.NoButton, parent: typing.Optional[QWidget] = None, flags: Qt.WindowType = Qt.Dialog|Qt.MSWindowsFixedSizeDialogHint)
    """
    def about(self, parent, caption, text): # real signature unknown; restored from __doc__
        """ about(parent: QWidget, caption: str, text: str) """
        pass

    def aboutQt(self, parent, title=''): # real signature unknown; restored from __doc__
        """ aboutQt(parent: QWidget, title: str = '') """
        pass

    def actionEvent(self, *args, **kwargs): # real signature unknown
        pass

    def addButton(self, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        """
        addButton(self, button: QAbstractButton, role: QMessageBox.ButtonRole)
        addButton(self, text: str, role: QMessageBox.ButtonRole) -> QPushButton
        addButton(self, button: QMessageBox.StandardButton) -> QPushButton
        """
        return QPushButton

    def button(self, which): # real signature unknown; restored from __doc__
        """ button(self, which: QMessageBox.StandardButton) -> QAbstractButton """
        return QAbstractButton

    def buttonClicked(self, *args, **kwargs): # real signature unknown
        """
        pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
        
        types is normally a sequence of individual types.  Each type is either a
        type object or a string that is the name of a C++ type.  Alternatively
        each type could itself be a sequence of types each describing a different
        overloaded signal.
        name is the optional C++ name of the signal.  If it is not specified then
        the name of the class attribute that is bound to the signal is used.
        revision is the optional revision of the signal that is exported to QML.
        If it is not specified then 0 is used.
        arguments is the optional sequence of the names of the signal's arguments.
        """
        pass

    def buttonRole(self, button): # real signature unknown; restored from __doc__
        """ buttonRole(self, button: QAbstractButton) -> QMessageBox.ButtonRole """
        pass

    def buttons(self): # real signature unknown; restored from __doc__
        """ buttons(self) -> List[QAbstractButton] """
        return []

    def changeEvent(self, a0): # real signature unknown; restored from __doc__
        """ changeEvent(self, a0: QEvent) """
        pass

    def checkBox(self): # real signature unknown; restored from __doc__
        """ checkBox(self) -> QCheckBox """
        return QCheckBox

    def childEvent(self, *args, **kwargs): # real signature unknown
        pass

    def clickedButton(self): # real signature unknown; restored from __doc__
        """ clickedButton(self) -> QAbstractButton """
        return QAbstractButton

    def closeEvent(self, a0): # real signature unknown; restored from __doc__
        """ closeEvent(self, a0: QCloseEvent) """
        pass

    def connectNotify(self, *args, **kwargs): # real signature unknown
        pass

    def contextMenuEvent(self, *args, **kwargs): # real signature unknown
        pass

    def create(self, *args, **kwargs): # real signature unknown
        pass

    def critical(self, parent, title, text, buttons=None, defaultButton=None): # real signature unknown; restored from __doc__
        """ critical(parent: QWidget, title: str, text: str, buttons: QMessageBox.StandardButton = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) -> QMessageBox.StandardButton """
        pass

    def customEvent(self, *args, **kwargs): # real signature unknown
        pass

    def defaultButton(self): # real signature unknown; restored from __doc__
        """ defaultButton(self) -> QPushButton """
        return QPushButton

    def destroy(self, *args, **kwargs): # real signature unknown
        pass

    def detailedText(self): # real signature unknown; restored from __doc__
        """ detailedText(self) -> str """
        return ""

    def disconnectNotify(self, *args, **kwargs): # real signature unknown
        pass

    def dragEnterEvent(self, *args, **kwargs): # real signature unknown
        pass

    def dragLeaveEvent(self, *args, **kwargs): # real signature unknown
        pass

    def dragMoveEvent(self, *args, **kwargs): # real signature unknown
        pass

    def dropEvent(self, *args, **kwargs): # real signature unknown
        pass

    def enterEvent(self, *args, **kwargs): # real signature unknown
        pass

    def escapeButton(self): # real signature unknown; restored from __doc__
        """ escapeButton(self) -> QAbstractButton """
        return QAbstractButton

    def event(self, e): # real signature unknown; restored from __doc__
        """ event(self, e: QEvent) -> bool """
        return False

    def eventFilter(self, *args, **kwargs): # real signature unknown
        pass

    def focusInEvent(self, *args, **kwargs): # real signature unknown
        pass

    def focusNextChild(self, *args, **kwargs): # real signature unknown
        pass

    def focusNextPrevChild(self, *args, **kwargs): # real signature unknown
        pass

    def focusOutEvent(self, *args, **kwargs): # real signature unknown
        pass

    def focusPreviousChild(self, *args, **kwargs): # real signature unknown
        pass

    def hideEvent(self, *args, **kwargs): # real signature unknown
        pass

    def icon(self): # real signature unknown; restored from __doc__
        """ icon(self) -> QMessageBox.Icon """
        pass

    def iconPixmap(self): # real signature unknown; restored from __doc__
        """ iconPixmap(self) -> QPixmap """
        pass

    def information(self, parent, title, text, buttons=None, defaultButton=None): # real signature unknown; restored from __doc__
        """ information(parent: QWidget, title: str, text: str, buttons: QMessageBox.StandardButton = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) -> QMessageBox.StandardButton """
        pass

    def informativeText(self): # real signature unknown; restored from __doc__
        """ informativeText(self) -> str """
        return ""

    def initPainter(self, *args, **kwargs): # real signature unknown
        pass

    def inputMethodEvent(self, *args, **kwargs): # real signature unknown
        pass

    def isSignalConnected(self, *args, **kwargs): # real signature unknown
        pass

    def keyPressEvent(self, a0): # real signature unknown; restored from __doc__
        """ keyPressEvent(self, a0: QKeyEvent) """
        pass

    def keyReleaseEvent(self, *args, **kwargs): # real signature unknown
        pass

    def leaveEvent(self, *args, **kwargs): # real signature unknown
        pass

    def metric(self, *args, **kwargs): # real signature unknown
        pass

    def mouseDoubleClickEvent(self, *args, **kwargs): # real signature unknown
        pass

    def mouseMoveEvent(self, *args, **kwargs): # real signature unknown
        pass

    def mousePressEvent(self, *args, **kwargs): # real signature unknown
        pass

    def mouseReleaseEvent(self, *args, **kwargs): # real signature unknown
        pass

    def moveEvent(self, *args, **kwargs): # real signature unknown
        pass

    def nativeEvent(self, *args, **kwargs): # real signature unknown
        pass

    def open(self, slot=None): # real signature unknown; restored from __doc__ with multiple overloads
        """
        open(self)
        open(self, slot: PYQT_SLOT)
        """
        pass

    def paintEvent(self, *args, **kwargs): # real signature unknown
        pass

    def question(self, parent, title, text, buttons=None, *args, **kwargs): # real signature unknown; NOTE: unreliably restored from __doc__ 
        """ question(parent: QWidget, title: str, text: str, buttons: QMessageBox.StandardButton = QMessageBox.StandardButtons(QMessageBox.Yes|QMessageBox.No), defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) -> QMessageBox.StandardButton """
        pass

    def receivers(self, *args, **kwargs): # real signature unknown
        pass

    def removeButton(self, button): # real signature unknown; restored from __doc__
        """ removeButton(self, button: QAbstractButton) """
        pass

    def resizeEvent(self, a0): # real signature unknown; restored from __doc__
        """ resizeEvent(self, a0: QResizeEvent) """
        pass

    def sender(self, *args, **kwargs): # real signature unknown
        pass

    def senderSignalIndex(self, *args, **kwargs): # real signature unknown
        pass

    def setCheckBox(self, cb): # real signature unknown; restored from __doc__
        """ setCheckBox(self, cb: QCheckBox) """
        pass

    def setDefaultButton(self, button): # real signature unknown; restored from __doc__ with multiple overloads
        """
        setDefaultButton(self, button: QPushButton)
        setDefaultButton(self, button: QMessageBox.StandardButton)
        """
        pass

    def setDetailedText(self, text): # real signature unknown; restored from __doc__
        """ setDetailedText(self, text: str) """
        pass

    def setEscapeButton(self, button): # real signature unknown; restored from __doc__ with multiple overloads
        """
        setEscapeButton(self, button: QAbstractButton)
        setEscapeButton(self, button: QMessageBox.StandardButton)
        """
        pass

    def setIcon(self, a0): # real signature unknown; restored from __doc__
        """ setIcon(self, a0: QMessageBox.Icon) """
        pass

    def setIconPixmap(self, a0): # real signature unknown; restored from __doc__
        """ setIconPixmap(self, a0: QPixmap) """
        pass

    def setInformativeText(self, text): # real signature unknown; restored from __doc__
        """ setInformativeText(self, text: str) """
        pass

    def setStandardButtons(self, buttons): # real signature unknown; restored from __doc__
        """ setStandardButtons(self, buttons: QMessageBox.StandardButton) """
        pass

    def setText(self, a0): # real signature unknown; restored from __doc__
        """ setText(self, a0: str) """
        pass

    def setTextFormat(self, a0): # real signature unknown; restored from __doc__
        """ setTextFormat(self, a0: Qt.TextFormat) """
        pass

    def setTextInteractionFlags(self, flags): # real signature unknown; restored from __doc__
        """ setTextInteractionFlags(self, flags: Qt.TextInteractionFlag) """
        pass

    def setWindowModality(self, windowModality): # real signature unknown; restored from __doc__
        """ setWindowModality(self, windowModality: Qt.WindowModality) """
        pass

    def setWindowTitle(self, title): # real signature unknown; restored from __doc__
        """ setWindowTitle(self, title: str) """
        pass

    def sharedPainter(self, *args, **kwargs): # real signature unknown
        pass

    def showEvent(self, a0): # real signature unknown; restored from __doc__
        """ showEvent(self, a0: QShowEvent) """
        pass

    def standardButton(self, button): # real signature unknown; restored from __doc__
        """ standardButton(self, button: QAbstractButton) -> QMessageBox.StandardButton """
        pass

    def standardButtons(self): # real signature unknown; restored from __doc__
        """ standardButtons(self) -> QMessageBox.StandardButton """
        pass

    def standardIcon(self, icon): # real signature unknown; restored from __doc__
        """ standardIcon(icon: QMessageBox.Icon) -> QPixmap """
        pass

    def tabletEvent(self, *args, **kwargs): # real signature unknown
        pass

    def text(self): # real signature unknown; restored from __doc__
        """ text(self) -> str """
        return ""

    def textFormat(self): # real signature unknown; restored from __doc__
        """ textFormat(self) -> Qt.TextFormat """
        pass

    def textInteractionFlags(self): # real signature unknown; restored from __doc__
        """ textInteractionFlags(self) -> Qt.TextInteractionFlag """
        pass

    def timerEvent(self, *args, **kwargs): # real signature unknown
        pass

    def updateMicroFocus(self, *args, **kwargs): # real signature unknown
        pass

    def warning(self, parent, title, text, buttons=None, defaultButton=None): # real signature unknown; restored from __doc__
        """ warning(parent: QWidget, title: str, text: str, buttons: QMessageBox.StandardButton = QMessageBox.Ok, defaultButton: QMessageBox.StandardButton = QMessageBox.NoButton) -> QMessageBox.StandardButton """
        pass

    def wheelEvent(self, *args, **kwargs): # real signature unknown
        pass

    def __init__(self, *__args): # real signature unknown; restored from __doc__ with multiple overloads
        pass

    ButtonRole = None # (!) real value is "<enum 'ButtonRole'>"
    Icon = None # (!) real value is "<enum 'Icon'>"
    StandardButton = None # (!) real value is "<flag 'StandardButton'>"


