charomie, GUI toolkit for Python

0 views
Skip to first unread message

Boh Yap

unread,
Sep 6, 2009, 3:56:43 PM9/6/09
to pyth...@googlegroups.com
hi Charomie,

I thought better to start this as a new thread...

For GUI toolkits there are 3 common OSS ones and they all have Python
toolkits...

PyGTK for GTK (Gnome Tool Kit, Gnome is used by quite a number of
Linux distros...)

PyQT, for QT the GUI toolkit used by KDE, agian popular with various
Linux distros.

WxWindows, this suposedly the easiest of the 3, I havn't used it but
Eric Raymond recommends this for Python.

Both QT, WxWindows are cross platform, ie: write once and deploy on
all platforms (Mac, Win, Linux), of course you need the libraries
installed on the client side. And it will also attempt to adapt to the
'local' look & feel.

Not so sure about GTK.

But as I say, I have not used any of these.

Since I have discoverd Web Deployment, all my work has been done with
Web/HTML as the 'View', presentation mechanism (as in Model, View
Controller, MVC). I feel that xhtml with Ajax can do almost everything
I need, PLUS you get remote/internet access
and cross-platform capability for free! So for me there is no reason
(so far) to go with a GUI toolkit. But that's just me ;-)

Just don't design for IE only!

--
#-------
regds,

Boh Heong, Yap

CL Chow

unread,
Sep 6, 2009, 10:05:54 PM9/6/09
to pyth...@googlegroups.com
shall I say, django ?

sweemeng ng

unread,
Sep 6, 2009, 10:18:53 PM9/6/09
to pyth...@googlegroups.com
GTK does work on windows, look at GIMP, it works windows, and is written in GTK

On Mon, Sep 7, 2009 at 3:56 AM, Boh Yap <bhy...@gmail.com> wrote:

CL Chow

unread,
Sep 6, 2009, 10:23:33 PM9/6/09
to pyth...@googlegroups.com
but you have to install the gtk whatever on windows...
i prefer Qt :)

sweemeng ng

unread,
Sep 6, 2009, 10:26:13 PM9/6/09
to pyth...@googlegroups.com
And you also need to install the QT library also. As with the GTK.

Mohammed Firdaus

unread,
Sep 6, 2009, 11:09:20 PM9/6/09
to pyth...@googlegroups.com
Hi,

GTK works on Windows but the last time I looked it didn't use native widgets (native widgets are controls like buttons, lists, text boxes etc.. that are provided by the operating system's UI toolkit) so your application will look slightly different from the typical Windows application since their emulation of the Windows look and feel isn't perfect. If GIMP on Windows looks funny, this is why.

QT used to have this problem since it used to draw the widgets out themselves but I think it has the option to use native widgets now (according to wikipedia - I can't find info to back this up on their site though, it still looks like they're hand drawing)

wxWidgets philosophy is to always use native widgets on all platforms unless there isn't an equivalent widget on a particular platform in which case they would emulate that particular widget.

However, these days, it's arguable whether or not native look and feel is important. Just look at the number of popular Windows applications that don't use the native Windows look and feel  - Firefox, Opera, iTunes.

Thanks,

Mohammed Firdaus

Jeremy Johnson

unread,
Sep 7, 2009, 6:04:20 PM9/7/09
to pyth...@googlegroups.com
Hey don't forget about Mac where native look and feel is a MUST! :)...  so when Firdaus says GTK wil look slightly different from the typical windows ( or for that matter Mac) application.  What he is really trying to say is a GTK app will look butt ugly :)  Which is why it fits in so well in the Gnome Desktop :)  That's why QT is a more popular cross platform library, which by the way also is gaining support on the mobile environment as well.

just my .02 ;)

Jeremy
--
Jeremy Johnson

Charomie

unread,
Sep 8, 2009, 5:29:42 AM9/8/09
to python.my
if the problem was like that, maybe i should try all of them and see
which one i can make my first button and windows

On Sep 7, 3:04 pm, Jeremy Johnson <johnso...@gmail.com> wrote:
> Hey don't forget about Mac where native look and feel is a MUST! :)...  so
> when Firdaus says GTK wil look slightly different from the typical windows (
> or for that matter Mac) application.  What he is really trying to say is a
> GTK app will look butt ugly :)  Which is why it fits in so well in the Gnome
> Desktop :)  That's why QT is a more popular cross platform library, which by
> the way also is gaining support on the mobile environment as well.
>
> just my .02 ;)
>
> Jeremy
>
> On Mon, Sep 7, 2009 at 11:09 AM, Mohammed Firdaus
> <firdaus.ha...@gmail.com>wrote:
>
>
>
> > Hi,
>
> > GTK works on Windows but the last time I looked it didn't use native
> > widgets (native widgets are controls like buttons, lists, text boxes etc..
> > that are provided by the operating system's UI toolkit) so your application
> > will look slightly different from the typical Windows application since
> > their emulation of the Windows look and feel isn't perfect. If GIMP on
> > Windows looks funny, this is why.
>
> > QT used to have this problem since it used to draw the widgets out
> > themselves but I think it has the option to use native widgets now
> > (according to wikipedia - I can't find info to back this up on their site
> > though, it still looks like they're hand drawing)
>
> > wxWidgets philosophy is to always use native widgets on all platforms
> > unless there isn't an equivalent widget on a particular platform in which
> > case they would emulate that particular widget.
>
> > However, these days, it's arguable whether or not native look and feel is
> > important. Just look at the number of popular Windows applications that
> > don't use the native Windows look and feel  - Firefox, Opera, iTunes.
>
> > Thanks,
>
> > Mohammed Firdaus
>
> > On Mon, Sep 7, 2009 at 10:26 AM, sweemeng ng <swees...@gmail.com> wrote:
>
> >> And you also need to install the QT library also. As with the GTK.
>
> >> On Mon, Sep 7, 2009 at 10:23 AM, CL Chow <klrkdek...@gmail.com> wrote:
>
> >>> but you have to install the gtk whatever on windows...
> >>> i prefer Qt :)
>

Charomie

unread,
Sep 8, 2009, 5:32:23 AM9/8/09
to python.my

oh
this is cool
maybe i try it

Charomie

unread,
Sep 8, 2009, 5:32:58 AM9/8/09
to python.my
so, what the best for you sir?


On Sep 6, 8:09 pm, Mohammed Firdaus <firdaus.ha...@gmail.com> wrote:
> Hi,
>
> GTK works on Windows but the last time I looked it didn't use native widgets
> (native widgets are controls like buttons, lists, text boxes etc.. that are
> provided by the operating system's UI toolkit) so your application will look
> slightly different from the typical Windows application since their
> emulation of the Windows look and feel isn't perfect. If GIMP on Windows
> looks funny, this is why.
>
> QT used to have this problem since it used to draw the widgets out
> themselves but I think it has the option to use native widgets now
> (according to wikipedia - I can't find info to back this up on their site
> though, it still looks like they're hand drawing)
>
> wxWidgets philosophy is to always use native widgets on all platforms unless
> there isn't an equivalent widget on a particular platform in which case they
> would emulate that particular widget.
>
> However, these days, it's arguable whether or not native look and feel is
> important. Just look at the number of popular Windows applications that
> don't use the native Windows look and feel  - Firefox, Opera, iTunes.
>
> Thanks,
>
> Mohammed Firdaus
>
> On Mon, Sep 7, 2009 at 10:26 AM, sweemeng ng <swees...@gmail.com> wrote:
> > And you also need to install the QT library also. As with the GTK.
>
> > On Mon, Sep 7, 2009 at 10:23 AM, CL Chow <klrkdek...@gmail.com> wrote:
>
> >> but you have to install the gtk whatever on windows...
> >> i prefer Qt :)
>

Mohammed Firdaus

unread,
Sep 8, 2009, 6:21:28 AM9/8/09
to pyth...@googlegroups.com
Out of the three, I've only used PyGTK. It's a great toolkit with a decent drag and drop UI builder called Glade. I remember being very productive with it. However, I wouldn't recommend PyGTK unless you're targetting Gnome/Linux.

If you're targeting Windows or if you want to write a cross platform application, I'd recommend that you try out wxPython first with the wxGlade GUI builder.

Thanks,

Mohammed Firdaus

CL Chow

unread,
Sep 8, 2009, 6:41:36 AM9/8/09
to pyth...@googlegroups.com
Agree, wxwidgets is a way to start... if you've been playing with other programming languages, sure you mess with this wx thingy before... 

I'm a PyQt user myself though :)
Reply all
Reply to author
Forward
0 new messages