By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,235 Members | 1,057 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,235 IT Pros & Developers. It's quick & easy.

Using Tix and Tkinter

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a

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.