From: Fabiano on 27 Feb 2010 03:05 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
From: Sean DiZazzo on 27 Feb 2010 03:26 > 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.
From: Kevin Walzer on 27 Feb 2010 12:11 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.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
From: rantingrick on 27 Feb 2010 12:29 On Feb 27, 11:11 am, Kevin Walzer <k...(a)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/
From: Fabiano on 28 Feb 2010 14:10 rantingrick ha scritto: > On Feb 27, 11:11 am, Kevin Walzer <k...(a)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/ > > Thanks @All you guys for the explanations and links! Regards
|
Next
|
Last
Pages: 1 2 Prev: Karrigell 3.0.4 published Next: Open all sites that blocked in your country from here |