src/eric7/MicroPython/MicroPythonGraphWidget.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
26 QLabel, 26 QLabel,
27 QSpinBox, 27 QSpinBox,
28 ) 28 )
29 from PyQt6.QtCharts import QChartView, QChart, QLineSeries, QValueAxis 29 from PyQt6.QtCharts import QChartView, QChart, QLineSeries, QValueAxis
30 30
31 from EricWidgets import EricMessageBox 31 from eric7.EricWidgets import EricMessageBox
32 from EricWidgets.EricApplication import ericApp 32 from eric7.EricWidgets.EricApplication import ericApp
33 33
34 import UI.PixmapCache 34 from eric7.EricGui import EricPixmapCache
35 import Preferences 35 from eric7 import Preferences
36 36
37 37
38 class MicroPythonGraphWidget(QWidget): 38 class MicroPythonGraphWidget(QWidget):
39 """ 39 """
40 Class implementing the MicroPython graph widget. 40 Class implementing the MicroPython graph widget.
66 self.__verticalLayout = QVBoxLayout() 66 self.__verticalLayout = QVBoxLayout()
67 self.__verticalLayout.setContentsMargins(0, 0, 0, 0) 67 self.__verticalLayout.setContentsMargins(0, 0, 0, 0)
68 self.__layout.addLayout(self.__verticalLayout) 68 self.__layout.addLayout(self.__verticalLayout)
69 69
70 self.__saveButton = QToolButton(self) 70 self.__saveButton = QToolButton(self)
71 self.__saveButton.setIcon(UI.PixmapCache.getIcon("fileSave")) 71 self.__saveButton.setIcon(EricPixmapCache.getIcon("fileSave"))
72 self.__saveButton.setToolTip(self.tr("Press to save the raw data")) 72 self.__saveButton.setToolTip(self.tr("Press to save the raw data"))
73 self.__saveButton.clicked.connect(self.on_saveButton_clicked) 73 self.__saveButton.clicked.connect(self.on_saveButton_clicked)
74 self.__verticalLayout.addWidget(self.__saveButton) 74 self.__verticalLayout.addWidget(self.__saveButton)
75 self.__verticalLayout.setAlignment( 75 self.__verticalLayout.setAlignment(
76 self.__saveButton, Qt.AlignmentFlag.AlignHCenter 76 self.__saveButton, Qt.AlignmentFlag.AlignHCenter

eric ide

mercurial