-
Notifications
You must be signed in to change notification settings - Fork 9
/
basic_ui.py
192 lines (182 loc) · 9.45 KB
/
basic_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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui\basic.ui'
#
# Created by: PyQt4 UI code generator 4.11.4
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
try:
_encoding = QtGui.QApplication.UnicodeUTF8
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig, _encoding)
except AttributeError:
def _translate(context, text, disambig):
return QtGui.QApplication.translate(context, text, disambig)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName(_fromUtf8("MainWindow"))
MainWindow.resize(792, 600)
self.centralwidget = QtGui.QWidget(MainWindow)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.videoPlayer = phonon.Phonon.VideoPlayer(self.centralwidget)
self.videoPlayer.setGeometry(QtCore.QRect(281, 11, 439, 281))
self.videoPlayer.setStyleSheet(_fromUtf8("background-color: rgba(0, 0, 0, 100)"))
self.videoPlayer.setObjectName(_fromUtf8("videoPlayer"))
self.seekSlider = phonon.Phonon.SeekSlider(self.centralwidget)
self.seekSlider.setGeometry(QtCore.QRect(280, 330, 441, 20))
self.seekSlider.setStyleSheet(_fromUtf8("background-color: rgba(255, 255, 255, 0)"))
self.seekSlider.setObjectName(_fromUtf8("seekSlider"))
self.volumeSlider = phonon.Phonon.VolumeSlider(self.centralwidget)
self.volumeSlider.setGeometry(QtCore.QRect(610, 300, 109, 21))
self.volumeSlider.setStyleSheet(_fromUtf8("background-color: rgba(255, 255, 255, 0)"))
self.volumeSlider.setObjectName(_fromUtf8("volumeSlider"))
self.layoutWidget = QtGui.QWidget(self.centralwidget)
self.layoutWidget.setGeometry(QtCore.QRect(290, 350, 401, 101))
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
self.horizontalLayout = QtGui.QHBoxLayout(self.layoutWidget)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.playButton = QtGui.QPushButton(self.layoutWidget)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.playButton.setFont(font)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/play/Hopstarter-Button-Button-Play.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.playButton.setIcon(icon)
self.playButton.setObjectName(_fromUtf8("playButton"))
self.horizontalLayout.addWidget(self.playButton)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.pauseButton = QtGui.QPushButton(self.layoutWidget)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.pauseButton.setFont(font)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/pause/Hopstarter-Button-Button-Pause.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.pauseButton.setIcon(icon1)
self.pauseButton.setObjectName(_fromUtf8("pauseButton"))
self.horizontalLayout.addWidget(self.pauseButton)
spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.stopButton = QtGui.QPushButton(self.layoutWidget)
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.stopButton.setFont(font)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/stop/Hopstarter-Button-Button-Stop.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.stopButton.setIcon(icon2)
self.stopButton.setObjectName(_fromUtf8("stopButton"))
self.horizontalLayout.addWidget(self.stopButton)
self.bannerBox = QtGui.QGroupBox(self.centralwidget)
self.bannerBox.setGeometry(QtCore.QRect(30, 160, 221, 231))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
font.setPointSize(9)
self.bannerBox.setFont(font)
self.bannerBox.setObjectName(_fromUtf8("bannerBox"))
self.endTimeWidget = QtGui.QTimeEdit(self.bannerBox)
self.endTimeWidget.setGeometry(QtCore.QRect(10, 190, 121, 21))
self.endTimeWidget.setObjectName(_fromUtf8("endTimeWidget"))
self.startTimeLabel = QtGui.QLabel(self.bannerBox)
self.startTimeLabel.setGeometry(QtCore.QRect(10, 50, 71, 16))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.startTimeLabel.setFont(font)
self.startTimeLabel.setObjectName(_fromUtf8("startTimeLabel"))
self.startTimeWidget = QtGui.QTimeEdit(self.bannerBox)
self.startTimeWidget.setGeometry(QtCore.QRect(10, 70, 121, 21))
self.startTimeWidget.setObjectName(_fromUtf8("startTimeWidget"))
self.startTimeLabel_2 = QtGui.QLabel(self.bannerBox)
self.startTimeLabel_2.setGeometry(QtCore.QRect(10, 170, 61, 16))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.startTimeLabel_2.setFont(font)
self.startTimeLabel_2.setObjectName(_fromUtf8("startTimeLabel_2"))
self.endTimeWidget.raise_()
self.startTimeLabel.raise_()
self.startTimeWidget.raise_()
self.startTimeLabel_2.raise_()
self.progressBox = QtGui.QGroupBox(self.centralwidget)
self.progressBox.setGeometry(QtCore.QRect(10, 430, 161, 101))
self.progressBox.setObjectName(_fromUtf8("progressBox"))
self.nextLabel = QtGui.QLabel(self.progressBox)
self.nextLabel.setGeometry(QtCore.QRect(10, 10, 81, 31))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
font.setPointSize(10)
font.setBold(False)
font.setItalic(False)
font.setUnderline(True)
font.setWeight(50)
self.nextLabel.setFont(font)
self.nextLabel.setAutoFillBackground(False)
self.nextLabel.setObjectName(_fromUtf8("nextLabel"))
self.nextBtn = QtGui.QPushButton(self.progressBox)
self.nextBtn.setGeometry(QtCore.QRect(10, 40, 141, 51))
font = QtGui.QFont()
font.setFamily(_fromUtf8("Arial"))
self.nextBtn.setFont(font)
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/next/Hopstarter-Button-Button-Next.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.nextBtn.setIcon(icon3)
self.nextBtn.setFlat(False)
self.nextBtn.setObjectName(_fromUtf8("nextBtn"))
self.picLabel = QtGui.QLabel(self.centralwidget)
self.picLabel.setGeometry(QtCore.QRect(-40, -60, 211, 221))
self.picLabel.setText(_fromUtf8(""))
self.picLabel.setPixmap(QtGui.QPixmap(_fromUtf8(":/camera/HDRCameraApp_trans.png")))
self.picLabel.setScaledContents(True)
self.picLabel.setObjectName(_fromUtf8("picLabel"))
self.bannerPic = QtGui.QLabel(self.centralwidget)
self.bannerPic.setGeometry(QtCore.QRect(200, 140, 51, 51))
self.bannerPic.setText(_fromUtf8(""))
self.bannerPic.setPixmap(QtGui.QPixmap(_fromUtf8(":/time/Designbolts-Free-Multimedia-Film.ico")))
self.bannerPic.setScaledContents(True)
self.bannerPic.setObjectName(_fromUtf8("bannerPic"))
self.picLabel.raise_()
self.bannerBox.raise_()
self.videoPlayer.raise_()
self.seekSlider.raise_()
self.volumeSlider.raise_()
self.layoutWidget.raise_()
self.progressBox.raise_()
self.bannerPic.raise_()
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtGui.QStatusBar(MainWindow)
self.statusbar.setObjectName(_fromUtf8("statusbar"))
MainWindow.setStatusBar(self.statusbar)
self.actionOpen = QtGui.QAction(MainWindow)
self.actionOpen.setObjectName(_fromUtf8("actionOpen"))
self.actionExit = QtGui.QAction(MainWindow)
self.actionExit.setObjectName(_fromUtf8("actionExit"))
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(_translate("MainWindow", "Video Venom", None))
self.playButton.setText(_translate("MainWindow", "Play/Open", None))
self.pauseButton.setText(_translate("MainWindow", "Pause", None))
self.stopButton.setText(_translate("MainWindow", "Stop", None))
self.bannerBox.setTitle(_translate("MainWindow", "Banner timing", None))
self.endTimeWidget.setDisplayFormat(_translate("MainWindow", "h:mm:ss", None))
self.startTimeLabel.setText(_translate("MainWindow", "Start Time", None))
self.startTimeWidget.setDisplayFormat(_translate("MainWindow", "h:mm:ss", None))
self.startTimeLabel_2.setText(_translate("MainWindow", "End Time", None))
self.progressBox.setTitle(_translate("MainWindow", "Step 1/5", None))
self.nextLabel.setText(_translate("MainWindow", "Next", None))
self.nextBtn.setText(_translate("MainWindow", "Select a banner", None))
self.actionOpen.setText(_translate("MainWindow", "Open", None))
self.actionExit.setText(_translate("MainWindow", "Exit", None))
from PyQt4 import phonon
import icons_rc
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
MainWindow = QtGui.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())