Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (12 sloc) 0.325 kB
import logging
try:
import tkMessageBox
except:
tkMessageBox = None
class MessageBoxHandler(logging.Handler):
def __init__(self):
logging.Handler.__init__(self)
def emit(self, record):
if tkMessageBox:
msg = self.format(record)
tkMessageBox.showinfo('info1', msg)
Jump to Line
Something went wrong with that request. Please try again.