Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can't start Tix

13 views
Skip to first unread message

Frank

unread,
May 7, 2003, 5:51:00 PM5/7/03
to
I get the following error whether I import FixTk or not, and on 2
different machines with standard installatios of Python 2.2.1 and
2.2.2. It also creates a small empty window with the title "tix".

I can run some simple Tk examples without problems.
I would appreciate any help on how to use Tix.
Frank
=======================================
Python 2.2.1 (#34, Apr 9 2002, 19:34:33) [MSC 32 bit (Intel)] on
win32
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> import FixTk
>>> import Tix
>>> root=Tix.Tk()
Traceback (most recent call last):
File "<pyshell#2>", line 1, in ?
root=Tix.Tk()
File "C:\PYTHON22\lib\lib-tk\Tix.py", line 213, in __init__
self.tk.eval('package require Tix')
TclError: can't find package Tix
>>> dir()
['FixTk', 'Tix', '__builtins__', '__doc__', '__name__']
>>>

Martin v. Löwis

unread,
May 8, 2003, 1:22:10 AM5/8/03
to
Frank <Fr...@no.spam> writes:

> I can run some simple Tk examples without problems.
> I would appreciate any help on how to use Tix.

Tix is not supported on Windows. You can try to see whether

http://www.informatik.hu-berlin.de/~loewis/python/tix813win.zip

helps, but you will have to figure out on your own how to use it.

Regards,
Martin

Miki Tebeka

unread,
May 8, 2003, 3:28:46 AM5/8/03
to
Hello Frank,

> >>> root=Tix.Tk()
> Traceback (most recent call last):
> File "<pyshell#2>", line 1, in ?
> root=Tix.Tk()
> File "C:\PYTHON22\lib\lib-tk\Tix.py", line 213, in __init__
> self.tk.eval('package require Tix')
> TclError: can't find package Tix
> >>> dir()
> ['FixTk', 'Tix', '__builtins__', '__doc__', '__name__']
> >>>

I don't think that win32 python comes with Tix.
Miki.

Frank

unread,
May 8, 2003, 4:09:39 AM5/8/03
to

Tix is described in section 16.2 of the Python Library Reference
2.2.2. 16.2.1 has 3 lines of test code, which fails when I try them;
it also mentions that the tix83.dll should be in the same directory
with the tk83.dll. I have the Tk source and .dll, but only find the
source for Tix. /Python22/DLLs has tk83.dll (and others), but not the
.dll for Tix.

I shur would like to know what happened, or what was supposed to
happen. Did the Lib Ref just get ahead of itself? The project I'm
working on is being done in Python because of the cross platform
capabilities, so I can't use *nix specific features.
Thanks,
Frank

Martin v. Löwis

unread,
May 8, 2003, 5:55:38 PM5/8/03
to
Frank <Fr...@no.spam> writes:

> >I don't think that win32 python comes with Tix.

[...]


> Tix is described in section 16.2 of the Python Library Reference
> 2.2.2.

So what? The documentation does not claim that this module is
available on every operating system supported by Python.

> I shur would like to know what happened, or what was supposed to
> happen. Did the Lib Ref just get ahead of itself?

No. The module described works fine on X11 if you have Tix
installed. It also works fine on Windows if you have Tix installed.

> The project I'm working on is being done in Python because of the
> cross platform capabilities, so I can't use *nix specific features.

Then you either shouldn't use the Tix module, or obtain and use a Tix
installation for Windows.

Regards,
Martin

Raseliarison nirinA

unread,
May 8, 2003, 8:18:14 PM5/8/03
to

I can't help you much but a few words of advice.
'package require Tix' is a tcl command like 'import Tix' in Python. You do
have tcl/tk installed correctly in order to use and run Tix.
Here:
https://sourceforge.net/project/showfiles.php?group_id=2435&release_id=84152
you can download tcl/tk source tarball and all needed tools to build tcl/tk
package on win32 with MinGW (Minimalist GNU for Windows).
i think that the minimal package to download and to install is: binutils,
gcc, mingw-runtime, make, mingw-utils
Once you succeed in installing tcl/tk there is a chance you can install Tix
package by building it from source.
That might be tricky, but gcc version 3.2.3 for MinGW has been recently
released so it's worthy to try building tcl/tk/tix and Python with.
notice: i have not yet tried this.
hope this helps,
nirinA


Tim Peters

unread,
May 9, 2003, 12:01:37 AM5/9/03
to
[Frank]

> Tix is described in section 16.2 of the Python Library Reference
> 2.2.2. 16.2.1 has 3 lines of test code, which fails when I try them;
> it also mentions that the tix83.dll should be in the same directory
> with the tk83.dll. I have the Tk source and .dll, but only find the
> source for Tix. /Python22/DLLs has tk83.dll (and others), but not the
> .dll for Tix.

That's so: at present, Tix is not included in the PythonLabs Windows
distribution.

> I shur would like to know what happened, or what was supposed to
> happen. Did the Lib Ref just get ahead of itself?

It's describing where you should put the files if you install Tix yourself.
It could be clearer about that.

> The project I'm working on is being done in Python because of the cross
> platform capabilities, so I can't use *nix specific features.

I don't know anything about Tix (which goes a way toward explaining *why*
Tix isn't in the PLabs Windows distro -- I build that distro, & I haven't
had the "spare time" to tackle a big package I don't understand or use;
there is a report about this open on SourceForge, BTW), but I'd be very
surprised if it were Unix-specific. (And if you figure out how to build and
install Tix on Windows so that it works well with Python, share what you
learn in the SF report!)


Frithiof Andreas Jensen

unread,
May 9, 2003, 7:32:37 AM5/9/03
to

"Martin v. Löwis" <mar...@v.loewis.de> wrote in message
news:m3k7d19...@mira.informatik.hu-berlin.de...
> Frank <Fr...@no.spam> writes:

> So what? The documentation does not claim that this module is
> available on every operating system supported by Python.

... So then the Tix module documentation should be polite and make a
statement about platform availability - like other modules!

If there are no such disclaimers, and the documentation is part of a "core
python" install, one should be able to assume that the module is generally
available across platforms, I.M.H.O.

We should file a bug report on the documentation over this - if it is not
done already.

> Then you either shouldn't use the Tix module, or obtain and use a Tix
> installation for Windows.

I had the same problem -

I *could not* work out from the Tix documentation what I actually would
need, what I should do with it, and where to install what once past that
hurdle. (I would apparently would also need Borland C++ - a tool, I dumped
way back at ver. 3.1. in response to it's bugginess and credit-card-grabbing
tech support).

Maybe I am dense - but for now I will stay with Vanilla Tk in the, perhaps
vain, hope that someone eventually will be annoyed enough to support a win32
Tix build...


Frank

unread,
May 12, 2003, 4:17:23 AM5/12/03
to

Thanks all. I'll keep looking at Tix on the side, but it looks like
it's not ready to be used in anything that needs to bo cross-platform
and easy for a novice in another location to install
Frank

0 new messages