[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.python

Python GUI toolkit

default

2/3/2008 3:18:00 PM

what would be the best python GUI toolkit, it must be cross platform.

i have tried gtk, but it interface are real bad and its coding was difficult
so i dropped it,

the only remaining are qt4 and wx, i would like to know if one of these or
any other toolkit is capable of creating good-looking GUI's, like in other
apps, for e.g, .net apps.

i m a noob, and willing to learn, so difficulty is no problem
13 Answers

Grant Edwards

2/3/2008 3:19:00 PM

0

On 2008-02-03, default@defaulted.default <default@defaulted.default> wrote:

> [...] was difficult so i dropped it,
>
[...]

> i m a noob, and willing to learn, so difficulty is no problem

On the contrary, it appears that difficulty is a problem. ;)

--
Grant Edwards grante Yow! Excuse me, but didn't
at I tell you there's NO HOPE
visi.com for the survival of OFFSET
PRINTING?

Torsten Bronger

2/3/2008 3:47:00 PM

0

Hallöchen!

default@defaulted.default writes:

> [...]
>
> the only remaining are qt4 and wx, i would like to know if one of
> these or any other toolkit is capable of creating good-looking
> GUI's, like in other apps, for e.g, .net apps.

I think both Qt4 and wx create good-looking GUIs, since Qt4 now
tries to use the widgets from the platform it's running on.
However, their ways of expressing things in the code are very
different. If you really have no other constraints, I'd just
program a non-trivial but very simple application in both. Then you
know which fits your brain better.

For example, I've never managed to understand this signal-slot idea
of Qt, so I use wxPython. However, many love Qt exactly for this.

Tschö,
Torsten.

--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: bronger@jabber.org
(See http://ime.... for further contact info.)

Grant Edwards

2/3/2008 4:53:00 PM

0

On 2008-02-03, Dotan Cohen <dotancohen@gmail.com> wrote:

> I would recommend Qt, as it is cross-platform and can look native on
> all systems.

Qt doesn't look native on my system. I run XFCE, and "native"
is GTK.

> Opera, KDE, GoogleEarth, Acrobat, and lots of other software
> are written in Qt.

And they don't look native on systems that don't use Qt as the
native widget set.

--
Grant Edwards grante Yow! I love FRUIT
at PICKERS!!
visi.com

Grant Edwards

2/3/2008 4:56:00 PM

0

On 2008-02-03, Torsten Bronger <bronger@physik.rwth-aachen.de> wrote:
> Hallöchen!
>
> default@defaulted.default writes:
>
>> [...]
>>
>> the only remaining are qt4 and wx, i would like to know if one of
>> these or any other toolkit is capable of creating good-looking
>> GUI's, like in other apps, for e.g, .net apps.
>
> I think both Qt4 and wx create good-looking GUIs, since Qt4 now
> tries to use the widgets from the platform it's running on.

Really? Qt uses GTK when running uder Gnome or XFCE??

--
Grant Edwards grante Yow! I will SHAVE and
at buy JELL-O and bring my
visi.com MARRIAGE MANUAL!!

Jorge Godoy

2/3/2008 5:03:00 PM

0

Grant Edwards wrote:

> On 2008-02-03, Dotan Cohen <dotancohen@gmail.com> wrote:
>
>> I would recommend Qt, as it is cross-platform and can look native on
>> all systems.
>
> Qt doesn't look native on my system. I run XFCE, and "native"
> is GTK.
>
>> Opera, KDE, GoogleEarth, Acrobat, and lots of other software
>> are written in Qt.
>
> And they don't look native on systems that don't use Qt as the
> native widget set.

But then, there's no toolkit that does.

GTK based toolkits don't look native on Qt based systems. Same for a lot of
others.

What you can define is a platform as in operating system and then go with
what the mainstream providers use for that. For Windows and Mac that is
easy, for *nix this is harder.


Torsten Bronger

2/3/2008 5:11:00 PM

0

Hallöchen!

Grant Edwards writes:

> On 2008-02-03, Torsten Bronger <bronger@physik.rwth-aachen.de> wrote:
>> Hallöchen!
>>
>> default@defaulted.default writes:
>>
>>> [...]
>>>
>>> the only remaining are qt4 and wx, i would like to know if one
>>> of these or any other toolkit is capable of creating
>>> good-looking GUI's, like in other apps, for e.g, .net apps.
>>
>> I think both Qt4 and wx create good-looking GUIs, since Qt4 now
>> tries to use the widgets from the platform it's running on.
>
> Really? Qt uses GTK when running uder Gnome or XFCE??

I said "try". You won't find a toolkit which mimics every desktop
environment. However, Qt used to ignore the current look-and-feel
deliberately.

Tschö,
Torsten.

--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: bronger@jabber.org
(See http://ime.... for further contact info.)

Grant Edwards

2/3/2008 5:17:00 PM

0

On 2008-02-03, Jorge Godoy <jgodoy@gmail.com> wrote:

>> And they don't look native on systems that don't use Qt as the
>> native widget set.
>
> But then, there's no toolkit that does.
>
> GTK based toolkits don't look native on Qt based systems.
> Same for a lot of others.

Quite true.

> What you can define is a platform as in operating system and
> then go with what the mainstream providers use for that. For
> Windows and Mac that is easy, for *nix this is harder.

*nix users are pretty tolerant of "non-native" wiget sets. I
imagine that all KDE users have certain non-Qt apps that they
use regularly and Gnome/XFCE users have non-GTK apps they use
regularly.

--
Grant Edwards grante Yow! Here I am in the
at POSTERIOR OLFACTORY LOBULE
visi.com but I don't see CARL SAGAN
anywhere!!

miller.paul.w

2/3/2008 5:51:00 PM

0

On Feb 3, 10:18 am, defa...@defaulted.default wrote:
> what would be the best python GUI toolkit, it must be cross platform.
>
> i have tried gtk, but it interface are real bad and its coding was difficult
> so i dropped it,
>
[...]

If "cross-platform," and "nice API" are your requirements, I recommend
you investigate Tkinter. I find it fairly easy to get my head around,
and it's available nearly everywhere Python is. It doesn't even
depend on gtk or qt. The widgets are fairly basic, but you can create
compound widgets in Python by composing the basic widgets, and there
are extensions like Tix and Python Megawidgets that give you more
widgets to work with.

If you want to see a couple examples of what can be done with Tkinter,
take a look at idle (the IDE that comes with most Python
distributions), and pysol (a solitaire game written in Python using
Tkinter).

Gary Herron

2/3/2008 6:07:00 PM

0

default@defaulted.default wrote:
> what would be the best python GUI toolkit, it must be cross platform.
>
> i have tried gtk, but it interface are real bad and its coding was difficult
> so i dropped it,
>
> the only remaining are qt4 and wx, i would like to know if one of these or
> any other toolkit is capable of creating good-looking GUI's, like in other
> apps, for e.g, .net apps.
>
Not true! There are *many* more widget toolkits out there. Dozens!

See: http://en.wikipedia.org/wiki/List_of_widge...

Gary Herron

> i m a noob, and willing to learn, so difficulty is no problem
>

miller.paul.w

2/3/2008 7:06:00 PM

0

I'd like to offer you one suggestion about coding your app. You'll be
best served if you can either write it as a command-line app and write
a separate GUI-front end for it, or use an abstraction layer between
your app and the display logic that allows you to easily plug in other
GUI toolkits. That way, you can support qt, GTK, wx, Tkinter, or any
combination of those just by modifying your display abstraction
layer. Your main app code never needs to be touched.

Depending on the scope of your project, this may or may not be worth
your time, but you should at least consider it.