Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Updates about Tk

2 views
Skip to first unread message

Fabiano

unread,
Feb 27, 2010, 3:05:24 AM2/27/10
to

Hi,
I'm going to start my little journey into the Python's lands.
I have already red the old posts about but I suppose this is an evolving
topic.
I have understood Tk is the default Python's GUI toolkit, I have also
read that version 8.5 has native widgets and visual improvements.
My question is:
Are the new Tk comaprable with other toolkits(Qt, GTK,Wx?)?
Does Tk lack other features compared to the Qt,GTK,Wx...?
(Or: is there things you can't simply do with Tk?)

Thanks in advance for replying

Sean DiZazzo

unread,
Feb 27, 2010, 3:26:08 AM2/27/10
to

> Are the new Tk comaprable with other toolkits(Qt, GTK,Wx?)?
> Does Tk lack other features compared to the Qt,GTK,Wx...?
> (Or: is there things you can't simply do with Tk?)
>
> Thanks in advance for replying

tkinter is a good starting point. You can get some definite benefits
going to wx or Qt. I guess it depends on how much experience you have
creating GUIs.

Choose the one you are comfortable with.

Kevin Walzer

unread,
Feb 27, 2010, 12:11:14 PM2/27/10
to

In terms of UI, Tkinter as of 8.5 is pretty comparable to the other
toolkits. The themed ttk widgets use native widgets for things like
tree/tableviews, buttons, scrollbars, entry fields, labels, etc. If
there's something that the core widgets don't support, there are both
higher-level Python widget packages based on Tkinter (PMW, for instance)
and Tkinter wrappers for Tk widget packages such as tablelist, Bwidgets,
etc.

More information is here: http://tkinter.unpythonic.net/wiki/

Tk still lacks in a few areas:

1. Native drag-and-drop--you have to install an extension package,
TkDND, which also has a Python wrapper here:
http://klappnase.bubble.org/index.html

2. Printing. The other toolkits support this out of the box. With Tk,
you're pretty limited to lpr and/or generating postscript (on *Nix and
Mac) and whatever native printing functionality is supported on Windows.

3. HTML rendering. The other toolkits support this natively. There are
several alternatives on Tk, but none are ideal: see
http://www.codebykevin.com/blosxom.cgi/2009/11/19#which-html.

I find that Tk is so simple and powerful for most things that its
limitations are acceptable, or can be worked around. Also, licensing can
be problematic in some cases. But, as others have discussed, give the
different toolkits a try and make your own choice.

--Kevin

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com

rantingrick

unread,
Feb 27, 2010, 12:29:44 PM2/27/10
to
On Feb 27, 11:11 am, Kevin Walzer <k...@codebykevin.com> wrote:

(...snip...)

> Kevin Walzer
> Code by Kevinhttp://www.codebykevin.com

Great post Kevin! The only thing i would like to add are my two
favorite references for learning Tkinter. They are not geared around
the new ttk stuff, but still 95% relevant to any Tkinter-ing

http://effbot.org/tkinterbook/
http://infohost.nmt.edu/tcc/help/pubs/tkinter/


Fabiano

unread,
Feb 28, 2010, 2:10:55 PM2/28/10
to
rantingrick ha scritto:

Thanks @All you guys for the explanations and links!
Regards

Donal K. Fellows

unread,
Mar 9, 2010, 5:06:39 PM3/9/10
to
On Feb 27, 5:29 pm, rantingrick <rantingr...@gmail.com> wrote:
> Great post Kevin! The only thing i would like to add are my two
> favorite references for learning Tkinter. They are not geared around
> the new ttk stuff, but still 95% relevant to any Tkinter-ing
>
> http://effbot.org/tkinterbook/
> http://infohost.nmt.edu/tcc/help/pubs/tkinter/

You might also want to check out:

http://www.tkdocs.com/

Which covers the ttk widgets too (and, for multi-language people, it
also handles how to do it from four languages).

Donal.

0 new messages