1 Star 0 Fork 0

yuxinvalo/Resume Finder

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
aboutdialog.py 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
Tearsyu 提交于 2021-09-14 11:43 . add city search
from PyQt5 import QtWidgets, QtCore
from PyQt5.QtWidgets import QDialog, QLabel, QGridLayout
from configs.strings import translate
class AboutDialog(QDialog):
def __init__(self, lang):
super().__init__()
self.setWindowTitle(translate['ABOUT'][lang])
self.resize(400, 300)
authorLabel = QLabel(make_font("Created by Tearsyu<[email protected]>"))
authorLabel.setAlignment(QtCore.Qt.AlignHCenter)
dateLabel = QLabel(make_font("Last Build Date: 2021/01/09"))
dateLabel.setAlignment(QtCore.Qt.AlignHCenter)
otherLabel = QLabel(make_font('This is a pyqt app to simplify local resume search.'))
otherLabel.setAlignment(QtCore.Qt.AlignHCenter)
self.buttons = QtWidgets.QDialogButtonBox(
QtWidgets.QDialogButtonBox.Ok | QtWidgets.QDialogButtonBox.Cancel)
layout = QGridLayout()
layout.addWidget(authorLabel, 0, 0)
layout.addWidget(dateLabel, 1, 0)
layout.addWidget(otherLabel, 2, 0)
layout.addWidget(self.buttons, 3, 0)
self.setLayout(layout)
self.buttons.accepted.connect(self.accept)
self.buttons.rejected.connect(self.reject)
def make_font(msg=''):
"""
To set font of text show in text
:param msg: message to show
:return: matched font
"""
return '<font size={} color="{}" face="{}"> {} </font>'.format(4, "black", "verdana", msg)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/lainyu/resume-finder.git
[email protected]:lainyu/resume-finder.git
lainyu
resume-finder
Resume Finder
main

搜索帮助