473,662 Members | 2,666 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fast and easy GUI prototyping with Python

Which tools would you use? I want the interface design to be as easy
and fast as possible, all ideology aside. I'm considering either
IronPython+Visu al Studio or Python+Qt -- but I'm open for other
suggestions.

Visual Studio seems to offer the easiest solution, but is IronPython
stable enough? How easy is the IronPython/Visual Studi integration?
What about IronPython Studio?
Jun 27 '08 #1
10 4191
er****@gmail.co m <er****@gmail.c om>:
Which tools would you use? I want the interface design to be as easy
and fast as possible, all ideology aside. I'm considering either
IronPython+Visu al Studio or Python+Qt -- but I'm open for other
suggestions.
I'm using the latter, and am perfectly happy with a combination of Qt
Designer as GUI editor and emacs as code editor.

--
Freedom is always the freedom of dissenters.
(Rosa Luxemburg)
Jun 27 '08 #2
On Jun 21, 3:36 pm, ero...@gmail.co m wrote:
Which tools would you use? I want the interface design to be as easy
and fast as possible, all ideology aside. I'm considering either
IronPython+Visu al Studio or Python+Qt -- but I'm open for other
suggestions.

Visual Studio seems to offer the easiest solution, but is IronPython
stable enough? How easy is the IronPython/Visual Studi integration?
What about IronPython Studio?
I've had success using wxPython in conjunctin with wxGlade. wxGlade is
quite flexible, allows quick previews and generates code that's not
bad. The wxPython binding is very well supported and works nicely in
practice. And, best of all, this solution is both free and completely
cross-platform.

Eli
Jun 27 '08 #3
On 21 ÉÀÎ, 15:36, ero...@gmail.co m wrote:
Which tools would you use? I want the interface design to be as easy
and fast as possible, all ideology aside. I'm considering either
IronPython+Visu al Studio or Python+Qt -- but I'm open for other
suggestions.

Visual Studio seems to offer the easiest solution, but is IronPython
stable enough? How easy is the IronPython/Visual Studi integration?
What about IronPython Studio?
Use PyQt. You will gain great portability +all the functionality built
in qt.
You can try PyGTK also, though i wont recommend it.
Jun 27 '08 #4
On Jun 21, 1:36*pm, ero...@gmail.co m wrote:
Which tools would you use? I want the interface design to be as easy
and fast as possible, all ideology aside. I'm considering eitherIronPytho n+Visual Studio or Python+Qt -- but I'm open for other
suggestions.

Visual Studio seems to offer the easiest solution, but isIronPython
stable enough? How easy is theIronPython/Visual Studi integration?
What aboutIronPython Studio?
IronPython 1 is very stable. IronPython 2 is still in beta.

The IronPython 1 and Visual Studio 2005 integration (via the SDK) is
pretty good. Personally I think IronPython Studio is a bit immature -
and I don't like the way it generates Python code anyway.

The Windows Forms designer in Visual Studio is pretty good.
Unfortunately better than most GUI designers available for other
Python compatible toolkits. I still don't like the designer for
creating UIs with fluid layouts - I don't think it handles them very
well.

In my opinion, the best way to use the designer is to actually
generate C# rather than IronPython code. You can then subclass from
IronPython and implement the programmed behaviour - using the designer
only for the UI layout.

Windows Forms is very cross platform now with Mono. Mono now has full
coverage of the .NET 2.0 winforms APIs.

Michael Foord
http://www.ironpythoninaction.com/
Jun 27 '08 #5
Thanks for your input. The prototype will be running on Windows only.
Portability and being able to develop on other platforms would be a
bonus, but is not a requirement. I guess the choice is going to be
between Visual Studio and Qt. Of importance is:

1) Being able to develop and change (dummy) GUI prototypes very fast,
i.e. drag and drop. I've tried Visual Studio's form designer -- it
seems quite capable. Don't know about Qt's designer -- is it as easy
and fast to use?

2) The Qt vs. .NET API. I have no experience with Qt's API and a
rudimentary experience with the .NET API (seems powerfull but also big
and complex).

Michael: Interesting suggestion to just subclass C#, maybe that's the
way to go.
Jun 27 '08 #6
On Jun 21, 6:15*pm, ero...@gmail.co m wrote:
Thanks for your input. The prototype will be running on Windows only.
Portability *and being able to develop on other platforms would be a
bonus, but is not a requirement. I guess the choice is going to be
between Visual Studio and Qt. Of importance is:

1) Being able to develop and change (dummy) GUI prototypes very fast,
i.e. drag and drop. I've tried Visual Studio's form designer -- it
seems quite capable. Don't know about Qt's designer -- is it as easy
and fast to use?

2) The Qt vs. .NET API. I have no experience with Qt's API and a
rudimentary experience with the .NET API (seems powerfull but also big
and complex).

Michael: Interesting suggestion to just subclass C#, maybe that's the
way to go.
I found the Windows Forms APIs pretty straightforward . You can get a
good introduction to the .NET APIs from "IronPython in Action". ;-)

Michael Foord
http://www.ironpythoninaction.com/
Jun 27 '08 #7
er****@gmail.co m wrote:
2) The Qt vs. .NET API. I have no experience with Qt's API and a
rudimentary experience with the .NET API (seems powerfull but also big
and complex).
Qt's API is very very good. Easy to use and extremely powerful. Note
that in Python a number of Qt's APIs are not used in favor of Python
native apis for things like file and socket I/O, IPC, Threads, and so
forth. Additionally, PyQT does allow you the flexibility to move to
other platforms. That need may not exist for you now, but it never
makes sense to me to needlessly lock yourself down. As far as GUI
design goes, Qt and SWF would be on par, likely. It's a bit of a
misnomer to be comparing Qt to the .NET API. In IronPython you can of
course leverage all the class libraries in the CLR, but most python
programmers prefer to use python native libraries wherever possible. If
you follow that, then it's SWF that compares to Qt. I've not used VS
2008's SWF gui designer, but of all the designers I've seen so far, Qt's
Designer is the best I've ever used. I don't ever use code generation
(GUIs should be created from the XML definitions), so integration with
an IDE is not a concern for me.

One issue about Qt is licensing, which could completely kill it for you.
Although technically PyQt would insulate you from this issue to a
point, TrollTech will not license Qt for your use in a non-GPL project
if you began developing the project using the GPL version of Qt.
Jun 27 '08 #8
Michael Torrie <to*****@gmail. com>:
er****@gmail.co m wrote:
>2) The Qt vs. .NET API. I have no experience with Qt's API and a
rudimentary experience with the .NET API (seems powerfull but also big
and complex).

Qt's API is very very good. Easy to use and extremely powerful. Note
that in Python a number of Qt's APIs are not used in favor of Python
native apis for things like file and socket I/O, IPC, Threads, and so
forth.
The support for signals and slots is imho a strong reason to prefer Qt apis
over standard python apis, especially when it comes down to asynchronous
programming (for instance, large network transfers like file downloads).
I've not used VS 2008's SWF gui designer, but of all the designers I've
seen so far, Qt's Designer is the best I've ever used.
full ack.

--
Freedom is always the freedom of dissenters.
(Rosa Luxemburg)
Jun 27 '08 #9
Pete Kirkham wrote:
2008/6/21 Val-Amart <e.*****@gmail. com>:
>Use PyQt. You will gain great portability +all the functionality built
in qt.
You can try PyGTK also, though i wont recommend it.
Why would you not recommend it? I've been using it for a mall project, and
would like to know if there's some pit waiting for me to fall into.
The only pitfall is Mac compatibility. OS X support in GTK is still
under development, and much harder to get running than Qt. I guess one
other minor thing is that on win32 it's not quite native-looking, but
pretty darn close.

If Gtk provides everything you need, then there's no reason not to use
it. I personally prefer it to Qt, although Qt is quite far ahead of Gtk
in many ways (including CSS to style widgets). GTK's licensing is more
appropriate for closed-source projects than Qt under the GPL (and
cheaper too).
Jun 27 '08 #10

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

Similar topics

30
2750
by: Dave Allison | last post by:
Oh no, not another "check out my cool new language" posting :-) For about 5 years now, I have been developing a scripting/prototyping language that is now available on the net. It's called Aikido and was born in Sun Labs, but has been released as open source. I no longer work for Sun, but am continuing to use and develop it. The language has a syntax similar to C++ and Java but is aimed at adhoc and prototyping tasks. Unlike other...
32
12458
by: dan | last post by:
It would be an understatement to say I love this language. What used to take me all day now takes 3 hours, and I can spend the rest of the time on my bike thinking about the problems from a high level instead of wrestling with arcane compiler problems, etc. Back in the day, when looking at an interpreted language (or even compiled ones) the first thing I would ask is, "how fast is it?" These days, with 1ghz processor machines selling...
9
2668
by: Carl | last post by:
I have been using Python for quite some time now and I love it. I use it mainly for explorative computing and numerical prototyping, ie testing and trying out different kinds of algorithms and computational schemes. The use of Python as my first-choice language has made me extremely productive. Now, I have always believed that Python is a poor performer in terms of numerical speed. My experience, however, is that the efficient use of...
1
1806
by: cainlevy | last post by:
Hey all, What are the pros and cons of defining methods in the constructor vs through the prototype? For example: Constructing: ------------- function MyObj() { this.MyMethod = function() {};
10
2129
by: Burton Samograd | last post by:
Hi, Is there any way to 'prototype' functions in python, as you would in C? Would that be what the 'global' keyword is for, or is there a more elegant or 'pythonic' way of doing forward references? -- burton samograd kruhft .at. gmail kruhft.blogspot.com www.myspace.com/kruhft metashell.blogspot.com
8
1975
by: . | last post by:
What is the fast way for a fast implementation of Python? -- JavaScript implementation of Python http://groups.google.it/group/JSython/
10
2998
by: javuchi | last post by:
I just want to share some code with you, and have some comments and improvements if you want. This header file allocates and add and delete items of any kind of data from a very fast array: #include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__
2
2755
by: Ben | last post by:
I'm looking for a web application framework with a good interface to PostgreSQL. The app I'm developing is relatively simple, but I'm new to coding, so it needs to be easy. What I'm making is a wiki-like system that could be thought of as similar to MediaWiki, but with each word editable separately - ie. edit locks would be one word at a time.
7
3676
by: dave | last post by:
Hi All. I've been formulating in my head a simple image editor. I actually started prototyping is some time ago in Java, but am liking Python more and more. My editor will be nowhere near the level of Gimp/ Photoshop, but I do need fast pixel level control and display. For instance, that means no automatic anti-aliasing and that I will be implementing my own line drawing algorithms. I've got the high level architectual aspects of my...
0
8435
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
8345
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
8768
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
8633
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
6186
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
5655
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();...
1
2763
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
2
1999
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1754
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.