writing tcl wrapper with tkinter
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'
>(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>
More information about the Python-list