[MixMaster] Fix displaying of errors when using Python 2
This commit is contained in:
parent
bd830b4685
commit
a677409283
1 changed files with 1 additions and 8 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue