Python/pyqt5/CODE/Pyqt5/test_pyqt5_0712_ui.py
2024-04-19 19:54:41 +08:00

65 lines
3.2 KiB
Python

# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'test_pyqt5_0712_ui.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
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1100, 864)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.open_file_bt = QtWidgets.QPushButton(self.centralwidget)
self.open_file_bt.setMinimumSize(QtCore.QSize(91, 51))
self.open_file_bt.setMaximumSize(QtCore.QSize(131, 81))
self.open_file_bt.setObjectName("open_file_bt")
self.gridLayout.addWidget(self.open_file_bt, 0, 0, 1, 1)
self.view_1 = QtWidgets.QLabel(self.centralwidget)
self.view_1.setMinimumSize(QtCore.QSize(641, 491))
self.view_1.setObjectName("view_1")
self.gridLayout.addWidget(self.view_1, 0, 1, 2, 3)
spacerItem = QtWidgets.QSpacerItem(20, 736, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.gridLayout.addItem(spacerItem, 1, 0, 2, 1)
self.horizontalSlider = QtWidgets.QSlider(self.centralwidget)
self.horizontalSlider.setMinimumSize(QtCore.QSize(301, 22))
self.horizontalSlider.setMinimum(1)
self.horizontalSlider.setMaximum(255)
self.horizontalSlider.setOrientation(QtCore.Qt.Horizontal)
self.horizontalSlider.setObjectName("horizontalSlider")
self.gridLayout.addWidget(self.horizontalSlider, 2, 1, 1, 1)
self.horizontalSlider_text = QtWidgets.QTextEdit(self.centralwidget)
self.horizontalSlider_text.setMinimumSize(QtCore.QSize(156, 71))
self.horizontalSlider_text.setMaximumSize(QtCore.QSize(156, 71))
font = QtGui.QFont()
font.setFamily("Agency FB")
font.setPointSize(24)
self.horizontalSlider_text.setFont(font)
self.horizontalSlider_text.setLayoutDirection(QtCore.Qt.LeftToRight)
self.horizontalSlider_text.setObjectName("horizontalSlider_text")
self.gridLayout.addWidget(self.horizontalSlider_text, 2, 2, 1, 1)
spacerItem1 = QtWidgets.QSpacerItem(405, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem1, 2, 3, 1, 1)
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", "MainWindow"))
self.open_file_bt.setText(_translate("MainWindow", "選擇圖片"))
self.view_1.setText(_translate("MainWindow", "TextLabel"))