QGridLayout
QGridLayout类将部件布置在网格中。
![](https://i-blog.csdnimg.cn/blog_migrate/8cc7cb5684a382b6321276392c2c005c.png)
user_label: (0, 0),第1行第1列
user_line: (0, 1),第1行第2列
pwd_label: (1, 0),第2行第1列
pwd_line: (1, 1),第2行第2列
# -*- coding: utf-8 -*-
"""
Created on Sat May 9 09:08:54 2020
@author: Giyn
"""
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QLineEdit, QPushButton, QGridLayout
class Simple_Window(QWidget):
def __init__(self):
super