A friend sent me some Tkinter/Tix code, but it was for Python 2:
from Tkinter import *
import Tix
import ScrolledText
I have Python 3, I have no Tix
installed, and program crashes. After some searching I've changed the code to:
from tkinter import *
from tkinter import tix
from tkinter import scrolledtext
Thats what I found on the internet. I have no idea if this is a right approach. But code still does no run it crashes on
root = tix.Tk()
File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/tkinter/tix.py, line 221, in __init__
self.tk.eval('package require Tix')
_tkinter.TclError: can't find package Tix
I would like to know how to modify the code correctly to make it run and how to install Tix
.
The whole code in original form: http://pastebin.com/JCqhNSRR