python的pyqt5_python pyqt5画面实现

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'e:\NDC借調処理\python\src\StyleLayout.ui'

#

# Created by: PyQt5 UI code generator 5.13.0

#

# WARNING! All changes made in this file will be lost!

import sys

import os

import images_rc

import xlrd

import win32com.client

import time

from PyQt5 import QtCore, QtGui, QtWidgets

from PyQt5.QtCore import *

from PyQt5.QtGui import *

from PyQt5.QtWidgets import *

from CalculateSalary import CalculateSalary

class Ui_Management(object):

def setupUi(self, Management):

icon = QtGui.QIcon()

icon.addPixmap(QtGui.QPixmap(":/img/logo.jpg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)

Management.setObjectName("Management")

Management.resize(579, 593)

Management.setStyleSheet("background-image: url(:/img/img.jpg);")

Management.setWindowIcon(icon)

# 窗口垂直设计,画面控件随窗口变化而变化(自适应)

self.verticalLayout_3 = QtWidgets.QVBoxLayout(Management)

self.verticalLayout_3.setObjectName("verticalLayout_3")

# 文件处理层

self.groupBox1 = QtWidgets.QGroupBox(Management)

font = QtGui.QFont()

font.setPointSize(16)

font.setBold(True)

font.setItalic(True)

font.setWeight(75)

self.groupBox1.setFont(font)

self.groupBox1.setStyleSheet("color: rgb(85, 170, 255);")

self.groupBox1.setObjectName("groupBox1")

self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox1)

self.verticalLayout.setContentsMargins(-1, -1, -1, 9)

self.verticalLayout.setSpacing(6)

self.verticalLayout.setObjectName("verticalLayout")

self.horizontalLayout_3 = QtWidgets.QHBoxLayout()

self.horizontalLayout_3.setObjectName("horizontalLayout_3")

# 选择目标文件路径

self.folderSourceLabel = QtWidgets.QLabel(self.groupBox1)

font = QtGui.QFont()

font.setPointSize(12)

self.folderSourceLabel.setFont(font)

self.folderSourceLabel.setStyleSheet("color: rgb(0, 0, 0);")

self.folderSourceLabel.setObjectName("folderSourceLabel")

self.horizontalLayout_3.addWidget(self.folderSourceLabel)

# 在文本框显示文件夹路径内容

self.pathEdit = QtWidgets.QLineEdit(self.groupBox1)

font = QtGui.QFont()

font.setPointSize(12)

self.pathEdit.setFont(font)

self.pathEdit.setStyleSheet("background-color: rgb(255, 255, 255);""color: rgb(0, 0, 0);")

self.pathEdit.setObjectName("pathEdit")

self.horizontalLayout_3.addWidget(self.pathEdit)

# 浏览按钮

self.searchButton = QtWidgets.QPushButton(self.groupBox1)

font = QtGui.QFont()

font.setPointSize(12)

self.searchButton.setFont(font)

self.searchButton.setStyleSheet("color: rgb(200, 97, 84);")

self.searchButton.setCheckable(False)

self.searchButton.setAutoRepeat(False)

self.searchButton.setAutoExclusive(False)

self.searchButton.setFlat(False)

self.searchButton.setObjectName("searchButton")

self.horizontalLayout_3.addWidget(self.searchButton)

self.horizontalLayout_3.setStretch(0, 1)

self.horizontalLayout_3.setStretch(1, 5)

self.horizontalLayout_3.setStretch(2, 1)

s

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值