473,549 Members | 2,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

My python programs need a GUI, wxPython or PyQt4?

So, I've reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I've come to the
conclusion that I need a GUI. So, which of the two packages should I
learn, and which one is easier to pick up?
Thanks in advance!

Daniel
Jan 23 '07 #1
25 2665
Daniel Jonsson wrote:
So, I've reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I've come to the
conclusion that I need a GUI. So, which of the two packages should I
learn, and which one is easier to pick up?
Thanks in advance!

Daniel
You may also want to think about licensing issues. I think the license
for QT is more restrictive than wx. Also, you might want to consider
Tkinter.
Jan 23 '07 #2
Daniel Jonsson wrote:
So, I've reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I've come to the
conclusion that I need a GUI. So, which of the two packages should I
learn, and which one is easier to pick up?
Thanks in advance!
Wow...are you *trying* to start a flamewar? :)

Anyway, here are a few points to think about. This is by no means
exhaustive, and I'm sure others will add to (and/or correct) what I say.
I'm most familiar with Qt, so my comments will be directed that way.

Qt4 *is* GPL, but you can only use it for free if the software you're
writing is GPL. So, if there is no issue with you making your source code
public, there is no problem using Qt. wxWindows is essentially LGPL, so
might be easier to use, depending on how closely you need to hold your
source code.

wxWindows uses Gtk widgets on *nix. In *my opinion* the Qt widgets look
better, but that's just me.

From what I've seen of the PyQt4 API, it's very clean and easy to use.

You can design your forms using the standard QtDesigner and compile them to
Python by using py-uic. You can also load .ui files at run time if you
want. I have no idea of the form design facilities in wxWindows, others
can add their input there.

It's very easy to create forms with QtDesigner. And also easy to make sure
they still nicely laid out and proportionate by using layouts and spacers.

Anyway, those are the thoughts off the top of my head, I'll chime in again
if I think of more.

j

--
Joshua Kugler
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ Â*ID 0xDB26D7CE

--
Posted via a free Usenet account from http://www.teranews.com

Jan 23 '07 #3
On Jan 23, 2007, at 4:01 PM, Daniel Jonsson wrote:
So, I've reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I've come to the
conclusion that I need a GUI. So, which of the two packages should I
learn, and which one is easier to pick up?
Thanks in advance!

Daniel
Don't forget PyGTK (http://www.pygtk.org), and Tkinter!

You should really try them all out and make your own decision, IMHO.
I'm actually using pyobjc for my work, but if I had to support other
environments, I'd be using PyGTK. (Although I *was* happy with PyQt
(3) when I was using it).

Jan 23 '07 #4
hg
Daniel Jonsson wrote:
So, I've reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I've come to the
conclusion that I need a GUI. So, which of the two packages should I
learn, and which one is easier to pick up?
Thanks in advance!

Daniel
It is best you try both ... I feel they have the same quality.

The cross plateform issue depends on your needs/constraints ... I need
cross-platform for commercial applications so I went for wx

hg

Jan 23 '07 #5
"Daniel Jonsson" <no*@set.sewrit es:
So, I've reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I've come to the
conclusion that I need a GUI. So, which of the two packages should I
learn, and which one is easier to pick up?
Thanks in advance!
I've always found tkinter to be adequate so far. The widgets look a
little bit crude compared with other toolkits, and there's less fancy
functionality, but it's fairly easy to program and it's included with
Python. For internal use where you don't need a lot of visual
slickness to sell the product, it may be ok.

Another possibility is embed a web server in your application and use
a browser interface for your gui. That makes it easy to run the
application on a separate machine from the user, among other things,
even if you don't try to support multiple simultaneous users like a
real web server normally would have to.
Jan 23 '07 #6
On 1/23/07, Daniel Jonsson <no*@set.sewrot e:
So, I've reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I've come to the
conclusion that I need a GUI. So, which of the two packages should I
learn, and which one is easier to pick up?
Thanks in advance!
I strongly prefer the look and feel of wxPython, but I have to write
apps that run on Windows and Linux, and wxPython looks great on both.

If you do go with wxPython, I'd strongly recommend using the Dabo
framework, as they wrap the raw and somewhat ugly wxPython code
(inherited from its C++ roots) into something much more Pythonic and
consistent. Apps that took me all day in wxPython take me a couple of
hours using the dabo.ui module.

--

# p.d.
Jan 23 '07 #7
I've downloaded both the wxPython and the PyQt4 package, and by the
first impression I must say that the PyQt4 system had a very
compelling presentation. From what I can understand from the feedback
I've gotten so far is that the wxPython is a better choice when it
comes to compability (with linux), and it's free even if I want to
create applications and sell them.
So, from what I understand I will have to go with PyQt4 since (from
my understanding):
1. I will not sell the applications I'm working with since they will
only be used by the internal QA at a computer game company.
2. There seems to be a lot of documentation available for PyQt4.
3. PyQt4 seems to be easier to learn.
4. My programs does not need to support Linux or Unix.
Or am I wrong? Flame people, for the love of God, flame!! :)

-Daniel
Jan 23 '07 #8
Daniel wrote:
I've downloaded both the wxPython and the PyQt4 package, and by the
first impression I must say that the PyQt4 system had a very
compelling presentation. From what I can understand from the feedback
I've gotten so far is that the wxPython is a better choice when it
comes to compability (with linux), and it's free even if I want to
create applications and sell them.
So, from what I understand I will have to go with PyQt4 since (from
my understanding):
1. I will not sell the applications I'm working with since they will
only be used by the internal QA at a computer game company.
Even that is getting on shaky ground, at least according to Troll Tech.
See: http://www.trolltech.com/developer/knowledgebase/190/ So, write it
for internal use, and put up for distribution on your personal web site
(pending company approval, of course).

j

--
Joshua Kugler
Lead System Admin -- Senior Programmer
http://www.eeinternet.com
PGP Key: http://pgp.mit.edu/ Â*ID 0xDB26D7CE

--
Posted via a free Usenet account from http://www.teranews.com

Jan 24 '07 #9
Hi,

I known this can be impossible but what about an "HTML" GUI ?

Daniel Jonsson wrote:
So, I've reached the point where my building pipeline tools actually
needs to be used by other people in my company. By this reason I
actually need to think about the usability, and I've come to the
conclusion that I need a GUI. So, which of the two packages should I
learn, and which one is easier to pick up?
Thanks in advance!

Daniel
Jan 24 '07 #10

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

Similar topics

37
10386
by: Ubaidullah Nubar | last post by:
Hi, How well is Python suited for developing database based applications? I am new to Python so please bear with me if some of the questions are too simple. I specifically have the following questions: 1. Is there an example of a simple data-entry application written in Python using a GUI interface? Something like a simple address book...
6
1810
by: Michael L. Labbe | last post by:
Hello. I'm an experienced programmer who is evaluating learning Python if it is applicable to a few projects. The programs I am going to list are production software - they are not throwaway toy projects, but will actually have real world application. I've spent years writing C++ and Perl code, but I would like to try "this Python language"...
8
1659
by: Raghul | last post by:
Hi, Which of the UI I can used for my program that I can use both in windows and in Linux. Is it possible for me to use Wxpython for my program so that it can run on both the windows and linux machine? Will it be platform independent?
4
1549
by: Sathyaish | last post by:
My question will sound daft to the good old craftsmen, but they will excuse my nescience on the subject. I come new to the Pythonic world from the land of .NET languages, VB6 and some familiarity in C and C++. I just read about wxWindows last night. From my understanding, it is a GUI framework like MFC that lets you create UI apps with ease...
44
3652
by: jiang.haiyun | last post by:
Now i began to learn GUI programming. There are so many choices of GUI in the python world, wxPython, pyGTK, PyQT, Tkinter, .etc, it's difficult for a novice to decide, however. Can you draw a comparison among them on easy coding, pythonish design, beautiful and generous looking, powerful development toolkit, and sufficient documentation,...
18
2012
by: W. Watson | last post by:
What do I download to use Python with MX XP Pro on an ASUS 4 year old motherboard? I would guess a good book source for starters would be the O'Reilly book. Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet ""I do not fear...
0
1226
by: Matteo Bertini | last post by:
#### PyQt3Support - Python bindings for Qt3Support #### http://www.develer.com/oss/PyQt3Support #### What is this? PyQt3Support is an extension to PyQt4 that adds bindings to Qt's Qt3Support library for usage from the Python language. This is very helpful to migrate existing PyQt3 applications to PyQt4.
0
856
by: Robin Dunn | last post by:
Hi All, A set of wxPython binaries for Python 2.6 on Win32, Win64 and Mac OS X are now available at http://wxpython.org/download.php What is wxPython? ----------------- wxPython is a GUI toolkit for the Python programming language. It
3
14550
by: danesh1354 | last post by:
Hi All, First I need to construct a text editor by python programming and add this code to a biger code that has been written before, and i would like that by my code for this editor have a capability to save it into special file name and format, for instance if i want to save it to a file with XML extention format like A.xml, wondering if...
0
7446
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7808
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3498
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1935
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 we have to send another system
1
1057
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.