diff options
author | Kali Kaneko <kali@leap.se> | 2013-06-13 01:19:49 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2013-06-13 22:31:24 +0900 |
commit | ba27c14ba84c6869c187bdd09138bfae4424445d (patch) | |
tree | 9f73c8eb401813cea0b19752ef8d1eeafe02edc5 /src/leap/util/leap_log_handler.py | |
parent | 9b2c0d673a1a8a4641508188c87662c9eacfd0ce (diff) |
copy missing updown scripts if missing
Diffstat (limited to 'src/leap/util/leap_log_handler.py')
-rw-r--r-- | src/leap/util/leap_log_handler.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/leap/util/leap_log_handler.py b/src/leap/util/leap_log_handler.py index 3264e05c..5b8ae789 100644 --- a/src/leap/util/leap_log_handler.py +++ b/src/leap/util/leap_log_handler.py @@ -18,10 +18,10 @@ Custom handler for the logger window. """ import logging -from functools import partial from PySide import QtCore + class LogHandler(logging.Handler): """ This is the custom handler that implements our desired formatting @@ -36,6 +36,11 @@ class LogHandler(logging.Handler): _log_history = [] def __init__(self, qtsignal): + """ + LogHander initialization. + Calls parent method and keeps a reference to the qtsignal + that will be used to fire the gui update. + """ logging.Handler.__init__(self) self._qtsignal = qtsignal @@ -119,6 +124,10 @@ class LeapLogHandler(QtCore.QObject, HandlerAdapter): new_log = QtCore.Signal(dict) def __init__(self): + """ + LeapLogHandler initialization. + Initializes parent classes. + """ QtCore.QObject.__init__(self) HandlerAdapter.__init__(self, qtsignal=self.qtsignal) |