GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — wibu/QAboutDialog.py at main · dogkill/wibu Expand file tree/ Copy pathQAboutDialog.pyMore file actions 64 lines (55 loc) · 2.87 KB / Copy pathQAboutDialog.pyFile metadata and controls64 lines (55 loc) · 2.87 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'res\about.ui' # # Created by: PyQt5 UI code generator 5.15.8 # # 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_Dialog_about(object): def setupUi(self, Dialog_about): Dialog_about.setObjectName("Dialog_about") Dialog_about.resize(400, 299) self.verticalLayout = QtWidgets.QVBoxLayout(Dialog_about) self.verticalLayout.setObjectName("verticalLayout") self.label = QtWidgets.QLabel(Dialog_about) font = QtGui.QFont() font.setPointSize(10) self.label.setFont(font) self.label.setAlignment(QtCore.Qt.AlignCenter) self.label.setObjectName("label") self.verticalLayout.addWidget(self.label) self.version = QtWidgets.QLabel(Dialog_about) self.version.setText("") self.version.setAlignment(QtCore.Qt.AlignCenter) self.version.setObjectName("version") self.verticalLayout.addWidget(self.version) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.pushButton = QtWidgets.QPushButton(Dialog_about) self.pushButton.setObjectName("pushButton") self.horizontalLayout.addWidget(self.pushButton) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred) self.verticalLayout.addItem(spacerItem2) self.retranslateUi(Dialog_about) self.pushButton.clicked.connect(Dialog_about.close) # type: ignore QtCore.QMetaObject.connectSlotsByName(Dialog_about) def retranslateUi(self, Dialog_about): _translate = QtCore.QCoreApplication.translate Dialog_about.setWindowTitle(_translate("Dialog_about", "关于")) self.label.setText(_translate("Dialog_about", "仅用于学习交流,严禁用作商业用途,造成任何法律问题本人概不承担。")) self.pushButton.setText(_translate("Dialog_about", "确定")) class QAboutDialog(QtWidgets.QDialog, Ui_Dialog_about): def __init__(self, config, parent=None): super().__init__(parent) self.setupUi(self) self.config = config self.setWindowModality(QtCore.Qt.ApplicationModal) def show(self): version = self.config.value("version") self.version.setText(version) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |