mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pamhyr: End switch print to logging.
This commit is contained in:
1 parent
a8bd871f94
commit
504ef7ec48
15 files changed
+71
-31
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user