473,739 Members | 11,054 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 2683
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
10441
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 app with a listbox displaying all addresses with the ability to add/modify/delete.
6
1820
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" out in their implementation, as I have the luxury of slack deadlines for the next little while. ...
8
1672
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
1558
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 calling a standard set of API accross multiple platforms (unlike MFC) and if the Windows port is...
44
3698
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, .etc. It's helpful for a GUI beginner. Thank you.
18
2034
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 death. I had been dead for billions and billions of years before I was born, and had
0
1238
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
861
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
14573
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 anybody kknows how to do that, if you have any idea please guide me through how to reach to these....
0
8969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8792
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
9266
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8215
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6754
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6054
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4570
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4826
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3280
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

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.