mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-13 10:14:58 +02:00
Apply suggestions from code review
完善注释 Co-Authored-By: lsvih <lsvih@qq.com>
This commit is contained in:
@@ -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)
|
||||||
# 设置窗口的标题
|
# 设置窗口的标题
|
||||||
@@ -75,4 +75,4 @@ def showdialog():
|
|||||||
d.exec_()
|
d.exec_()
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
window()
|
window()
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user