From 89802c479c330471e1453fb9e0f1814c6f93cec8 Mon Sep 17 00:00:00 2001 From: Gavin Date: Thu, 30 Mar 2017 10:10:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E5=B7=A5=E4=BD=9C=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=95=8C=E9=9D=A2=E8=AE=BE=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- calc.py | 23 ++++ calc.ui | 399 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 422 insertions(+) create mode 100644 calc.py create mode 100644 calc.ui diff --git a/calc.py b/calc.py new file mode 100644 index 0000000..b9ecbd5 --- /dev/null +++ b/calc.py @@ -0,0 +1,23 @@ +import sys +from PyQt5 import uic +from PyQt5.QtWidgets import QApplication +from PyQt5.QtWidgets import QMainWindow + +class Calc(QMainWindow): + def __init__(self): + QMainWindow.__init__(self) + uic.loadUi('calc.ui',self) + + + + +if __name__ == '__main__': + app = QApplication(sys.argv) + print help(QApplication) + calc = Calc() + calc.show() + app.exec_() + + + + diff --git a/calc.ui b/calc.ui new file mode 100644 index 0000000..5b653a6 --- /dev/null +++ b/calc.ui @@ -0,0 +1,399 @@ + + + MainWindow + + + + 0 + 0 + 250 + 250 + + + + + 50 + 50 + + + + + 250 + 250 + + + + + 250 + 250 + + + + 计算器 + + + + + + 0 + 150 + 41 + 41 + + + + + 15 + 75 + true + + + + 1 + + + + + + 50 + 150 + 41 + 41 + + + + + 15 + 75 + true + + + + 2 + + + + + + 100 + 150 + 41 + 41 + + + + + 15 + 75 + true + + + + 3 + + + + + + 0 + 100 + 41 + 41 + + + + + 15 + 75 + true + + + + 4 + + + + + + 50 + 100 + 41 + 41 + + + + + 15 + 75 + true + + + + 5 + + + + + + 100 + 100 + 41 + 41 + + + + + 15 + 75 + true + + + + 6 + + + + + + 0 + 50 + 41 + 41 + + + + + 15 + 75 + true + + + + 7 + + + + + + 50 + 50 + 41 + 41 + + + + + 15 + 75 + true + + + + 8 + + + + + + 100 + 50 + 41 + 41 + + + + + 15 + 75 + true + + + + 9 + + + + + + 100 + 200 + 41 + 41 + + + + + 15 + 75 + true + + + + . + + + + + + 150 + 50 + 41 + 41 + + + + + 15 + 75 + true + + + + + + + + + + + 150 + 100 + 41 + 41 + + + + + 15 + 75 + true + + + + - + + + + + + 150 + 150 + 41 + 41 + + + + + 15 + 75 + true + + + + * + + + + + + 150 + 200 + 41 + 41 + + + + + 15 + 75 + true + + + + / + + + + + + 200 + 50 + 41 + 41 + + + + + 15 + 75 + true + + + + C + + + + + + 200 + 100 + 41 + 141 + + + + + 15 + 75 + true + + + + = + + + + + + 0 + 200 + 91 + 41 + + + + + 15 + 75 + true + + + + 0 + + + + + false + + + + 0 + 0 + 241 + 41 + + + + + 15 + 75 + true + + + + + + + + -- Gitee