BTSearcher/window.py
2018-04-22 18:48:48 +08:00

70 lines
3.3 KiB
Python

# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file './qt/mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.10
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(750, 600)
MainWindow.setMinimumSize(QtCore.QSize(750, 600))
MainWindow.setMaximumSize(QtCore.QSize(750, 600))
self.centralWidget = QtWidgets.QWidget(MainWindow)
self.centralWidget.setObjectName("centralWidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralWidget)
self.gridLayout.setContentsMargins(11, 11, 11, 11)
self.gridLayout.setSpacing(6)
self.gridLayout.setObjectName("gridLayout")
self.tb_result = QtWidgets.QTableWidget(self.centralWidget)
self.tb_result.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
self.tb_result.setProperty("showDropIndicator", False)
self.tb_result.setDragDropOverwriteMode(False)
self.tb_result.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
self.tb_result.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
self.tb_result.setObjectName("tb_result")
self.tb_result.setColumnCount(3)
self.tb_result.setRowCount(0)
item = QtWidgets.QTableWidgetItem()
self.tb_result.setHorizontalHeaderItem(0, item)
item = QtWidgets.QTableWidgetItem()
self.tb_result.setHorizontalHeaderItem(1, item)
item = QtWidgets.QTableWidgetItem()
self.tb_result.setHorizontalHeaderItem(2, item)
self.gridLayout.addWidget(self.tb_result, 1, 0, 1, 3)
self.btn_search = QtWidgets.QPushButton(self.centralWidget)
self.btn_search.setObjectName("btn_search")
self.gridLayout.addWidget(self.btn_search, 0, 1, 1, 1)
self.ln_key = QtWidgets.QLineEdit(self.centralWidget)
self.ln_key.setObjectName("ln_key")
self.gridLayout.addWidget(self.ln_key, 0, 2, 1, 1)
self.cb_source = QtWidgets.QComboBox(self.centralWidget)
self.cb_source.setObjectName("cb_source")
self.gridLayout.addWidget(self.cb_source, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralWidget)
self.state = QtWidgets.QStatusBar(MainWindow)
self.state.setObjectName("state")
MainWindow.setStatusBar(self.state)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
MainWindow.setTabOrder(self.cb_source, self.btn_search)
MainWindow.setTabOrder(self.btn_search, self.ln_key)
MainWindow.setTabOrder(self.ln_key, self.tb_result)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "BTSearcher"))
item = self.tb_result.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "热度"))
item = self.tb_result.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "大小"))
item = self.tb_result.horizontalHeaderItem(2)
item.setText(_translate("MainWindow", "文件名"))
self.btn_search.setText(_translate("MainWindow", "Search"))