import sys
from PyQt6.QtGui import QIcon, QPixmap
from PyQt6.QtWidgets import QApplication, QWidget, QLabel
from PyQt6 import uic
class MyWidget(QWidget):
def __init__(self):
super().__init__()
self.setWindowTitle("猫咪乐园")
ui=uic.loadUi("./untitled.ui",self)
self.label=self.findChild(QLabel,'label')
lab3 = QLabel(self)
lab3.setPixmap(QPixmap("./aaa.png"))
if __name__=="__main__":
app=QApplication(sys.argv)
# ui = uic.loadUi("./Form.ui")
myWidget=MyWidget()
myWidget.show()
sys.exit(app.exec())