[PyQt] How to write a GUI interface for a set of Python programs?

Hans-Peter Jansen hpj at urpla.net
Sun Jan 27 22:41:03 GMT 2008


Am Sonntag, 27. Januar 2008 schrieb Algis Kabaila:
> On Mon, 28 Jan 2008 07:11:21I another thread Hans-Peter Jansen wrote:
> > Am Sonntag, 27. Januar 2008 schrieb Ryen Lee:
> > > > > Hi everybody! I am a newbie for PyQT.Now I am write a simple
> > > > > programm
>
> [...]
> The above sentence from another thread describes well my current status.
>
> In the last few years I wrote a series of programs in Python for
> Structural Analysis for Engineering structures.  IMHO, Python is a great
> teaching language that enables one to expose the basic principles of
> programming without having to go into extraneous details.
>
> Currently those programs lack GUI.  I would like to write GUI with a
> minimum need to substantially change my extant Python programs and a
> minimum "immersion" into yet another computer language (I am 83 and have
> learned many languages - computer since the valve computer days as well
> as human - in my long and varied life).
>
> PyQt interface looks pretty, it is an integral part of KDE, so it seems
> like the right candidate for my objectives.

Congrats for the tasteful choice and welcome to the club.

> Is it possible to create a GUI with QtDesigner and "assemble" it into
> PyQt from the *.ui files and then outside of the QtDesigner call extant
> Python programs?  Or is that an impossible dream?

Sure you can. 

> If that is possible, how can I achieve that aim with the latest (?)
> QtDesigner version 3.3.8?

The easiest way is to use eric. But there are a lot of successful generic 
approaches. E.g. for historical reasons, I'm using a classical Makefile 
approach for quick deployment. 

Start reading http://www.diotavelli.net/PyQtWiki, and come back, if you're 
stuck in the details. 

> Your suggestions on this topic will be gratefully received.
>
> Yours sincerely,
>
> OldAl
> from Canberra, the capital of Down Under.

Bye,
Pete


More information about the PyQt mailing list