mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-01-17 21:49:22 +01:00
Apply suggestions from code review
Co-Authored-By: lsvih <lsvih@qq.com>
This commit is contained in:
parent
891061acd4
commit
4ad5bf24fc
@ -25,7 +25,7 @@ def window():
|
|||||||
w = QtGui.QWidget()
|
w = QtGui.QWidget()
|
||||||
# 在 widget 中添加一个 label 子控件
|
# 在 widget 中添加一个 label 子控件
|
||||||
b = QtGui.QLabel(w)
|
b = QtGui.QLabel(w)
|
||||||
# 设置 labe l的文字
|
# 设置 label 的文字
|
||||||
b.setText("Hello World!")
|
b.setText("Hello World!")
|
||||||
# 设置 widget 的尺寸和位置
|
# 设置 widget 的尺寸和位置
|
||||||
w.setGeometry(100, 100, 200, 50)
|
w.setGeometry(100, 100, 200, 50)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user