pamhyr: End switch print to logging.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-07-07 10:50:17 +02:00
1 parent a8bd871f94
commit 504ef7ec48
15 files changed
+71 -31

No files matched your search

+5 -1
View File
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
import logging
from tools import timer
from View.Plot.APlot import APlot
@@ -9,6 +11,8 @@ from PyQt5.QtCore import (
_translate = QCoreApplication.translate
logger = logging.getLogger()
class PlotAC(APlot):
def __init__(self, canvas=None, data=None, toolbar=None, plot_xy=None):
super(PlotAC, self).__init__(
@@ -284,7 +288,7 @@ class PlotAC(APlot):
self.color_incomplete_gl[lincomplete.index(txt)]
)
except Exception as e:
print(f"{e}")
logger.warning(f"{e}")
self.canvas.figure.canvas.draw_idle()