mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-21 05:40:59 +00:00
Apply suggestions from code review
完善注释 Co-Authored-By: lsvih <lsvih@qq.com>
This commit is contained in:
parent
fb626bb078
commit
891061acd4
@ -27,7 +27,7 @@ def window():
|
|||||||
b = QtGui.QLabel(w)
|
b = QtGui.QLabel(w)
|
||||||
# 设置 labe l的文字
|
# 设置 labe l的文字
|
||||||
b.setText("Hello World!")
|
b.setText("Hello World!")
|
||||||
# 设置尺寸和位置
|
# 设置 widget 的尺寸和位置
|
||||||
w.setGeometry(100, 100, 200, 50)
|
w.setGeometry(100, 100, 200, 50)
|
||||||
b.move(50, 20)
|
b.move(50, 20)
|
||||||
# 设置窗口的标题
|
# 设置窗口的标题
|
||||||
|
Loading…
Reference in New Issue
Block a user