当前位置:   article > 正文

PyQt5学习记录2-按钮及鼠标样式

PyQt5学习记录2-按钮及鼠标样式

可提供的按钮

These enums describe flags for standard buttons. Each button has a defined ButtonRole .

ConstantDescription
QMessageBox.OkAn “OK” button defined with the AcceptRole .
QMessageBox.Openleft-aligned An “Open” button defined with the AcceptRole .
QMessageBox.SaveA “Save” button defined with the AcceptRole .
QMessageBox.CancelA “Cancel” button defined with the RejectRole .
QMessageBox.CloseA “Close” button defined with the RejectRole .
QMessageBox.DiscardA “Discard” or “Don’t Save” button, depending on the platform, defined with the DestructiveRole .
QMessageBox.ApplyAn “Apply” button defined with the ApplyRole .
QMessageBox.ResetA “Reset” button defined with the ResetRole .
QMessageBox.RestoreDefaultsA “Restore Defaults” button defined with the ResetRole .
QMessageBox.HelpA “Help” button defined with the HelpRole .
QMessageBox.SaveAllA “Save All” button defined with the AcceptRole .
QMessageBox.YesA “Yes” button defined with the YesRole .
QMessageBox.YesToAllA “Yes to All” button defined with the YesRole .
QMessageBox.NoA “No” button defined with the NoRole .
QMessageBox.NoToAllA “No to All” button defined with the NoRole .
QMessageBox.AbortAn “Abort” button defined with the RejectRole .
QMessageBox.RetryA “Retry” button defined with the AcceptRole .
QMessageBox.IgnoreAn “Ignore” button defined with the AcceptRole .
QMessageBox.NoButtonAn invalid button.

鼠标样式

在这里插入图片描述

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/652856
推荐阅读
相关标签
  

闽ICP备14008679号