writing tcl wrapper with tkinter

Cameron Laird claird at starbase.neosoft.com
Thu Oct 18 20:01:22 CEST 2001

In article <9e934833.0110180828.4842d434 at posting.google.com>,
Damien Thomas <damien at secondworld.com> wrote:
>I have a tcl piece of code that I found useful. As I'm using 
>tkinter for GUI, I would like to do a class that encapsulate
>this tcl code.
>It would be a sort of new tkinter widget on wich I can apply
>all the std operation (pack, config, ...)
>Is there a simple way to do that or is there documentation ?
Yes.  I think everything you need already is
in place, as the example
  from Tkinter import *
  root = Tk()
  my_script = 'info hostname'
  print root.eval.tk(my_script)
>(I had a look inside the PyTix code, but it's a little bit too
>complicated(modifying tkinter.py, recompiling python.....))
Or maybe you're asking how to code a new Tkinter
widget--is that it?

Cameron Laird <claird at NeoSoft.com>
Business:  http://www.Phaseit.net
Personal:  http://starbase.neosoft.com/~claird/home.html

More information about the Python-list mailing list