Using Tix and Tkinter

harold fellermann harold.fellermann at upf.edu
Thu Jan 13 11:26:11 EST 2005


On 31.12.2004, at 16:50, Harlin Seritt wrote:
> import Tix
> from Tkconstants import *
> from Tkinter import *
>
> root = Tix.Tk()
>
> Label(root, text="Hello!").pack()
> Tix.tixControl().pack()
>
> root.mainloop()

> When I run this, I get the following error:
>
> Traceback (most recent call last):
>   File "TixTest.py", line 8, in ?
>     Tix.tixControl().pack()
> AttributeError: 'module' object has no attribute 'tixControl'

in the Tix module this widget is called Control. writing
Tix.Control().pack()
should work.

- harold -

--
Man will occasionally stumble over the truth,
but most of the time he will pick himself up and continue on.
-- Winston Churchill




More information about the Python-list mailing list