Hi Michael,

First of all thanks for your reply in the Tkinter-discuss forum.  I am using
the TkinterDnD for a project of mine. I have the newest tkdnd
installed in the newest Tcl\lib folder (activestate Tcl, it is installed in
c:\Tcl), and I have followed the instruction to copy the TkinterDnD folder
into the Python*\lib\site-packages folder.  I am using Xp pro sp2 and
python 2.2.3.  I have also put the tkdnd unzipped folder into the
python22\tcl folder.  I would appreciate it if you could let me know what
could have caused the following error when I run the dnddemo.py:


TclError Exception in Tk callback
  Function: <function runScriptCommand at 0x019CA610> (type: <type
'function'>)
  Args: ()
Traceback (innermost last):
  File "C:\Program Files\Leo\extensions\Pmw\Pmw_1_2\lib\PmwBase.py", line
1752, in __call__
    return apply(self.func, args)
  File "C:\Program Files\Leo\plugins\mod_scripting.py", line 333, in
runScriptCommand
    c.executeScript(c.currentPosition(),useSelectedText=True,silent=True)
  File "C:\Program Files\Leo\src\leoCommands.py", line 1316, in
executeScript
    exec script in d
  File "<string>", line 8, in ?
    None
  File "C:\Program Files\Visual Components\Python
2.2\Lib\site-packages\TkinterDnD\TkinterDnD.py", line 352, in __init__
    self.TkdndVersion = _require(self)
  File "C:\Program Files\Visual Components\Python
2.2\Lib\site-packages\TkinterDnD\TkinterDnD.py", line 333, in _require
    tkdndver = tkroot.tk.call('package', 'require', 'tkdnd')
TclError: can't find package tkdnd

Many thanks for your help


best regards
Casey Wong




_______________________________________________
Tkinter-discuss mailing list
[email protected]
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to