import sys
from PyQt5.QtWidgets import QApplication, QMainWindow, QAction,QLabel,QLineEdit,QPushButton
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QTextEdit, QTextBrowser, QHBoxLayout, QVBoxLayout
import time
class GUI(QMainWindow):
def __init__(self):
super().__init__()
self.iniUI()
self.buttonClicked()
def iniUI(self):
self.setWindowTitle("PythonGUI教程")
self.statusBar().showMessage("文本状态栏")
self.resize(400, 300)
#self.browser_label = QLabel('QTextBrowser', self)
#self.text_edit = QTextEdit(self)
self.text_browser = QTextBrowser(self)
self.text_browser.move(160,30)
self.text_browser.resize(200,200)
self.qle = QLineEdit(self)
self.qle.move(20, 80)
btn1 = QPushButton("确定", self)
btn1.move(20, 120)