summaryrefslogtreecommitdiff
path: root/PyMca5/PyMcaGui/physics/xrf/PeakIdentifier.py
diff options
context:
space:
mode:
Diffstat (limited to 'PyMca5/PyMcaGui/physics/xrf/PeakIdentifier.py')
-rw-r--r--PyMca5/PyMcaGui/physics/xrf/PeakIdentifier.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/PyMca5/PyMcaGui/physics/xrf/PeakIdentifier.py b/PyMca5/PyMcaGui/physics/xrf/PeakIdentifier.py
index d4b2d9c..fed357e 100644
--- a/PyMca5/PyMcaGui/physics/xrf/PeakIdentifier.py
+++ b/PyMca5/PyMcaGui/physics/xrf/PeakIdentifier.py
@@ -31,12 +31,14 @@ __contact__ = "sole@esrf.fr"
__license__ = "MIT"
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
import sys
+import logging
from PyMca5.PyMcaGui import PyMcaQt as qt
from PyMca5.PyMcaPhysics import Elements
from PyMca5.PyMcaGui import PyMca_Icons
IconDict = PyMca_Icons.IconDict
QTVERSION = qt.qVersion()
-DEBUG = 0
+
+_logger = logging.getLogger(__name__)
class PeakIdentifier(qt.QWidget):
@@ -158,7 +160,7 @@ class PeakIdentifier(qt.QWidget):
return
def myslot(self):
- print("PeakIdentifier.py myslot deprecated, use mySlot")
+ _logger.info("PeakIdentifier.py myslot deprecated, use mySlot")
return self.mySlot()
def _thresholdSlot(self, value):
@@ -281,6 +283,7 @@ class MyQLineEdit(qt.QLineEdit):
qt.QLineEdit.focusOutEvent(self, event)
def main():
+ logging.basicConfig(level=logging.INFO)
app = qt.QApplication(sys.argv)
winpalette = qt.QPalette(qt.QColor(230,240,249),qt.QColor(238,234,238))
app.setPalette(winpalette)