|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
# Form implementation generated from reading ui file 'mainWindow.ui'
|
|
|
|
#
|
|
|
|
# Created by: PyQt5 UI code generator 5.14.1
|
|
|
|
#
|
|
|
|
# WARNING! All changes made in this file will be lost!
|
|
|
|
|
|
|
|
|
|
|
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
|
|
|
|
|
|
|
|
|
|
|
class Ui_MainWindow(object):
|
|
|
|
def setupUi(self, MainWindow,scaleRate):
|
|
|
|
MainWindow.setObjectName("MainWindow")
|
|
|
|
MainWindow.setWindowModality(QtCore.Qt.NonModal)
|
|
|
|
MainWindow.resize(400*scaleRate, 200*scaleRate)
|
|
|
|
self.centralwidget = QtWidgets.QWidget(MainWindow)
|
|
|
|
self.centralwidget.setObjectName("centralwidget")
|
|
|
|
self.label = QtWidgets.QLabel(self.centralwidget)
|
|
|
|
self.label.setGeometry(QtCore.QRect(40*scaleRate, 20*scaleRate, 320*scaleRate, 40*scaleRate))
|
|
|
|
font = QtGui.QFont()
|
|
|
|
font.setFamily("幼圆")
|
|
|
|
font.setPointSize(24)
|
|
|
|
self.label.setFont(font)
|
|
|
|
self.label.setLayoutDirection(QtCore.Qt.LeftToRight)
|
|
|
|
self.label.setTextFormat(QtCore.Qt.PlainText)
|
|
|
|
self.label.setAlignment(QtCore.Qt.AlignCenter)
|
|
|
|
self.label.setObjectName("label")
|
|
|
|
self.commandLinkButton = QtWidgets.QCommandLinkButton(self.centralwidget)
|
|
|
|
self.commandLinkButton.setGeometry(QtCore.QRect(110*scaleRate, 100*scaleRate, 180*scaleRate, 60*scaleRate))
|
|
|
|
font = QtGui.QFont()
|
|
|
|
font.setFamily("Segoe UI")
|
|
|
|
font.setPointSize(10)
|
|
|
|
font.setStyleStrategy(QtGui.QFont.PreferDefault)
|
|
|
|
self.commandLinkButton.setFont(font)
|
|
|
|
self.commandLinkButton.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
|
|
|
|
self.commandLinkButton.setCheckable(False)
|
|
|
|
self.commandLinkButton.setChecked(False)
|
|
|
|
self.commandLinkButton.setObjectName("commandLinkButton")
|
|
|
|
MainWindow.setCentralWidget(self.centralwidget)
|
|
|
|
self.statusbar = QtWidgets.QStatusBar(MainWindow)
|
|
|
|
self.statusbar.setObjectName("statusbar")
|
|
|
|
MainWindow.setStatusBar(self.statusbar)
|
|
|
|
|
|
|
|
self.retranslateUi(MainWindow)
|
|
|
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
|
|
|
|
|
|
|
def retranslateUi(self, MainWindow):
|
|
|
|
_translate = QtCore.QCoreApplication.translate
|
|
|
|
MainWindow.setWindowTitle(_translate("MainWindow", "ncm转换器"))
|
|
|
|
self.label.setText(_translate("MainWindow", "请选择需要转换的文件"))
|
|
|
|
self.commandLinkButton.setText(_translate("MainWindow", "选择文件"))
|
|
|
|
self.commandLinkButton.setDescription(_translate("MainWindow", "可一次选择多个文件"))
|