Python2.2 in Linux RH7.2 - Newbie

Hernan M. Foffani hfoffani at yahoo.com
Wed Dec 26 05:46:20 EST 2001


> I don't seem able to call up tkinter. Now I am probably doing
> something incorrectly. If someone could be kind enough to walk
> me through this process in baby steps bearing in mind my newbie
> status.

Did you install python from the rpms? If so, did you download and
install the tkinter rpm?

A minimal program taken from Lundh's "An Introduction to Tkinter":

    from Tkinter import *
    root = Tk()
    w = Label(root, text="Hello, world!")
    w.pack()
    root.mainloop()

Regards,
-Hernan





More information about the Python-list mailing list