GUI toolkits with Tkinter's .pack() alternative
noname9968 at gmail.com
Thu Mar 27 06:51:59 CET 2008
Guilherme Polo wrote:
> 2008/3/26, Alex9968 <noname9968 at gmail.com>:
>> Hi all,
>> I use Tkinter's Pack widget geometry manager (I really prefer it over
>> using visual GUI designers), so my question is which other GUI toolkits
>> have similar functionality.
> The geometry manager isn't related to using GUI designers tools at
> all. And each toolkit has it's own way to do the things, wxPython uses
> sizers, PyGtk uses containers.
Well, the geometry manager isn't *directly* related to using GUI
designers, but as Pack arranges widgets automatically, using GUI
designers isn't required, while with geometry managers that don't, GUI
designers are necessary (if you start placing widgets programmatically,
you'll end up reinventing something like Tkinter's Pack or Grid geometry
manager). I hope I can be understood clearly this time ;-)
>> Secondly, I like the detailed widget borders configuration possible in
>> Tkinter, which can be used to tweak GUI look, and wonder if other
>> toolkits support it. With Tkinter's case, I like the resulting (tweaked)
>> look in Windows, but I'm afraid it can be quite different (and ugly) on
>> other platforms.
> You sure can, but differently.
I suppose any toolkit allows setting parameters like "no border", "flat
border" and "3d border", but which ones can set ANY type of border to
ANY widget like Tkinter does? For example set GROOVE border to buttons
and text widgets (instead of traditional wide raised/lowered borders),
which is cool (in my opinion).
>> (The reason I ever consider moving from Tkinter is some inconveniences,
>> involving for example window scrolling, plus its smaller amount of
>> widgets compared to some other toolkits, plus its (rumored) ugly look on
>> certain environments. I will not necessary change the toolkit, but I
>> have to consider it)
> I'm planning to "solve" this, I'm suggesting inclusion of Ttk into
> Tkinter for upcoming GSoC. For now you could try using Tile extension,
> and update to Tk 8.5. If you don't want to use extensions, then you
> will have to wait or change the toolkit for now.
Thanks. I haven't heard of Tile before, now I will keep this in mind.
You forgot to mention WHAT you're planning to solve ;-) , so I have to
add that Tile is modernization of Tk widgets (so it fixes ugly look).
>> Could anyone with experience in different toolkits help, please
More information about the Python-list