加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Ui_step5.py 2.11 KB
一键复制 编辑 原始数据 按行查看 历史
mumuyeye 提交于 2024-05-03 23:24 . update code
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'e:\Py\demo\step1.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5 import QtCore, QtWidgets
import os
from PyQt5.QtWidgets import *
import sys
from PyQt5 import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1600, 960)
MainWindow.setStyleSheet("")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei")
font.setPointSize(14)
self.pushButton.setFont(font)
self.pushButton.setStyleSheet("color: rgb(255, 255, 255);")
self.pushButton.setFlat(True)
self.pushButton.setObjectName("pushButton")
self.pushButton.setGeometry(QtCore.QRect(20,880,230,60))
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.pushButton.clicked.connect(self.close)
self.retranslateUi(MainWindow)
self.setWindowIcon(QIcon(os.getcwd() + '/img/logo.ico'))
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def paintEvent(self, event):
painter = QPainter(self)
pixmap = QPixmap("img/bg.jpg")
painter.drawPixmap(self.rect(), pixmap)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "平台背景介绍"))
#self.pushButton.setText(_translate("MainWindow", " "))
#self.label.setText(_translate("MainWindow", "高空抛物智能监测与分析平台"))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化