From a6774092839f8c6aff743cf8f4cc982fe8ce2e63 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 2 Jun 2015 10:53:48 -0400 Subject: [PATCH] [MixMaster] Fix displaying of errors when using Python 2 --- interfaces/cython/cantera/mixmaster/utilities.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/interfaces/cython/cantera/mixmaster/utilities.py b/interfaces/cython/cantera/mixmaster/utilities.py index c1d9951c0..b2ae45d6d 100644 --- a/interfaces/cython/cantera/mixmaster/utilities.py +++ b/interfaces/cython/cantera/mixmaster/utilities.py @@ -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 = '', window = None, fatal = 0, warning = 0, options = None): if warning: