> I was wondering if someone knowledgeable of both Tcl and Python could suggest whether it would > be a good or a bad idea to write a Python/Tk application, with the motive to rewrite the application in > Tcl/Tk
Oooh that's a tough one, it would depend on the program.
Python is a very different language to Tcl and you would need
to write the code in a Tcl style - don't use an OOP style for
the GUI for example. In fact I'd avoid OOP all together since
Tcl OOP is significantly different to Python OOP and not even
part of standard Tcl.
...
You might like to take a quick run through the basics of my old
Python tutor which used Tcl as a comparison to Python. Its far
from comprehensive but would give a fairly good Python view
of Tcl.
http://www.freenetpages.co.uk/hp/alan.gauld/oldtutor/index.htm
HTH,
Alan G
Author of the Learn to Program web tutor
http://www.freenetpages.co.uk/hp/alan.gauld
Thanks, this is a really good point. I've been examining incr Tcl with interest, but to learn Tcl/Tk by porting code from Python, its probably best to avoid incr Tcl/incr Widgets at first.
Your tutor is really great, I've skimmed through it a bit, and will give it a more thorough read shortly.
Thanks!
Luis N
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor