469,311 Members | 2,515 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,311 developers. It's quick & easy.

Using Tix and Tkinter

I am trying to create a simple window using the following code:

--code---

import Tix
from Tkconstants import *
from Tkinter import *

root = Tix.Tk()

Label(root, text="Hello!").pack()
Tix.tixControl().pack()

root.mainloop()

---code---

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'

Any reason why I am not able to pull up this widget to work with it?

Thanks,

Harlin Seritt
Jul 18 '05 #1
1 3117

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

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by srijit | last post: by
reply views Thread by syed_saqib_ali | last post: by
1 post views Thread by Michael Yanowitz | last post: by
11 posts views Thread by Kenneth McDonald | last post: by
reply views Thread by Guilherme Polo | last post: by
3 posts views Thread by J-Burns | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.