-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathui.py
108 lines (101 loc) · 5.63 KB
/
ui.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'main.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(595, 197)
font = QtGui.QFont()
font.setFamily("Microsoft YaHei UI")
font.setPointSize(10)
MainWindow.setFont(font)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.label_2 = QtWidgets.QLabel(self.centralwidget)
self.label_2.setObjectName("label_2")
self.horizontalLayout.addWidget(self.label_2)
self.hostComboBox = QtWidgets.QComboBox(self.centralwidget)
self.hostComboBox.setMinimumSize(QtCore.QSize(150, 0))
self.hostComboBox.setCurrentText("")
self.hostComboBox.setMaxVisibleItems(9)
self.hostComboBox.setObjectName("hostComboBox")
self.horizontalLayout.addWidget(self.hostComboBox)
spacerItem = QtWidgets.QSpacerItem(48, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
self.portSpinBox = QtWidgets.QSpinBox(self.centralwidget)
self.portSpinBox.setMinimum(1)
self.portSpinBox.setMaximum(65536)
self.portSpinBox.setProperty("value", 3000)
self.portSpinBox.setObjectName("portSpinBox")
self.horizontalLayout.addWidget(self.portSpinBox)
self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label_3 = QtWidgets.QLabel(self.centralwidget)
self.label_3.setObjectName("label_3")
self.horizontalLayout_2.addWidget(self.label_3)
self.fileLineEdit = QtWidgets.QLineEdit(self.centralwidget)
self.fileLineEdit.setObjectName("fileLineEdit")
self.horizontalLayout_2.addWidget(self.fileLineEdit)
self.fileChooseBtn = QtWidgets.QPushButton(self.centralwidget)
self.fileChooseBtn.setObjectName("fileChooseBtn")
self.horizontalLayout_2.addWidget(self.fileChooseBtn)
self.gridLayout.addLayout(self.horizontalLayout_2, 1, 0, 1, 1)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label_4 = QtWidgets.QLabel(self.centralwidget)
self.label_4.setObjectName("label_4")
self.horizontalLayout_3.addWidget(self.label_4)
self.videoLineEdit = QtWidgets.QLineEdit(self.centralwidget)
self.videoLineEdit.setObjectName("videoLineEdit")
self.horizontalLayout_3.addWidget(self.videoLineEdit)
self.videoChooseBtn = QtWidgets.QPushButton(self.centralwidget)
self.videoChooseBtn.setObjectName("videoChooseBtn")
self.horizontalLayout_3.addWidget(self.videoChooseBtn)
self.gridLayout.addLayout(self.horizontalLayout_3, 2, 0, 1, 1)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
spacerItem1 = QtWidgets.QSpacerItem(178, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_4.addItem(spacerItem1)
self.aboutBtn = QtWidgets.QPushButton(self.centralwidget)
self.aboutBtn.setObjectName("aboutBtn")
self.horizontalLayout_4.addWidget(self.aboutBtn)
self.updateBtn = QtWidgets.QPushButton(self.centralwidget)
self.updateBtn.setObjectName("updateBtn")
self.horizontalLayout_4.addWidget(self.updateBtn)
self.startBtn = QtWidgets.QPushButton(self.centralwidget)
self.startBtn.setObjectName("startBtn")
self.horizontalLayout_4.addWidget(self.startBtn)
self.gridLayout.addLayout(self.horizontalLayout_4, 3, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.hostComboBox.setCurrentIndex(-1)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Go File 启动器"))
self.label_2.setText(_translate("MainWindow", "服务监听地址:"))
self.label.setText(_translate("MainWindow", "服务监听端口:"))
self.label_3.setText(_translate("MainWindow", "文件分享路径:"))
self.fileChooseBtn.setText(_translate("MainWindow", "选择路径"))
self.label_4.setText(_translate("MainWindow", "视频分享路径:"))
self.videoChooseBtn.setText(_translate("MainWindow", "选择路径"))
self.aboutBtn.setText(_translate("MainWindow", "关于"))
self.updateBtn.setText(_translate("MainWindow", "检查更新"))
self.startBtn.setText(_translate("MainWindow", "启动"))
import resource_rc