8 from PyQt5
import QtCore, QtWidgets
9 from class_real_time_plot
import StaticPlot
14 Static Graph Window Class 16 def __init__(self, x_label_value, y_label_value, title):
24 Static Graph Window Setup Ui Function 26 GraphWindow.setObjectName(
"GraphWindow")
27 GraphWindow.resize(450, 300)
28 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
29 sizePolicy.setHorizontalStretch(0)
30 sizePolicy.setVerticalStretch(0)
31 sizePolicy.setHeightForWidth(GraphWindow.sizePolicy().hasHeightForWidth())
32 GraphWindow.setSizePolicy(sizePolicy)
34 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
35 sizePolicy.setHorizontalStretch(0)
36 sizePolicy.setVerticalStretch(0)
37 sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
38 self.centralwidget.setSizePolicy(sizePolicy)
39 self.centralwidget.setObjectName(
"centralwidget")
41 self.gridLayout.setObjectName(
"gridLayout")
43 self.widget_graph.setEnabled(
True)
44 sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
45 sizePolicy.setHorizontalStretch(0)
46 sizePolicy.setVerticalStretch(0)
47 sizePolicy.setHeightForWidth(self.widget_graph.sizePolicy().hasHeightForWidth())
48 self.widget_graph.setSizePolicy(sizePolicy)
49 self.widget_graph.setObjectName(
"widget_graph")
52 self.
menubar = QtWidgets.QMenuBar(GraphWindow)
53 self.menubar.setGeometry(QtCore.QRect(0, 0, 890, 25))
54 self.menubar.setObjectName(
"menubar")
55 GraphWindow.setMenuBar(self.
menubar)
57 self.statusbar.setObjectName(
"statusbar")
70 QtCore.QMetaObject.connectSlotsByName(GraphWindow)
74 Static Graph Window Retranslate Ui Function 76 _translate = QtCore.QCoreApplication.translate
77 GraphWindow.setWindowTitle(_translate(
"GraphWindow", self.
title))
82 Static Graph Window Main Function 86 layout.addWidget(static_canvas)
87 self.widget_graph.setFocus()
def retranslateUi(self, GraphWindow)
def __init__(self, x_label_value, y_label_value, title)
def setupUi(self, GraphWindow)