-
Notifications
You must be signed in to change notification settings - Fork 3
/
ui_snapshot.py
105 lines (97 loc) · 5.32 KB
/
ui_snapshot.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'snapshot.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(609, 519)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.centralwidget)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.dateTimeEdit = QtWidgets.QDateTimeEdit(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.dateTimeEdit.sizePolicy().hasHeightForWidth())
self.dateTimeEdit.setSizePolicy(sizePolicy)
font = QtGui.QFont()
font.setPointSize(12)
self.dateTimeEdit.setFont(font)
self.dateTimeEdit.setObjectName("dateTimeEdit")
self.horizontalLayout.addWidget(self.dateTimeEdit)
self.pushButton_previous = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_previous.setObjectName("pushButton_previous")
self.horizontalLayout.addWidget(self.pushButton_previous)
self.pushButton_next = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_next.setObjectName("pushButton_next")
self.horizontalLayout.addWidget(self.pushButton_next)
self.pushButton_minus = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_minus.setObjectName("pushButton_minus")
self.horizontalLayout.addWidget(self.pushButton_minus)
self.pushButton_plus = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_plus.setObjectName("pushButton_plus")
self.horizontalLayout.addWidget(self.pushButton_plus)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.verticalLayout.addLayout(self.horizontalLayout)
self.Bild = QtWidgets.QLabel(self.centralwidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.Bild.sizePolicy().hasHeightForWidth())
self.Bild.setSizePolicy(sizePolicy)
self.Bild.setObjectName("Bild")
self.verticalLayout.addWidget(self.Bild)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
spacerItem1 = QtWidgets.QSpacerItem(408, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem1)
self.pushButton = QtWidgets.QPushButton(self.centralwidget)
self.pushButton.setObjectName("pushButton")
self.horizontalLayout_2.addWidget(self.pushButton)
self.pushButton_Video = QtWidgets.QPushButton(self.centralwidget)
self.pushButton_Video.setObjectName("pushButton_Video")
self.horizontalLayout_2.addWidget(self.pushButton_Video)
self.spinBox_hours = QtWidgets.QSpinBox(self.centralwidget)
self.spinBox_hours.setToolTip("")
self.spinBox_hours.setObjectName("spinBox_hours")
self.horizontalLayout_2.addWidget(self.spinBox_hours)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.horizontalLayout_3.addLayout(self.verticalLayout)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 609, 21))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.pushButton_previous.setText(_translate("MainWindow", "previous"))
self.pushButton_next.setText(_translate("MainWindow", "next"))
self.pushButton_minus.setText(_translate("MainWindow", "-8"))
self.pushButton_plus.setText(_translate("MainWindow", "+8"))
self.Bild.setText(_translate("MainWindow", "TextLabel"))
self.pushButton.setText(_translate("MainWindow", "Test"))
self.pushButton_Video.setText(_translate("MainWindow", "Make Video"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())