Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 16th, 2007, 9:09 PM   #1
inhahe
Newbie
 
Join Date: Sep 2007
Posts: 2
Rep Power: 0 inhahe is on a distinguished road
Which GUI toolkit is best for me?

- i want it to be easy to learn and not overly complicated to program. consistency is good too.
- i may be using almost all custom controls, plus menus.
- being easy to learn includes having adequate documentation for a beginner at gui toolkits to do at least what i want to do, preferably in python, so i don't have to figure out how to translate from c++
- speed is important. i've read that gtk is faster than qt..?
- i've read that qt has an advantage in that it uses signals and slots more than gtk, which uses more callbacks, which makes qt easier to debug. but since python has tracebacks, perhaps callbacks will be equally easy to debug..?
- i've heard something about wxwidgets being inconsistent. i'm also thinking it's slower because of the extra wrapper layer. and its main benefit, having native look and feel, is probably irrelevant to me since i'll be using primarily custom controls.
- i'll have to be running other processes, written in C, in the background and connecting with the GUI.
inhahe is offline   Reply With Quote
Old Sep 17th, 2007, 5:18 AM   #2
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 14 Arevos is on a distinguished road
If speed is that important, you should be developing it in C, rather than Python. I suspect that the bottleneck is going to be your Python code, rather than an external GUI library written in C or C++.

Perhaps the most pertinent questions are: what OS are you using, and what license are you developing under? GTK is rather clunky under Windows and OSX, and Qt is only available for free under the GPL - so you either need to pay for a commercial license, or release your application as open source.

Personally, I prefer Qt, but if you want to develop applications for Windows without necessarily releasing the source code, and you don't want to stump up for the Qt license fee, then your best bet is wxWidgets.
Arevos is offline   Reply With Quote
Old Sep 17th, 2007, 2:22 PM   #3
inhahe
Newbie
 
Join Date: Sep 2007
Posts: 2
Rep Power: 0 inhahe is on a distinguished road
Quote:
Originally Posted by Arevos View Post
If speed is that important, you should be developing it in C, rather than Python. I suspect that the bottleneck is going to be your Python code, rather than an external GUI library written in C or C++.

Perhaps the most pertinent questions are: what OS are you using, and what license are you developing under? GTK is rather clunky under Windows and OSX, and Qt is only available for free under the GPL - so you either need to pay for a commercial license, or release your application as open source.

Personally, I prefer Qt, but if you want to develop applications for Windows without necessarily releasing the source code, and you don't want to stump up for the Qt license fee, then your best bet is wxWidgets.
using Windows. if I release my software I'll try to release it for windows, max and linux. when you say gtk is clunky, do you mean its widgets appear awkward? because i plan to use custom widgets anyway. (so one of my considerations is which is best for writing custom widgets.)

i've wondered about the python code being the bottleneck. but i've written some python scripts, and python seems to be pretty fast, at least for things that don't require a whole lot of processing. but i've yet to make an entire application in Python, so you could be right. although I'd write it in C#, I think that would be a lot less of a pain in the ***

Last edited by inhahe; Sep 17th, 2007 at 2:33 PM.
inhahe is offline   Reply With Quote
Old Sep 17th, 2007, 5:38 PM   #4
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 14 Arevos is on a distinguished road
Python's fast enough for most things, but then so are GUI toolkits. If you're going with purely custom widgets, you might even want to think about a raw graphics library like pygame.

And yep, GTK's widgets don't integrate with windows as well as the others, though a custom look would be okay.

You might also want to try out IronPython, which is Python for .NET. It's been in development a while, and at version 1.1, it's pretty stable. Get all the GUI advantages of C# with the syntax of Python
Arevos is offline   Reply With Quote
Old Sep 20th, 2007, 10:27 PM   #5
Dietrich
Expert Programmer
 
Dietrich's Avatar
 
Join Date: Feb 2005
Posts: 516
Rep Power: 13 Dietrich is on a distinguished road
Talking

Actually, the GUI toolkit that comes with visual C# is pretty dismal. Not much fancy stuff there! The wxPython toolkit can easily run circles around that thing!

In my experience Py2Exe and wxPython work very well together for distributions.
__________________
Write your bugs with C, inherit them with C++, rock 'em with Python
Dietrich is offline   Reply With Quote
Old Sep 23rd, 2007, 7:48 PM   #6
Grich
Professional Programmer
 
Grich's Avatar
 
Join Date: Sep 2007
Location: Sydney - Australia
Posts: 424
Rep Power: 11 Grich is on a distinguished road
I also recommend wxPython as well. I very rarely have to take up Python for GUI development, but it is still my favourite.
Grich is offline   Reply With Quote
Old Dec 9th, 2007, 10:13 AM   #7
myworkstation
Newbie
 
Join Date: Dec 2007
Posts: 8
Rep Power: 0 myworkstation is on a distinguished road
Re: Which GUI toolkit is best for me?

wxPython best.
myworkstation is offline   Reply With Quote
Old Dec 9th, 2007, 10:34 AM   #8
Jessehk
The Oblivious One
 
Jessehk's Avatar
 
Join Date: May 2005
Location: Ontario, Canada
Posts: 661
Rep Power: 13 Jessehk is on a distinguished road
Re: Which GUI toolkit is best for me?

Qt is great. It is a C++ toolkit, but there are very complete Python bindings (PyQt), and less complete Ruby bindings.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS!
Jessehk is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[WIN32 API] GUI widgets font size Klarre C++ 3 Sep 3rd, 2007 2:08 PM
question regarding GUI factory. rwm C++ 3 Aug 17th, 2007 9:58 AM
Which is easier for making a GUI program? 357mag Java 6 Jul 29th, 2007 6:08 PM
Programming a simple GUI bulio Other Scripting Languages 12 Jun 9th, 2007 3:29 PM
Ruby Visual GUI Toolkit infinite05 Other Programming Languages 2 Jan 15th, 2006 10:32 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:29 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC