Re: Would you use a programming language with missing features?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux