qtpropertybrowserutils.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:QtPropertyBrowserV2.6-for-pyqt5 作者: theall 项目源码 文件源码
def translateModifiers(self, state, text):
        result = 0
        if ((state & Qt.ShiftModifier) and (len(text) == 0 or not text[0].isprintable() or text[0].isalpha() or text[0].isspace())):
            result |= Qt.SHIFT
        if (state & Qt.ControlModifier):
            result |= Qt.CTRL
        if (state & Qt.MetaModifier):
            result |= Qt.META
        if (state & Qt.AltModifier):
            result |= Qt.ALT
        return result
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号