mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-04-27 07:33:57 +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)
|
||||
# 设置 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()
|
||||
```
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user