Would you use a programming language with missing features?

Haïkel Guémar karlthered at gmail.com
Sat Jan 30 15:26:38 UTC 2010


Le 30/01/2010 14:29, Paulo Cavalcanti a écrit :
> The first one is python. The GUI provided with python is called tkinter,
> which is based on tk, which, in turn, is based on tcl. Since threads are
> disabled in Fedora's tcl,
> as a consequence, one cannot use python+tkinter+threads.
> 

Tkinter is not thread-safe even if you built tcl with threads support,
though there's a thread-safe variant aka mtTkinter. Basically, it
doesn't matter from a python/Tkinter user standpoint.

You can mix Tkinter and threading modules in the same script but as with
most toolkits, you must not (well shouldn't) make GUI calls outside the
main thread. That's how Gtk+, Qt, Swing work.

If you keep that in mind, you'll have no problem making a python
application using threads and Tkinter (the same goes for PyQt4 and PyGtk).

Anyway, fixing threaded tcl/tk by itself is a worthy goal.

H.


More information about the devel mailing list