88 lines
4 KiB
Python
88 lines
4 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Form implementation generated from reading ui file 'ui.ui'
|
|
#
|
|
# Created: Wed Mar 23 07:34:11 2016
|
|
# by: PyQt4 UI code generator 4.10.4
|
|
#
|
|
# 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(478, 408)
|
|
self.centralwidget = QtGui.QWidget(MainWindow)
|
|
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
|
|
self.textEdit = QtGui.QTextEdit(self.centralwidget)
|
|
self.textEdit.setGeometry(QtCore.QRect(90, 20, 301, 21))
|
|
self.textEdit.setObjectName(_fromUtf8("textEdit"))
|
|
self.label = QtGui.QLabel(self.centralwidget)
|
|
self.label.setGeometry(QtCore.QRect(10, 20, 66, 15))
|
|
self.label.setObjectName(_fromUtf8("label"))
|
|
self.pushButton = QtGui.QPushButton(self.centralwidget)
|
|
self.pushButton.setGeometry(QtCore.QRect(400, 20, 61, 26))
|
|
self.pushButton.setObjectName(_fromUtf8("pushButton"))
|
|
self.pushButton_2 = QtGui.QPushButton(self.centralwidget)
|
|
self.pushButton_2.setGeometry(QtCore.QRect(400, 60, 61, 26))
|
|
self.pushButton_2.setObjectName(_fromUtf8("pushButton_2"))
|
|
self.label_2 = QtGui.QLabel(self.centralwidget)
|
|
self.label_2.setGeometry(QtCore.QRect(30, 110, 421, 211))
|
|
self.label_2.setTextFormat(QtCore.Qt.AutoText)
|
|
self.label_2.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
|
|
self.label_2.setMargin(-2)
|
|
self.label_2.setTextInteractionFlags(QtCore.Qt.LinksAccessibleByKeyboard|QtCore.Qt.LinksAccessibleByMouse|QtCore.Qt.TextBrowserInteraction|QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
|
|
self.label_2.setObjectName(_fromUtf8("label_2"))
|
|
MainWindow.setCentralWidget(self.centralwidget)
|
|
self.menubar = QtGui.QMenuBar(MainWindow)
|
|
self.menubar.setGeometry(QtCore.QRect(0, 0, 478, 21))
|
|
self.menubar.setObjectName(_fromUtf8("menubar"))
|
|
self.menu_Help = QtGui.QMenu(self.menubar)
|
|
self.menu_Help.setObjectName(_fromUtf8("menu_Help"))
|
|
MainWindow.setMenuBar(self.menubar)
|
|
self.statusbar = QtGui.QStatusBar(MainWindow)
|
|
self.statusbar.setObjectName(_fromUtf8("statusbar"))
|
|
MainWindow.setStatusBar(self.statusbar)
|
|
self.action_About = QtGui.QAction(MainWindow)
|
|
self.action_About.setObjectName(_fromUtf8("action_About"))
|
|
self.menu_Help.addAction(self.action_About)
|
|
self.menubar.addAction(self.menu_Help.menuAction())
|
|
|
|
self.retranslateUi(MainWindow)
|
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
|
|
|
def retranslateUi(self, MainWindow):
|
|
MainWindow.setWindowTitle(_translate("MainWindow", "findarray30code - 行列30查碼", None))
|
|
self.label.setText(_translate("MainWindow", "輸入文字", None))
|
|
self.pushButton.setText(_translate("MainWindow", "查詢", None))
|
|
self.pushButton_2.setText(_translate("MainWindow", "清空", None))
|
|
self.label_2.setText(_translate("MainWindow", "<html><head/><body><p>您查詢的行列碼為:\n"
|
|
"<table style=\"vertical-align:top;\">\n"
|
|
"<tr>\n"
|
|
"<td><span style=\" font-size:18pt;\">越</span></td>\n"
|
|
"<td >4^3v1^2v<br/>4^1^</td>\n"
|
|
"</tr>\n"
|
|
"<tr>\n"
|
|
"<td><span style=\" font-size:18pt;\">的</span></td>\n"
|
|
"<td >9-0^9-6-<br/>5^</td>\n"
|
|
"</tr>\n"
|
|
"</table>\n"
|
|
"</html>", None))
|
|
self.menu_Help.setTitle(_translate("MainWindow", "&Help", None))
|
|
self.action_About.setText(_translate("MainWindow", "&About...", None))
|
|
|