1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-11 01:04:10 +02:00

Apply suggestions from code review

完善注释

Co-Authored-By: lsvih <lsvih@qq.com>
This commit is contained in:
kdxcxs
2020-02-18 11:39:31 +08:00
committed by GitHub
parent fb626bb078
commit 891061acd4

View File

@@ -27,7 +27,7 @@ def window():
b = QtGui.QLabel(w)
# 设置 labe l的文字
b.setText("Hello World!")
# 设置尺寸和位置
# 设置 widget 的尺寸和位置
w.setGeometry(100, 100, 200, 50)
b.move(50, 20)
# 设置窗口的标题
@@ -75,4 +75,4 @@ def showdialog():
d.exec_()
if __name__ == '__main__':
window()
```
```