forked from shunfu/python-beat-detector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_plot.py
67 lines (58 loc) · 2.81 KB
/
ui_plot.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'ui_plot.ui'
#
# Created: Wed May 08 10:02:53 2013
# by: PyQt4 UI code generator 4.9.5
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
_fromUtf8 = lambda s: s
class Ui_win_plot(object):
def setupUi(self, win_plot):
win_plot.setObjectName(_fromUtf8("win_plot"))
win_plot.resize(800, 600)
self.centralwidget = QtGui.QWidget(win_plot)
self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
self.qwtPlot = Qwt5.QwtPlot(self.centralwidget)
self.qwtPlot.setObjectName(_fromUtf8("qwtPlot"))
self.verticalLayout.addWidget(self.qwtPlot)
self.horizontalLayout = QtGui.QHBoxLayout()
self.horizontalLayout.setContentsMargins(6, 0, 6, 0)
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
self.btnA = QtGui.QPushButton(self.centralwidget)
self.btnA.setObjectName(_fromUtf8("btnA"))
self.horizontalLayout.addWidget(self.btnA)
self.btnB = QtGui.QPushButton(self.centralwidget)
self.btnB.setObjectName(_fromUtf8("btnB"))
self.horizontalLayout.addWidget(self.btnB)
self.btnC = QtGui.QPushButton(self.centralwidget)
self.btnC.setObjectName(_fromUtf8("btnC"))
self.horizontalLayout.addWidget(self.btnC)
self.btnD = QtGui.QPushButton(self.centralwidget)
self.btnD.setObjectName(_fromUtf8("btnD"))
self.btnD.setStyleSheet("background-color: red")
self.horizontalLayout.addWidget(self.btnD)
self.verticalLayout.addLayout(self.horizontalLayout)
win_plot.setCentralWidget(self.centralwidget)
self.retranslateUi(win_plot)
QtCore.QMetaObject.connectSlotsByName(win_plot)
def retranslateUi(self, win_plot):
win_plot.setWindowTitle(QtGui.QApplication.translate("win_plot", "MainWindow", None, QtGui.QApplication.UnicodeUTF8))
self.btnA.setText(QtGui.QApplication.translate("win_plot", "A", None, QtGui.QApplication.UnicodeUTF8))
self.btnB.setText(QtGui.QApplication.translate("win_plot", "B", None, QtGui.QApplication.UnicodeUTF8))
self.btnC.setText(QtGui.QApplication.translate("win_plot", "C", None, QtGui.QApplication.UnicodeUTF8))
self.btnD.setText(QtGui.QApplication.translate("win_plot", "BPM", None, QtGui.QApplication.UnicodeUTF8))
from PyQt4 import Qwt5
if __name__ == "__main__":
import sys
app = QtGui.QApplication(sys.argv)
win_plot = QtGui.QMainWindow()
ui = Ui_win_plot()
ui.setupUi(win_plot)
win_plot.show()
sys.exit(app.exec_())