Tix.FileEntry directory

dijk adijkstra at yahoo.com
Fri Oct 4 09:31:26 CEST 2002


support @ internetdiscovery.com (Mike Clarkson) wrote in message news:<3d9ca678.2970545 at nntp.ix.netcom.com>...
> On 3 Oct 2002 08:25:24 -0700, timothy.williams at nvl.army.mil (Tim
> Williams) wrote:
> 
> >I'm trying to use the Tix.FileEntry widget. I can set the default
> >value, but how do I specify what directory to initially look in?
> 
> You want to set the entry subwidget:
> 
> import Tix
> root = Tix.Tk()
> foo = Tix.FileEntry(root)
> foo.subwidget('entry').insert(0,'/my/dir')
> foo.pack()
> 
> 
> Mike.


Why do I get this error??
I thought that Tix is intalled when Tkinter is installed.
Thanks in advance

Greetings Arjen

>>> import Tix
>>> r=Tix.Tk()
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in ?
    r=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



More information about the Python-list mailing list