获取框里面的内容,有一个BUG,搞了好久才搞定。
__author__ = 'ayew'
import sys
from PyQt5.QtCore import*
from PyQt5.QtWidgets import QWidget, QApplication, QGroupBox, QPushButton, QLabel, QHBoxLayout, QVBoxLayout, QGridLayout, QFormLayout, QLineEdit, QTextEdit
class login(QWidget):
def __init__(self):
super(login,self).__init__()
self.initUi()
def initUi(self):
self.setWindowTitle("login")
layout = QGridLayout()
self.setGeometry(600, 600, 400, 400)
nameLabel = QLabel("姓名")
self.nameLineEdit = QLineEdit(" ")
sexLabel = QLabel("性别")
self.sexLineEdit = QLineEdit(" ")
emitLabel = QLabel("手机号")
self.phoneLineEdit = QLineEdit("