Zachary Ware <zachary.ware+pyl...@gmail.com> wrote: > The way I would do it is as follows: > > try: > import tkinter as tk > from tkinter import ttk > except ImportError: > import Tkinter as tk > import ttk > > If I may suggest, just write it in Python3 first, then when it does > what you want tack on whatever you need to make 2.7 happy. I find it > easier to do things that way, though you may find that the only thing > you have to adjust is the imports.
This is a good advice. And yes, it is easier than most would think. Sturla -- https://mail.python.org/mailman/listinfo/python-list