一、API接口设置
- 比如我这段代码中的一些设置,设置文字、居中、禁止复制、LineEdit输入为password等等
import sys
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QFrame
from PyQt5.QtWidgets import QLabel
from PyQt5.QtWidgets import QWidget
from PyQt5.QtWidgets import QLineEdit
from PyQt5.QtWidgets import QTextEdit
from PyQt5.QtWidgets import QSizePolicy
from PyQt5.QtWidgets import QMainWindow
from PyQt5.QtWidgets import QPushButton
from PyQt5.QtWidgets import QGridLayout
from PyQt5.QtWidgets import QApplication
from View import interface
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow,self).__init__(None)
self.setWindowTitle(&#