Tktable, WinXP and ActiveState Python 2.4.3,x

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jerry.levan@gmail.com

    #1

    Tktable, WinXP and ActiveState Python 2.4.3,x

    Hi,
    I have a python app that runs fine on MacOS X and Fedora Core 5.

    This evening I dragged the folder over to my windows partition and
    tried to run the rascal.

    The program starts up fine but at the first call to create a Table
    object
    I get

    Traceback (most recent call last):
    File
    "C:\Python24\Li b\site-packages\python win\pywin\frame work\scriptutil s.py",
    line 310, in RunScript
    exec codeObject in __main__.__dict __
    File "C:\Documen ts and
    Settings\Jerry\ Desktop\PyPgBro wseUni\PyPgExpl orer.py", line 7, in ?
    obj.main()
    File "C:\Documen ts and
    Settings\Jerry\ Desktop\PyPgBro wseUni\Resource s\PyPgBrowse.py ", line 72,
    in main
    self.build_ui( info)
    File "C:\Documen ts and
    Settings\Jerry\ Desktop\PyPgBro wseUni\Resource s\PyPgBrowse.py ", line
    187, in build_ui
    rowtagcommand=s elf.rowproc
    File "C:\Documen ts and
    Settings\Jerry\ Desktop\PyPgBro wseUni\Resource s\Tktable.py", line 64, in
    __init__
    master.tk.call( 'load', '', 'Tktable' )
    TclError: package "Tktable" isn't loaded statically
    :

    I get the same error if I try to create a Table object from the command
    line
    in a console.

    I tried waving a dead chicken at my laptop but it did no good.

    Is there some special magic to get Tktable.py to play nice?
    I do have the latest Tcl from Active State loaded on my box and
    the Tktable in my Tk programs work well...

    Thanks for any insight....

    Jerry

  • jerry.levan@gmail.com

    #2
    Solved: Tktable, WinXP and ActiveState Python 2.4.3,x


    jerry.levan@gma il.com wrote:[color=blue]
    > Hi,
    > I have a python app that runs fine on MacOS X and Fedora Core 5.
    >
    > This evening I dragged the folder over to my windows partition and
    > tried to run the rascal.
    >
    > The program starts up fine but at the first call to create a Table
    > object
    > I get
    >
    > Traceback (most recent call last):
    > File
    > "C:\Python24\Li b\site-packages\python win\pywin\frame work\scriptutil s.py",
    > line 310, in RunScript
    > exec codeObject in __main__.__dict __
    > File "C:\Documen ts and
    > Settings\Jerry\ Desktop\PyPgBro wseUni\PyPgExpl orer.py", line 7, in ?
    > obj.main()
    > File "C:\Documen ts and
    > Settings\Jerry\ Desktop\PyPgBro wseUni\Resource s\PyPgBrowse.py ", line 72,
    > in main
    > self.build_ui( info)
    > File "C:\Documen ts and
    > Settings\Jerry\ Desktop\PyPgBro wseUni\Resource s\PyPgBrowse.py ", line
    > 187, in build_ui
    > rowtagcommand=s elf.rowproc
    > File "C:\Documen ts and
    > Settings\Jerry\ Desktop\PyPgBro wseUni\Resource s\Tktable.py", line 64, in
    > __init__
    > master.tk.call( 'load', '', 'Tktable' )
    > TclError: package "Tktable" isn't loaded statically
    > :
    >
    > I get the same error if I try to create a Table object from the command
    > line
    > in a console.
    >
    > I tried waving a dead chicken at my laptop but it did no good.
    >
    > Is there some special magic to get Tktable.py to play nice?
    > I do have the latest Tcl from Active State loaded on my box and
    > the Tktable in my Tk programs work well...
    >
    > Thanks for any insight....
    >
    > Jerry[/color]

    Thanks to the good folks at Active State here is a way to use tktable
    from Python.

    1) Put the wrapper file Tktable.py into C:\Python24\Lib \lib-tk
    2) Copy the whole folder C:\Tcl\lib\Tkta ble* to C:\Python\tcl

    Letter Rip....

    Thanks Jeff...

    Jerry

    Comment

    Working...