No ttk in 2.7
Cecil Westerhof
Cecil at decebal.nl
Wed May 20 12:01:09 EDT 2015
I want to start playing with tkinter, but there are some differences
between 2 and 3. For this I use at the moment the following code:
import sys
if sys.version_info[0] < 3:
import Tkinter as tk
import ttk
else:
import tkinter as tk
from tkinter import ttk
or can it better be done in another way?
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
More information about the Python-list
mailing list