eric7/MicroPython/MicroPythonGraphWidget.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8343
242d5dae2937
child 8358
144a6b854f70
--- a/eric7/MicroPython/MicroPythonGraphWidget.py	Sat May 22 17:01:51 2021 +0200
+++ b/eric7/MicroPython/MicroPythonGraphWidget.py	Sat May 22 18:51:46 2021 +0200
@@ -22,8 +22,8 @@
 )
 from PyQt6.QtCharts import QChartView, QChart, QLineSeries, QValueAxis
 
-from E5Gui import E5MessageBox
-from E5Gui.E5Application import e5App
+from E5Gui import EricMessageBox
+from E5Gui.EricApplication import ericApp
 
 import UI.PixmapCache
 import Preferences
@@ -129,7 +129,7 @@
         if chartColorTheme == -1:
             # automatic selection of light or dark depending on desktop
             # color scheme
-            if e5App().usesDarkPalette():
+            if ericApp().usesDarkPalette():
                 self.__chart.setTheme(QChart.ChartTheme.ChartThemeDark)
             else:
                 self.__chart.setTheme(QChart.ChartTheme.ChartThemeLight)
@@ -327,7 +327,7 @@
             self.__dirty = False
             return True
         except OSError as err:
-            E5MessageBox.critical(
+            EricMessageBox.critical(
                 self,
                 self.tr("Save Chart Data"),
                 self.tr(

eric ide

mercurial