Made Tkinter support optional.