pyqt5-QDialogButtonBox
1、介绍
对话按钮框。提供两个按钮,进行选择。
2、创建和初始化
class QDialogButtonBox(QWidget):
"""
QDialogButtonBox(parent: QWidget = None)
QDialogButtonBox(Qt.Orientation, parent: QWidget = None)
QDialogButtonBox(Union[QDialogButtonBox.StandardButtons, QDialogButtonBox.StandardButton], parent: QWidget = None)
QDialogButtonBox(Union[QDialogButtonBox.StandardButtons, QDialogButtonBox.StandardButton], Qt.Orientation, parent: QWidget = None)
"""
def __init__(self, *__args):
pass
3、属性
Abort = 262144
AcceptRole = 0
ActionRole = 3
AndroidLayout = 5
Apply = 33554432
ApplyRole = 8
Cancel = 4194304
Close = 2097152
DestructiveRole = 2
Discard = 8388608
GnomeLayout = 3
Help = 16777216
HelpRole = 4
Ignore = 1048576
InvalidRole = -1
KdeLayout = 2
MacLayout = 1
No = 65536
NoButton = 0
NoRole = 6
NoToAll = 131072
Ok = 1024
Open = 8192
RejectRole = 1
Reset = 67108864
ResetRole = 7
RestoreDefaults = 134217728
Retry = 524288
Save = 2048
SaveAll = 4096
WinLayout = 0
Yes = 16384
YesRole = 5
YesToAll = 32768
4、方法
5、事件