加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Ui_OPN.py 3.21 KB
一键复制 编辑 原始数据 按行查看 历史
小菜鸟真懒 提交于 2016-01-15 16:35 . init pj
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'D:\pr_python\OPN\OPN.ui'
#
# Created: Thu Jul 02 16:44:43 2015
# by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(674, 329)
self.centralWidget = QtGui.QWidget(MainWindow)
self.centralWidget.setObjectName(_fromUtf8("centralWidget"))
self.gridLayout = QtGui.QGridLayout(self.centralWidget)
self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
self.quickRefreshBtn = QtGui.QPushButton(self.centralWidget)
self.quickRefreshBtn.setObjectName(_fromUtf8("quickRefreshBtn"))
self.gridLayout.addWidget(self.quickRefreshBtn, 0, 4, 1, 1)
self.refreshAllBtn = QtGui.QPushButton(self.centralWidget)
self.refreshAllBtn.setObjectName(_fromUtf8("refreshAllBtn"))
self.gridLayout.addWidget(self.refreshAllBtn, 0, 5, 1, 1)
self.keyEdit = QtGui.QLineEdit(self.centralWidget)
self.keyEdit.setObjectName(_fromUtf8("keyEdit"))
self.gridLayout.addWidget(self.keyEdit, 0, 1, 1, 1)
self.searchKeyBtn = QtGui.QPushButton(self.centralWidget)
self.searchKeyBtn.setObjectName(_fromUtf8("searchKeyBtn"))
self.gridLayout.addWidget(self.searchKeyBtn, 0, 2, 1, 1)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.gridLayout.addItem(spacerItem, 0, 3, 1, 1)
self.label = QtGui.QLabel(self.centralWidget)
self.label.setObjectName(_fromUtf8("label"))
self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
self.srView = QtGui.QTableView(self.centralWidget)
self.srView.setObjectName(_fromUtf8("srView"))
self.gridLayout.addWidget(self.srView, 1, 0, 1, 6)
MainWindow.setCentralWidget(self.centralWidget)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "笔记搜索工具", None))
self.quickRefreshBtn.setText(_translate("MainWindow", "快速刷新", None))
self.refreshAllBtn.setText(_translate("MainWindow", "全部刷新", None))
self.searchKeyBtn.setText(_translate("MainWindow", "搜索", None))
self.label.setText(_translate("MainWindow", "关键词:", None))
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
MainWindow = QtGui.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化