[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Updates about Tk

Fabiano

2/27/2010 8:05:00 AM


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
5 Answers

Sean DiZazzo

2/27/2010 8:26:00 AM

0


> 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

2/27/2010 5:11:00 PM

0

On 2/27/10 3:05 AM, Fabiano wrote:
>
> 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

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...

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/...

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.codeb.../blosxom.cgi/2009/11/19#....

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.codeb...

rantingrick

2/27/2010 5:30:00 PM

0

On Feb 27, 11:11 am, Kevin Walzer <k...@codebykevin.com> wrote:

(...snip...)

> Kevin Walzer
> Code by Kevinhttp://www.codeb...

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/tk...
http://infohost.nmt.edu/tcc/help/pub...


Fabiano

2/28/2010 7:11:00 PM

0

rantingrick ha scritto:
> On Feb 27, 11:11 am, Kevin Walzer <k...@codebykevin.com> wrote:
>
> (...snip...)
>
>> Kevin Walzer
>> Code by Kevinhttp://www.codeb...
>
> 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/tk...
> http://infohost.nmt.edu/tcc/help/pub...
>
>

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

Donal K. Fellows

3/9/2010 10:07:00 PM

0

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/tk...
> http://infohost.nmt.edu/tcc/help/pub...

You might also want to check out:

http://www.t...

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

Donal.