2 Commit-ok 538380a460 ... 531b369d7a

Szerző SHA1 Üzenet Dátum
  pingyang 531b369d7a 作业 1 éve
  pingyang 56d89898d7 作业 1 éve
3 módosított fájl, 81 hozzáadás és 0 törlés
  1. 4 0
      main.py
  2. 67 0
      monitor.ui
  3. 10 0
      monitor_ui.py

+ 4 - 0
main.py

@@ -0,0 +1,4 @@
+# pyuic5 -o monitor_ui.py monitor.ui
+# -o表示输出
+#monitor.ui我们设计的界面文件,这个文件只能翻译以后使用。
+#pyuic5是一个把ui文件翻译成py文件的工具

+ 67 - 0
monitor.ui

@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>Dialog</class>
+ <widget class="QDialog" name="Dialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>400</width>
+    <height>300</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>智能交通监控系统</string>
+  </property>
+  <property name="styleSheet">
+   <string notr="true">border-width:1px;
+border-style:solid;
+border-color:white;
+border-radius:10px;</string>
+  </property>
+  <widget class="QLabel" name="label">
+   <property name="geometry">
+    <rect>
+     <x>90</x>
+     <y>20</y>
+     <width>191</width>
+     <height>171</height>
+    </rect>
+   </property>
+   <property name="styleSheet">
+    <string notr="true">border-width:1px;
+border-style:solid;
+border-color:blue;
+border-radius:10px;</string>
+   </property>
+   <property name="text">
+    <string>视频显示区</string>
+   </property>
+  </widget>
+  <widget class="QPushButton" name="pushButton">
+   <property name="geometry">
+    <rect>
+     <x>80</x>
+     <y>202</y>
+     <width>75</width>
+     <height>41</height>
+    </rect>
+   </property>
+   <property name="styleSheet">
+    <string notr="true">border-width:1px;
+border-style:solid;
+border-radius:10px;
+border-top-color:#ffffff;
+border-left-color:#ffffff;
+border-bottom-color:#888888;
+border-right-color:#bbbbbb;
+</string>
+   </property>
+   <property name="text">
+    <string>处理视频</string>
+   </property>
+  </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

+ 10 - 0
monitor_ui.py

@@ -0,0 +1,10 @@
+# -*- coding: utf-8 -*-
+
+# Form implementation generated from reading ui file 'monitor.ui'
+#
+# Created by: PyQt5 UI code generator 5.15.9
+#
+# WARNING: Any manual changes made to this file will be lost when pyuic5 is
+# run again.  Do not edit this file unless you know what you are doing.
+
+