mirror of
https://github.com/pythonguis/pythonguis-examples.git
synced 2025-01-27 17:02:56 +08:00
584 lines
15 KiB
XML
584 lines
15 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>MainWindow</class>
|
|
<widget class="QMainWindow" name="MainWindow">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>484</width>
|
|
<height>433</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Calculon</string>
|
|
</property>
|
|
<widget class="QWidget" name="centralWidget">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Maximum" vsizetype="Maximum">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QLCDNumber" name="lcdNumber">
|
|
<property name="digitCount">
|
|
<number>10</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="3" column="0">
|
|
<widget class="QPushButton" name="pushButton_n4">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #1976D2;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>4</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>4</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QPushButton" name="pushButton_n1">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #1976D2;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>1</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>1</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QPushButton" name="pushButton_n8">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #1976D2;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>8</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>8</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="3">
|
|
<widget class="QPushButton" name="pushButton_mul">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>50</weight>
|
|
<bold>false</bold>
|
|
</font>
|
|
</property>
|
|
<property name="text">
|
|
<string>x</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>*</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QPushButton" name="pushButton_n7">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #1976D2;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>7</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>7</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="2">
|
|
<widget class="QPushButton" name="pushButton_n6">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #1976D2;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>6</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>6</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QPushButton" name="pushButton_n5">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #1976D2;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>5</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>5</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="0">
|
|
<widget class="QPushButton" name="pushButton_n0">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #1976D2;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>0</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>0</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="QPushButton" name="pushButton_n2">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #1976D2;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>2</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>2</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="2">
|
|
<widget class="QPushButton" name="pushButton_n9">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #1976D2;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>9</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>9</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="2">
|
|
<widget class="QPushButton" name="pushButton_n3">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #1976D2;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>3</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>3</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="3">
|
|
<widget class="QPushButton" name="pushButton_div">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>50</weight>
|
|
<bold>false</bold>
|
|
</font>
|
|
</property>
|
|
<property name="text">
|
|
<string>÷</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>/</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="3">
|
|
<widget class="QPushButton" name="pushButton_sub">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>50</weight>
|
|
<bold>false</bold>
|
|
</font>
|
|
</property>
|
|
<property name="text">
|
|
<string>-</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>-</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="3">
|
|
<widget class="QPushButton" name="pushButton_add">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>50</weight>
|
|
<bold>false</bold>
|
|
</font>
|
|
</property>
|
|
<property name="text">
|
|
<string>+</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>+</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QPushButton" name="pushButton_ac">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>50</weight>
|
|
<bold>false</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #f44336;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>AC</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Esc</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="2">
|
|
<widget class="QPushButton" name="pushButton_mr">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>50</weight>
|
|
<bold>false</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #FFC107;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>MR</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>R</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QPushButton" name="pushButton_m">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>50</weight>
|
|
<bold>false</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #FFC107;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>M</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>M</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="1">
|
|
<widget class="QPushButton" name="pushButton_pc">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>50</weight>
|
|
<bold>false</bold>
|
|
</font>
|
|
</property>
|
|
<property name="text">
|
|
<string>%</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>%</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="2" colspan="2">
|
|
<widget class="QPushButton" name="pushButton_eq">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>27</pointsize>
|
|
<weight>75</weight>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true">QPushButton {
|
|
color: #4CAF50;
|
|
}</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>=</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Return</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QMenuBar" name="menuBar">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>484</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<widget class="QMenu" name="menuFIle">
|
|
<property name="title">
|
|
<string>FIle</string>
|
|
</property>
|
|
<addaction name="actionReset"/>
|
|
<addaction name="actionExit"/>
|
|
</widget>
|
|
<addaction name="menuFIle"/>
|
|
</widget>
|
|
<widget class="QStatusBar" name="statusBar"/>
|
|
<action name="actionExit">
|
|
<property name="text">
|
|
<string>Exit</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+Q</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionReset">
|
|
<property name="text">
|
|
<string>Reset</string>
|
|
</property>
|
|
<property name="shortcut">
|
|
<string>Ctrl+R</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<layoutdefault spacing="6" margin="11"/>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|