mirror of
https://github.com/maicss/PyQt5-Chinese-tutorial.git
synced 2025-01-08 17:06:18 +08:00
Update hello_world.md
This commit is contained in:
parent
6be5976fe9
commit
466f728056
@ -522,8 +522,6 @@ self.move(qr.topLeft())
|
||||
|
||||
然后通过move函数把主窗口的左上角移动到其框架的左上角,这样就把窗口居中了。
|
||||
|
||||
*总结:窗口位于一个框架中,先将框架移动到屏幕中央,再把窗口移动到框架上。*
|
||||
|
||||
程序预览:
|
||||
|
||||
![center](./images/1-center.png)
|
||||
|
Loading…
x
Reference in New Issue
Block a user