473,653 Members | 3,000 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python and GUI


Just wondering on what peoples opinions are of the GUIs avaiable for
Python?

All I am doing is prompting users for some data (listbox, radio
buttons, text box, ect...). Then I will have some text output, maybe
a scrolling text message as things are happening.

I have some minor things I need to do, for example, if Checkbutton X
is clicked, I need to disable TextBox Y, and I would like to display
the scrolling text (output)

Ultimately, is it worth downloading and learning some of the packages
avaiable for Python, or should I just stick to the Tkinter stuff that
is included.

More specifically, has anyone used the Qt stuff for python, easy to
use?

May 21 '07 #1
31 2460
sd******@gmail. com wrote:
Just wondering on what peoples opinions are of the GUIs avaiable for
Python?
We have used wxPython with great results. It's cross platform. Can use
native OS widgets and is easy to program. Compiles easily to exe
binaries for Windows users as well.

Best of luck,
Brad
May 21 '07 #2
On 21 May 2007 08:39:44 -0700, sd******@gmail. com wrote:
>All I am doing is prompting users for some data (listbox, radio
buttons, text box, ect...). Then I will have some text output, maybe
a scrolling text message as things are happening.

I have some minor things I need to do, for example, if Checkbutton X
is clicked, I need to disable TextBox Y, and I would like to display
the scrolling text (output)
You should be able to do all those things with TKInter (though I am
not sure about the automatted scrolling text.).
>Ultimately, is it worth downloading and learning some of the packages
avaiable for Python, or should I just stick to the Tkinter stuff that
is included.
Like Brad, I would recommend trying wxPyhton
(http://www.wxpython.org/). There is an installer for Windows. Best is
to look at the wxPython-Demo first thing. It contains a lot of
example-code to borrow from. You can both read and try the code within
the Demo-Application.

However, the documentation of the class-library is for C++ only. You
have to apply it to the python-version yourself.

I prefer wxPython to TKInter because it offers more complex widgets
namely Grids and Tabular-Lists right out of the box.

Best wishes,
Thomas
May 21 '07 #3
sd******@gmail. com wrote:
Just wondering on what peoples opinions are of the GUIs avaiable for
Python?

All I am doing is prompting users for some data (listbox, radio
buttons, text box, ect...). Then I will have some text output, maybe
a scrolling text message as things are happening.

I have some minor things I need to do, for example, if Checkbutton X
is clicked, I need to disable TextBox Y, and I would like to display
the scrolling text (output)

Ultimately, is it worth downloading and learning some of the packages
avaiable for Python, or should I just stick to the Tkinter stuff that
is included.

More specifically, has anyone used the Qt stuff for python, easy to
use?
There's PyQt thingy, imho very good and easy to learn/use, but still
powerful. I've used it for a small gui-oriented project with almost no
problems and it worked like a charm. However, sometimes I had troubles
finding useful documentation for it.
I've also tried to play with PyGTK, it's quite nice and easy (and you
have the advantage of Glade), but I don't like GTK way of creating GUI.
I haven't used Tkinter a lot, only looked at it. And I didn't like it much.

I would really suggest PyQt. (with a big IMHO :)

Petr
May 21 '07 #4
In article <11************ **********@b40g 2000prd.googleg roups.com>,
<sd******@gmail .comwrote:
>
Just wondering on what peoples opinions are of the GUIs avaiable for
Python?

All I am doing is prompting users for some data (listbox, radio
buttons, text box, ect...). Then I will have some text output, maybe
a scrolling text message as things are happening.

I have some minor things I need to do, for example, if Checkbutton X
is clicked, I need to disable TextBox Y, and I would like to display
the scrolling text (output)

Ultimately, is it worth downloading and learning some of the packages
avaiable for Python, or should I just stick to the Tkinter stuff that
is included.

More specifically, has anyone used the Qt stuff for python, easy to
use?
While PyQt is plenty wonderful, Tkinter's more than adequate,
given the requirements you've described.

May 21 '07 #5
sd******@gmail. com wrote:
Just wondering on what peoples opinions are of the GUIs avaiable for
Python?
Python has, I believe, 4 compelling choices for GUI library: Tkinter,
wxPython, PyQt, and PyGTK. Like everything in life, each has their
relative merits and downsides. Briefly, here are my feelings on each,
but I'm mostly versed in wxPython.
Tkinter:

Pros: comes with Python out of the box; terse; easy

Cons: owner-drawn (not-native OS widgets); limited in out-of box
functionality; kind of ugly
wxPython:

Pros: easy to install binary on all platforms, active development,
active friendly community of contributors, native os base widgets on all
platforms.

Cons: hard to build from source on all platforms, everything but the
kitchen sink comes with it, and some things are pretty buggy still or
abandoned.

PyQt:

Pros: looks good on all platforms, easy to install and use.
Cons: licensing issues require you to understand lots of specifics;
owner-drawn widgets.

PyGTK:

Can't comment because I haven't used it. The major con in my mind is
that (I think) you need the Gtk library to be installed on all
platforms, so on OS X / Windows the widgets won't look platform-native.

All I am doing is prompting users for some data (listbox, radio
buttons, text box, ect...). Then I will have some text output, maybe
a scrolling text message as things are happening.
I think each of the GUI libraries would be able to handle this easily.

I have some minor things I need to do, for example, if Checkbutton X
is clicked, I need to disable TextBox Y, and I would like to display
the scrolling text (output)
Again, this is simply responding to events as they happen. You set up a
callback function with your reactive code, and tell the GUI library to
call that function when the event occurs.

Ultimately, is it worth downloading and learning some of the packages
avaiable for Python, or should I just stick to the Tkinter stuff that
is included.
I think everyone should use wxPython, but I'm biased.

More specifically, has anyone used the Qt stuff for python, easy to
use?
I've used it and it is easy, yes. Relative ease I can't answer though,
because I find wxPython extremely easy due to depth of use over the years.

Shameless plug: consider using Dabo on top of wxPython - we feel it
makes wxPython even easier and more pythonic, but admittedly there's a
bit of a learning curve there too. Even though Dabo is a full
application framework originally meant for desktop database
applications, it is modular and you can choose to only use the UI
bits... http://dabodev.com

--
pkm ~ http://paulmcnett.com
May 21 '07 #6
On 2007-05-21, Cameron Laird <cl****@lairds. uswrote:
While PyQt is plenty wonderful, Tkinter's more than adequate,
given the requirements you've described.
Tkinter is easier to use for simple things. You just have to
try not to think about the fact that it's pulling a complete
Tcl interpreter into your app. It also seems to come only in
various flavors of ugly. ;)

wxPython (based on wxWidgets) is cross-platform,
industrial-strength and has native look-and-feel. It is,
however, more complex to use. In some places it's not very
"Pythonic" and shows it's C/C++ heritage (this has improved a
bit in the past couple years). There are also a couple more
Pythonic wrappers on top of wxWidgets.

pyGTK isn't a bad choice if Linux/Unix is what you care about.
GTK for Windows was still a bit sketchy the last time I looked
into it.

PyQt I haven't tried, but both Linux/Unix and Windows support
is reported to be solid.

--
Grant Edwards grante Yow! My polyvinyl cowboy
at wallet was made in Hong
visi.com Kong by Montgomery Clift!
May 21 '07 #7
sd******@gmail. com wrote:
Ultimately, is it worth downloading and learning some of the packages
avaiable for Python, or should I just stick to the Tkinter stuff that
is included.
It depends. Are you selling your application commercially/closed-source
or is it freeware/open-source? Are you deploying on several platforms,
or just one?

Here are a few things to consider:

1. Tkinter is simple to code and easy to deploy. It's a bit bare-bones
without additional packages.
2. wxPython is big, harder to learn than Tkinter, but looks good on Mac,
Windows, and *Nix. It will require users to install a lot of extra stuff
(or you'll have to bundle the extra stuff).
3. PyQt is also nice, and works well on Mac/Windows/*Nix but the free
version requires your app to be released under the GPL. That may or may
not be an issue for you. PyQt is also a large package to install.
4. PyGTK is popular on*Nix and works OK on Windows. But it doesn't run
natively on the Mac.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
May 21 '07 #8
Kevin Walzer wrote:
2. wxPython is big, harder to learn than Tkinter, but looks good on Mac,
Windows, and *Nix. It will require users to install a lot of extra stuff
(or you'll have to bundle the extra stuff).
PyInstaller builds binaries beautifully from raw py source. No need to
bundle the wx stuff. I develop on Linux, build on Windows (with
PyInstaller) and it works great. The source runs on any platform, the
Windows binaries is neat for the point and click users.

Brad
May 21 '07 #9
Hello,

My 2 cents contribution:
To me all toolkits offer nice features. It's just a matter of choice
depending on your needs.
I've personally chosen pyGTK and I use it successfully on
Linux/windows/MacOsX for my home grown softs.
The reasons of my choice:
- It looks the same on all platform (actualy I want to use the softs
on different platform and I definitly prefer that it look the same on
all of them!)
- It's easy to develop with (Glade3,...)
- It works perfectly on all platform and it's no difficult to install
(even compile!) on all of them.
- It looks nice (GTK is the Gimp ToolKit)

Let me say that I also tried TkInter (ugly :-( ), pyQt (a mess to
understand what kind of license you are allowed to use for you soft),
wxpython (it's GTK on Linux but not on other platform and thus not
looking the same on all platform...)

Just a personal view...

David

21 May 2007 08:39:44 -0700, sd******@gmail. com <sd******@gmail .com>:
>
Just wondering on what peoples opinions are of the GUIs avaiable for
Python?

All I am doing is prompting users for some data (listbox, radio
buttons, text box, ect...). Then I will have some text output, maybe
a scrolling text message as things are happening.

I have some minor things I need to do, for example, if Checkbutton X
is clicked, I need to disable TextBox Y, and I would like to display
the scrolling text (output)

Ultimately, is it worth downloading and learning some of the packages
avaiable for Python, or should I just stick to the Tkinter stuff that
is included.

More specifically, has anyone used the Qt stuff for python, easy to
use?

--
http://mail.python.org/mailman/listinfo/python-list
May 21 '07 #10

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

Similar topics

0
8283
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,...
0
8704
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8590
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6160
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
5620
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
4147
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
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.