Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
把pyside2的BUG提交给官方后,回复内容看不太懂,谁给翻译下
社区开发
1280
views ·
0
replies ·
To
floor
Go
ab588588
deepin
2020-10-22 17:48
Author
本帖最后由 ab588588 于 2020-10-22 09:50 编辑
用PySide2的QFontDialog.getFont()方法时,发现返回值的顺序错误了,与PySide2的文档描述不一致。官方描述:
typing.Tuple[PySide2.QtGui.QFont, bool]
返回值是个元组,第一个元素是字体类型,第二个是bool类型。
然而实际应用却发现,两个返回的元素类型颠倒了,变成第一个是bool类型,第二个是字体类型。
于是,提交给QT官方了。官方回复内容:
Cristian Maureira-Fredes 添加了评论 - 20 十月 '20 12:42
您好,您需要用英语写。
I understood that the order is wrong.
On the typesystem we have that should be "bool, QFont"
but on the .pyi we have "QFont, bool".
Christian Tismer I was under the impression those files were generated based on the typesystem information,
however it seems they aren't :O
Copy the Code
原谅我开始用中文写的,英文不好
回复的“Christian Tismer”这个是不是个人名啊。
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
simple
Popular Events
More
用PySide2的QFontDialog.getFont()方法时,发现返回值的顺序错误了,与PySide2的文档描述不一致。官方描述:
typing.Tuple[PySide2.QtGui.QFont, bool]
返回值是个元组,第一个元素是字体类型,第二个是bool类型。
然而实际应用却发现,两个返回的元素类型颠倒了,变成第一个是bool类型,第二个是字体类型。
于是,提交给QT官方了。官方回复内容:
回复的“Christian Tismer”这个是不是个人名啊。