[MixMaster] Fix displaying of errors when using Python 2

This commit is contained in:
Ray Speth 2015-06-02 10:53:48 -04:00
parent bd830b4685
commit a677409283

View file

@ -8,7 +8,7 @@ try:
from tkinter import messagebox
else:
from Tkinter import Tk
import tkMessageBox
import tkMessageBox as messagebox
_hasTk = 1
except:
_hasTk = 0
@ -26,13 +26,6 @@ def _print_value(name, value, unitstr):
string.rjust('%10.5e' %value, 15) + ' ' + \
string.ljust(unitstr,5))
def hasTk():
try:
import tkMessageBox
return 1
except:
return 0
def handleError(message = '<error>', window = None,
fatal = 0, warning = 0, options = None):
if warning: