-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspectrogram.py
More file actions
51 lines (42 loc) · 1.96 KB
/
Copy pathspectrogram.py
File metadata and controls
51 lines (42 loc) · 1.96 KB
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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'spectrog.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# 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_OtherWindow(object):
def setupUi(self, OtherWindow):
OtherWindow.setObjectName("Spectrogram")
OtherWindow.resize(677, 482)
OtherWindow.setLayoutDirection(QtCore.Qt.LeftToRight)
OtherWindow.setStyleSheet("background-color:rgb(255, 255, 255);")
self.centralwidget = QtWidgets.QWidget(OtherWindow)
self.centralwidget.setObjectName("centralwidget")
self.spectrogram = QtWidgets.QLabel(self.centralwidget)
self.spectrogram.setGeometry(QtCore.QRect(0, -140, 801, 601))
self.spectrogram.setText("")
self.spectrogram.setPixmap(QtGui.QPixmap("plot.png"))
self.spectrogram.setObjectName("spectrogram")
OtherWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(OtherWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 677, 26))
self.menubar.setObjectName("menubar")
OtherWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(OtherWindow)
self.statusbar.setObjectName("statusbar")
OtherWindow.setStatusBar(self.statusbar)
self.retranslateUi(OtherWindow)
QtCore.QMetaObject.connectSlotsByName(OtherWindow)
def retranslateUi(self, OtherWindow):
_translate = QtCore.QCoreApplication.translate
OtherWindow.setWindowTitle(_translate("Spectrogram", "Spectrogram"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
OtherWindow = QtWidgets.QMainWindow()
ui = Ui_OtherWindow()
ui.setupUi(OtherWindow)
OtherWindow.show()
sys.exit(app.exec_())