473,511 Members | 10,700 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

gui developing

Hello,
I am flirting with the idea of developing a gui app in python as a
newbie. Which module should I use?
I have noticed that wxpython is already installed on my gentoo and the
examples on their wiki looks easy. Is it okay or should I use wax or
something else?

Mage
Jul 19 '05 #1
15 1563
I am fairly new to Python as well. However, coming from a Java
background and Swing...I jumped into Jython. It let me use my previous
swing knowledge to make GUI's. However, python comes with Tkinter
which is the 'standard' gui library. I'd suggest checking out Tkinter,
but i dont have much experience with others.

some other ones I have heard about... wxWidgest, and Python Card

Jul 19 '05 #2
Python Card wraps around wxPython.

wxPython is a wrapper around wxWidgets. Because of this, it may not
feel very "pythonic."

I personally really like wxPython -- heck it is borderline love!
wxPython isn't that hard to pick up and the folks on the mailing list
are especially helpful. wxPython's creator, Robin Dunn doesn't seem
to sleep or eat and is constantly answering questions. No, I'm
serious Robin doesn't eat or sleep -- I'm still trying to find someone
who has actually met him. I personally believe he is a robot.

Be warned though, that some people question the
"cross-platformability" of wxPython. I've been doing GUI stuff
exclusively for windows, so I can't really speak to this.

jw

On 22 Apr 2005 10:41:49 -0700, codecraig <co*******@gmail.com> wrote:
I am fairly new to Python as well. However, coming from a Java
background and Swing...I jumped into Jython. It let me use my previous
swing knowledge to make GUI's. However, python comes with Tkinter
which is the 'standard' gui library. I'd suggest checking out Tkinter,
but i dont have much experience with others.

some other ones I have heard about... wxWidgest, and Python Card

--
http://mail.python.org/mailman/listinfo/python-list

Jul 19 '05 #3
I have recently been using gtk+2 and glade2. I love glade because it
allows me to visually design my interface and then use my favorite
editor to code up all the callbacks. Best of all the UI is stored as an
xml file you just load from your python program.

For a good introduction, take a look at this article from Linux
Journal:
http://www.linuxjournal.com/article/6586

Chris

Jul 19 '05 #4
On 2005-04-22, Mage <ma**@mage.hu> wrote:
I am flirting with the idea of developing a gui app in python
as a newbie. Which module should I use? I have noticed that
wxpython is already installed on my gentoo and the examples on
their wiki looks easy. Is it okay or should I use wax or
something else?


If you need portability, then wxPython is hard to beat.
wxPython is a bit complex -- it took me a while to grasp the
concept of separate trees/hierarchies for widget layout and for
widget ownership. Though there are a few situations where it
could be useful (I've never run across any of them in my apps),
the whole ID scheme seems pretty clunky. Wax unifies the two
trees so it's simpler to learn (it's more like Tk).

Sizers in wxPython feel a log like hbox/vbox layout from TeX,
so I like that.

The Gtk port of Python is pretty decent as well, but
portability to Windows and Mac isn't as good.

I've never tried Qt.

--
Grant Edwards grante Yow! Will the third world
at war keep "Bosom Buddies"
visi.com off the air?
Jul 19 '05 #5
On 2005-04-22, Jaime Wyant <pr***********@gmail.com> wrote:
wxPython's creator, Robin Dunn doesn't seem to sleep or eat
and is constantly answering questions. No, I'm serious Robin
doesn't eat or sleep
No kidding! I think he puts more work into wxPython than a lot
of people put into their full-time jobs. Every day right after
lunchtime (USA CST), there is always a whole batch of Robin's
answers to wxPython questions on the mailing list.
Be warned though, that some people question the
"cross-platformability" of wxPython. I've been doing GUI
stuff exclusively for windows, so I can't really speak to
this.


I write (fairly simple apps) on Linux and deploy on Windows.
There is an occasional glitch, but it works far better than
anybody has any right to expect.

wxPython combined with py2exe and inno-setup can make writing a
windows app something that won't drive you to threats of
suicide.

--
Grant Edwards grante Yow! And furthermore,
at my bowling average is
visi.com unimpeachable!!!
Jul 19 '05 #6
On Friday 22 April 2005 20:07, Grant Edwards wrote:
I've never tried Qt.


Qt, in my opinion, is as excellent as python in the consistency stakes, has
the best documentation bar none, an excellent set of python bindings, the
best free layout tool, and an active and helpful community.

The killer, of course, is that there's no free windows port, so if you're
doing free software that you want to run on linux then you're stuffed.

james.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCaVAsY6W16wIJgxQRAtWfAJwJPbR788CVl2iSfHMYy0 qJLvHHZQCfePL+
ZFjpIoU3gEwcbxmyDWea8cY=
=88PZ
-----END PGP SIGNATURE-----

Jul 19 '05 #7
Mage <ma**@mage.hu> writes:
I am flirting with the idea of developing a gui app in python as a
newbie. Which module should I use?
Tkinter is the most widespread and it's pretty easy to use.
I have noticed that wxpython is already installed on my gentoo and the
examples on their wiki looks easy. Is it okay or should I use wax or
something else?


If wxpython already installed, then that's great. It's not
preinstalled on the RH9 or FC3 systems I use, and I found it an
enormous pain to install. I eventually gave up.
Jul 19 '05 #8
R. C. James Harlow wrote:
Qt, in my opinion, is as excellent as python in the consistency stakes, has
the best documentation bar none, an excellent set of python bindings, the
best free layout tool, and an active and helpful community.

The killer, of course, is that there's no free windows port, so if you're
doing free software that you want to run on linux then you're stuffed.


That situation is about to change: Qt 4 for Windows will be available
under the GPL.

http://www.trolltech.com/newsroom/an.../00000192.html

However, I haven't heard whether PyQt for Qt 4 will also be available
under the GPL.

Shane
Jul 19 '05 #9
On Friday 22 April 2005 20:26, Shane Hathaway wrote:
The killer, of course, is that there's no free windows port, so if you're
doing free software that you want to run on linux then you're stuffed.


That situation is about to change: Qt 4 for Windows will be available
under the GPL.

http://www.trolltech.com/newsroom/an.../00000192.html


Ah - I did know that, but I thought that it was Q4 2005, not Q2 2005, so
didn't bother mentioning it. That's excellent news!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD4DBQBCaVsfY6W16wIJgxQRAqXMAJiR1t69ngs6B+Y0H1hNcX FjXld5AJ0VP38a
keCysaDmXh317qcXWmbQgg==
=2YOQ
-----END PGP SIGNATURE-----

Jul 19 '05 #10
"R. C. James Harlow" <ja***@wrong.nu> writes:
On Friday 22 April 2005 20:07, Grant Edwards wrote:
I've never tried Qt.
Qt, in my opinion, is as excellent as python in the consistency stakes, has
the best documentation bar none, an excellent set of python bindings, the
best free layout tool, and an active and helpful community.


Qt's technical superiority is unchallenged (pretty much).

The killer, of course, is that there's no free windows port, so if you're
doing free software that you want to run on linux then you're stuffed.


Soon to change: Qt 4 for Windows (and the corresponding PyQt) will be
available under the GPL. Dunno when Qt 4 is scheduled for though. I
wonder if BlackAdder will carry on with roughly similar price and
licensing with Qt 4?

Also, somebody outside Trolltech was also doing a port of Qt 3 GPL to
Windows which apparently got quite a long way. Whether that effort
continues, and whether PyQt will support that 'unofficial' port, I
don't know (not sure TT are hugely happy about the port, so perhaps
PyQt's author - Phil Thompson - respecting the people at TT as I'm
sure he does, won't support it).

Poor old Phil Thompson is fated to answer the same licensing questions
forever, though - an activity I suspect he dislikes even more than GUI
application programming <wink>
John
Jul 19 '05 #11
Shane Hathaway <sh***@hathawaymix.org> writes:
R. C. James Harlow wrote: [...] That situation is about to change: Qt 4 for Windows will be available
under the GPL.

http://www.trolltech.com/newsroom/an.../00000192.html

However, I haven't heard whether PyQt for Qt 4 will also be available
under the GPL.


Yes, PyQt will be available under the same license as Qt.

The only thing left for people to gripe about post-Qt 4 is that it's
not BSD-licensed: you have to pay when you write non-free (free as in
speech) software.
John
Jul 19 '05 #12

"Jaime Wyant" <pr***********@gmail.com> wrote in message
news:ma**************************************@pyth on.org...
Python Card wraps around wxPython.

<snip>
Be warned though, that some people question the
"cross-platformability" of wxPython. I've been doing GUI stuff
exclusively for windows, so I can't really speak to this.

I'm sure there are gotchas I haven't stumbled into yet
BUT
wxPython "cross-platformability" Linux/Gnome<->Windows is amazing!

Thomas Bartkus
Jul 19 '05 #13
"Christopher De Vries" <ch*************@gmail.com> writes:
I have recently been using gtk+2 and glade2. I love glade because it
allows me to visually design my interface and then use my favorite
editor to code up all the callbacks. Best of all the UI is stored as an
xml file you just load from your python program.

[...]

Qt, wx and Gtk all have toolsets to do this. Tk too?
John
Jul 19 '05 #14
On Friday 22 April 2005 9:26 pm, John J. Lee wrote:
"R. C. James Harlow" <ja***@wrong.nu> writes:
On Friday 22 April 2005 20:07, Grant Edwards wrote:
I've never tried Qt.
Qt, in my opinion, is as excellent as python in the consistency stakes,
has the best documentation bar none, an excellent set of python bindings,
the best free layout tool, and an active and helpful community.


Qt's technical superiority is unchallenged (pretty much).
The killer, of course, is that there's no free windows port, so if you're
doing free software that you want to run on linux then you're stuffed.


Soon to change: Qt 4 for Windows (and the corresponding PyQt) will be
available under the GPL. Dunno when Qt 4 is scheduled for though. I
wonder if BlackAdder will carry on with roughly similar price and
licensing with Qt 4?


Qt 4 is scheduled for the end of Q2. The plan is that PyQt will follow "fairly
soon" after, but there will be a number of releases with classes being added
at each release. It will be some afterwards that the support matches that of
Qt 3.
Also, somebody outside Trolltech was also doing a port of Qt 3 GPL to
Windows which apparently got quite a long way. Whether that effort
continues, and whether PyQt will support that 'unofficial' port, I
don't know (not sure TT are hugely happy about the port, so perhaps
PyQt's author - Phil Thompson - respecting the people at TT as I'm
sure he does, won't support it).
With something like that you adopt a "wait and see" attitude to see if it
gains any momentum.
Poor old Phil Thompson is fated to answer the same licensing questions
forever, though - an activity I suspect he dislikes even more than GUI
application programming <wink>


But at least it means I can stop adding the phrase "but it depends of which
platform you are using" to every sentence I utter.

Phil
Jul 19 '05 #15
jj*@pobox.com (John J. Lee) writes:
Shane Hathaway <sh***@hathawaymix.org> writes:

[...]
However, I haven't heard whether PyQt for Qt 4 will also be available
under the GPL.


Yes, PyQt will be available under the same license as Qt.


Oops, s/license/licenses/
John
Jul 19 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1721
by: aj | last post by:
hi i am a newbi to python and developing a web application what do u all think is the best application framework for developing web application in python. I want a framework that supports...
9
1588
by: john | last post by:
Hi I am developing a timesheet system. It will have 3 levels of access 1)Administrator 2)Approver -- Will approve or reject the timesheet filled by employees 3)Employees -- Fill in the timesheet...
1
1577
by: Troy Erickson | last post by:
I am very new to web developing. What is the best way to create a web project. I will be using asp with vs.net. What do most people do for computers more specifically. Do I remote debug to a...
4
1957
by: | last post by:
Developing, building, and testing. How do it the best? Learning from the world leader - Microsoft I'm very interested in how the developing/build/testing workflow @ Microsoft looks like. I...
3
1421
by: Todd | last post by:
Hello, I'm looking for a book with in-depth coverage of developing server controls, particularly custom controls. Ideally, the book would have a good amount of how-to's and best practices, but...
11
1977
by: Simon | last post by:
Hi all As I'm sure is common knowledge the version of IIS included in XP Pro is limited in that you can only create 1 website in the IIS snap in. As an ASP.net developer this is a pain in the...
4
1146
by: Vivek Sharma | last post by:
Hi There, I am about to develop a windows application. I was wondering if there is any set of general guidelines I should be following when developing a windows application? Is there a...
6
2114
by: =?Utf-8?B?Sm9l?= | last post by:
Hello, I have 10 years of experience working as a Webmaster. For about an year I worked on a 3-tier ASP application which gave me a good experience with SQL Server (Stored procedures) and...
4
2424
by: Jason Huang | last post by:
Hi, I am thinking in comparing developing speed between C# Windows Form and C# Web Form applications. Assuming the scenario is that we have 2 C# coding engineers, engineer A has 2 years...
1
1705
by: rupeshjain9406 | last post by:
Can someone tell me wat will have better scope -developing software for mobiles or developing desktop applications in .net.What will be the pay of a guy who has experience in developing software...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7089
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7517
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.