[Tktable] RE: tktable with Python under Windows
by Martin other posts by this author
Feb 3 2005 5:46PM messages near this date
|
[Tktable] tktable with Python under Windows
> Stewart Midwinter wrote:
> > Anyone out there get this to work under Windows? I had
> > success under Linux, but under Windows I get an error message saying:
> > _tkinter.TclError: package "Tktable" isn"t loaded statically
> >
> > Where should I put the tktable.py module, and the tkable.tcl
> > and Tktable.dll files?
Jeff answers
> The Tcl runtime
> libraries are at C:\Python\tcl\... by default, so you would place
> the Tktable files in C:\Python\tcl\Tktable2.x\... The tktable.py
> would go where the Python "import" would pick it up. I imagine
> the best place for this is C:\Python\Lib\lib-tk\, where py files
> like Tkdnd.py and Tix.py are also located.
>
> Jeff Hobbs, The Tcl Guy
I found this related advice.
> Newsgroups: comp.lang.python
> From: "Mike C. Fletcher" <mcfle...@[...].com> - Find messages by this
> author
> Date: Thu, 08 Apr 2004 13:35:52 -0400
> Local: Thurs, Apr 8 2004 10:35 am
> Subject: Re: Tcl/Tk extension access from python under windows
>
> The default search path for tcl packages from the Python Tcl/Tk is
> Python23\tcl\* so create a directory there with the name of the package,
> and put a pkgInfo.tcl and your dll into the directory. pkgInfo.tcl
> should look something like:
>
>
> if {![package vsatisfies [package provide Tcl] 8]} {return}
> package ifneeded Togl 1.6.0 \
> [list load [file join $dir Togl.dll] Togl]
>
>
> You can use the tcl dde1.2 package you'll find there as a template.
>
>
> HTH,
> Mike
>
> _______________________________________
> Mike C. Fletcher
> Designer, VR Plumber, Coder
> http://members.rogers.com/mcfletch/
And This worked for me:
copy the contents of C:\Program Files\Tcl\lib\Tktable2.9
to C:\Python23\tcl\Tktable
Just making it explicit for future google searches.
Martin
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Tktable-users mailing list
Tktable-users@[...].net
https://lists.sourceforge.net/lists/listinfo/tktable-users
|