21 Star 136 Fork 48

汤远道 / PyQt5_Arduino

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
UpperComputer.ui 23.57 KB
一键复制 编辑 原始数据 按行查看 历史
汤远道 提交于 2019-09-22 16:27 . PyQt5上位机源码
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985
<?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>1361</width>
<height>767</height>
</rect>
</property>
<property name="font">
<font>
<family>隶书</family>
<pointsize>11</pointsize>
</font>
</property>
<property name="cursor">
<cursorShape>UpArrowCursor</cursorShape>
</property>
<property name="windowTitle">
<string>机械臂上位机</string>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="QGroupBox" name="groupBox">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>921</width>
<height>61</height>
</rect>
</property>
<property name="cursor">
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="contextMenuPolicy">
<enum>Qt::DefaultContextMenu</enum>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="title">
<string/>
</property>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>20</x>
<y>20</y>
<width>48</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>端口号:</string>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>390</x>
<y>20</y>
<width>48</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>波特率:</string>
</property>
</widget>
<widget class="QComboBox" name="comboBox">
<property name="geometry">
<rect>
<x>460</x>
<y>20</y>
<width>131</width>
<height>20</height>
</rect>
</property>
<property name="currentText">
<string>9600</string>
</property>
<item>
<property name="text">
<string>9600</string>
</property>
</item>
<item>
<property name="text">
<string>300</string>
</property>
</item>
<item>
<property name="text">
<string>1200</string>
</property>
</item>
<item>
<property name="text">
<string>2400</string>
</property>
</item>
<item>
<property name="text">
<string>4800</string>
</property>
</item>
<item>
<property name="text">
<string>19200</string>
</property>
</item>
<item>
<property name="text">
<string>38400</string>
</property>
</item>
<item>
<property name="text">
<string>57600</string>
</property>
</item>
<item>
<property name="text">
<string>74880</string>
</property>
</item>
<item>
<property name="text">
<string>115200</string>
</property>
</item>
<item>
<property name="text">
<string>230400</string>
</property>
</item>
<item>
<property name="text">
<string>250000</string>
</property>
</item>
</widget>
<widget class="QComboBox" name="comboBox_2">
<property name="geometry">
<rect>
<x>80</x>
<y>20</y>
<width>131</width>
<height>20</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="pushButton">
<property name="geometry">
<rect>
<x>220</x>
<y>20</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>扫描</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_2">
<property name="geometry">
<rect>
<x>630</x>
<y>20</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>打开串口</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_18">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>720</x>
<y>20</y>
<width>75</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>关闭串口</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_2">
<property name="geometry">
<rect>
<x>30</x>
<y>90</y>
<width>321</width>
<height>631</height>
</rect>
</property>
<property name="title">
<string>精确定位</string>
</property>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>20</x>
<y>30</y>
<width>271</width>
<height>21</height>
</rect>
</property>
<property name="text">
<string>此区域按钮可控制各部分舵机每次运动一定角度</string>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>10</x>
<y>60</y>
<width>71</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>底座舵机</string>
</property>
</widget>
<widget class="QLabel" name="label_5">
<property name="geometry">
<rect>
<x>20</x>
<y>150</y>
<width>71</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>左舵机</string>
</property>
</widget>
<widget class="QLabel" name="label_6">
<property name="geometry">
<rect>
<x>20</x>
<y>250</y>
<width>54</width>
<height>12</height>
</rect>
</property>
<property name="text">
<string>右舵机</string>
</property>
</widget>
<widget class="QLabel" name="label_7">
<property name="geometry">
<rect>
<x>10</x>
<y>340</y>
<width>71</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>爪子舵机</string>
</property>
</widget>
<widget class="QLabel" name="label_8">
<property name="geometry">
<rect>
<x>20</x>
<y>420</y>
<width>54</width>
<height>12</height>
</rect>
</property>
<property name="text">
<string>下部</string>
</property>
</widget>
<widget class="QLabel" name="label_9">
<property name="geometry">
<rect>
<x>20</x>
<y>510</y>
<width>54</width>
<height>12</height>
</rect>
</property>
<property name="text">
<string>转盘</string>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>80</x>
<y>100</y>
<width>231</width>
<height>22</height>
</rect>
</property>
<property name="maximum">
<number>180</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_2">
<property name="geometry">
<rect>
<x>10</x>
<y>190</y>
<width>51</width>
<height>41</height>
</rect>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider_2">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>80</x>
<y>200</y>
<width>231</width>
<height>22</height>
</rect>
</property>
<property name="maximum">
<number>180</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_3">
<property name="geometry">
<rect>
<x>10</x>
<y>280</y>
<width>51</width>
<height>41</height>
</rect>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider_3">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>80</x>
<y>290</y>
<width>231</width>
<height>22</height>
</rect>
</property>
<property name="maximum">
<number>180</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_4">
<property name="geometry">
<rect>
<x>10</x>
<y>370</y>
<width>51</width>
<height>41</height>
</rect>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider_4">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>80</x>
<y>380</y>
<width>231</width>
<height>22</height>
</rect>
</property>
<property name="maximum">
<number>180</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_5">
<property name="geometry">
<rect>
<x>10</x>
<y>450</y>
<width>51</width>
<height>41</height>
</rect>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider_5">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>80</x>
<y>460</y>
<width>231</width>
<height>22</height>
</rect>
</property>
<property name="maximum">
<number>180</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_6">
<property name="geometry">
<rect>
<x>10</x>
<y>540</y>
<width>51</width>
<height>41</height>
</rect>
</property>
</widget>
<widget class="QSlider" name="horizontalSlider_6">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>80</x>
<y>550</y>
<width>231</width>
<height>22</height>
</rect>
</property>
<property name="maximum">
<number>180</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_10">
<property name="geometry">
<rect>
<x>10</x>
<y>90</y>
<width>51</width>
<height>41</height>
</rect>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_3">
<property name="geometry">
<rect>
<x>370</x>
<y>90</y>
<width>711</width>
<height>191</height>
</rect>
</property>
<property name="title">
<string>组合控制</string>
</property>
<widget class="QLabel" name="label_10">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>391</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>此区域按钮可启动各部位舵机进行一些组合运动</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_3">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>30</x>
<y>50</y>
<width>111</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>顺时针抓取</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_4">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>30</x>
<y>120</y>
<width>111</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>恢复初始设置</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_5">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>150</x>
<y>50</y>
<width>111</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>逆时针抓取</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_6">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>280</x>
<y>50</y>
<width>111</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>垂直直线平移</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_7">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>420</x>
<y>50</y>
<width>91</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>机械臂画方</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_8">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>150</x>
<y>120</y>
<width>111</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>自动模式</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_9">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>280</x>
<y>120</y>
<width>111</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>水平直线平移</string>
</property>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_4">
<property name="geometry">
<rect>
<x>370</x>
<y>290</y>
<width>711</width>
<height>431</height>
</rect>
</property>
<property name="title">
<string>组合动作</string>
</property>
<widget class="QPushButton" name="pushButton_10">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>40</x>
<y>300</y>
<width>91</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>添加动作</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_11">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>230</x>
<y>300</y>
<width>91</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>删除动作</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_13">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>570</x>
<y>300</y>
<width>121</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>下载动作组</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_14">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>40</x>
<y>370</y>
<width>91</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>保存动作组</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_16">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>230</x>
<y>370</y>
<width>91</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>在线运行</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_17">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>570</x>
<y>370</y>
<width>121</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>运行下载动作组</string>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_7">
<property name="geometry">
<rect>
<x>30</x>
<y>20</y>
<width>661</width>
<height>261</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="pushButton_12">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>400</x>
<y>300</y>
<width>91</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>清除</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_15">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>400</x>
<y>370</y>
<width>91</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>打开动作组</string>
</property>
</widget>
</widget>
<widget class="QTextEdit" name="textEdit_8">
<property name="enabled">
<bool>true</bool>
</property>
<property name="geometry">
<rect>
<x>1100</x>
<y>100</y>
<width>231</width>
<height>291</height>
</rect>
</property>
<property name="mouseTracking">
<bool>false</bool>
</property>
<property name="tabletTracking">
<bool>false</bool>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAsNeeded</enum>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustIgnored</enum>
</property>
<property name="autoFormatting">
<set>QTextEdit::AutoNone</set>
</property>
<property name="tabChangesFocus">
<bool>false</bool>
</property>
<property name="overwriteMode">
<bool>false</bool>
</property>
</widget>
<widget class="QTextEdit" name="textEdit_9">
<property name="geometry">
<rect>
<x>1100</x>
<y>470</y>
<width>231</width>
<height>181</height>
</rect>
</property>
</widget>
<widget class="QPushButton" name="pushButton_19">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>1160</x>
<y>400</y>
<width>111</width>
<height>41</height>
</rect>
</property>
<property name="text">
<string>清除</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_20">
<property name="enabled">
<bool>false</bool>
</property>
<property name="geometry">
<rect>
<x>1160</x>
<y>660</y>
<width>111</width>
<height>41</height>
</rect>
</property>
<property name="text">
<string>发送</string>
</property>
</widget>
<widget class="QLabel" name="label_12">
<property name="geometry">
<rect>
<x>1100</x>
<y>80</y>
<width>48</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>接收区</string>
</property>
</widget>
<widget class="QLabel" name="label_13">
<property name="geometry">
<rect>
<x>1100</x>
<y>440</y>
<width>48</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>发送区</string>
</property>
</widget>
<widget class="QLabel" name="label_11">
<property name="geometry">
<rect>
<x>1100</x>
<y>20</y>
<width>191</width>
<height>31</height>
</rect>
</property>
<property name="text">
<string>Time</string>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
</widget>
<widget class="QLabel" name="label_14">
<property name="geometry">
<rect>
<x>990</x>
<y>30</y>
<width>48</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>Time:</string>
</property>
</widget>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1361</width>
<height>23</height>
</rect>
</property>
<widget class="QMenu" name="menu">
<property name="title">
<string>帮助</string>
</property>
<addaction name="actionAbout"/>
<addaction name="actionOperational_Manual"/>
<addaction name="actions"/>
</widget>
<widget class="QMenu" name="menu_2">
<property name="title">
<string/>
</property>
</widget>
<addaction name="menu"/>
<addaction name="menu_2"/>
</widget>
<action name="actionAbout">
<property name="text">
<string>关于我们</string>
</property>
</action>
<action name="actionOperational_Manual">
<property name="text">
<string>操作手册</string>
</property>
</action>
<action name="actions">
<property name="text">
<string>友情链接</string>
</property>
</action>
</widget>
<tabstops>
<tabstop>comboBox</tabstop>
<tabstop>comboBox_2</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>pushButton_19</sender>
<signal>clicked(bool)</signal>
<receiver>textEdit_8</receiver>
<slot>clear()</slot>
<hints>
<hint type="sourcelabel">
<x>1215</x>
<y>333</y>
</hint>
<hint type="destinationlabel">
<x>1215</x>
<y>213</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushButton_12</sender>
<signal>clicked(bool)</signal>
<receiver>textEdit_7</receiver>
<slot>clear()</slot>
<hints>
<hint type="sourcelabel">
<x>429</x>
<y>337</y>
</hint>
<hint type="destinationlabel">
<x>730</x>
<y>463</y>
</hint>
</hints>
</connection>
</connections>
</ui>
Python
1
https://gitee.com/tangbeida/PyQt_Arduino.git
git@gitee.com:tangbeida/PyQt_Arduino.git
tangbeida
PyQt_Arduino
PyQt5_Arduino
master

搜索帮助