GUI:-please answer want to learn GUI programming in python , how should i proceed.
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Sat Dec 14 17:59:12 EST 2013
On Sat, 14 Dec 2013 13:01:58 -0700, Michael Torrie wrote:
> On 12/14/2013 10:05 AM, Wolfgang Keller wrote:
>> Tkinter is a bit "special" to use since it's not just a library, but
>> uses some kind of RPC. It seems that "look and feel" have been greatly
>> improved lately.
>
> I know Tkinter originated with the Tcl/Tk language. With Tkinter in
> Python is it still using Tcl/Tk under the hood? IE embeds the Tcl
> language interpreter into Python's interpreter? If so I've always found
> it a bit strange that the de facto GUI library that's shipped with
> Python ships an entirely different language with it under the hood.
That's just the "Interpreter" design pattern, except the Domain Specific
Language is already written for you :-)
(I'm half-serious here.)
But more seriously, 100% seriously in fact, I think that you'll find that
*every* GUI framework for Python ships with an entirely different
language under the hood, usually C. Even if the top level of the
framework is written in Python, the underlying graphics routines used for
drawing controls and windows will surely not be. Given that the actual
maintenance of the GUI itself is unlikely to be a bottleneck in any real
application, I don't think it is a significant problem efficiency-wise
that Python tkinter relies on an intermediate framework written in Tcl.
--
Steven
More information about the Python-list
mailing list