Commit d7daede9 authored by sumpfralle's avatar sumpfralle

fixed careless import of Tkinter


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@306 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 7de064b0
Version 0.2.4 - UNRELEASED
* join tangential moves (removes the inner points in a colinear set of adjacent path points)
* fixed careless import of Tkinter
Version 0.2.3 - 2010-04-05
* GUI change: tool and process settings can be combined into tasks
......
import Tkinter
# Tkinter is used for "EmergencyDialog" below - but we will try to import it carefully
#import Tkinter
# "ode" is imported later, if required
#import ode_objects
import random
......@@ -126,6 +127,13 @@ class EmergencyDialog:
"""
def __init__(self, title, message):
try:
import Tkinter
except ImportError:
# tk is not installed
print >>sys.stderr, "Warning: %s" % str(title)
print >>sys.stderr, message
return
try:
root = Tkinter.Tk()
except Tkinter.TclError, err_msg:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment