[PyQt] How to write a GUI interface for a set of Python programs?
Algis Kabaila
akabaila at pcug.org.au
Mon Jan 28 03:55:45 GMT 2008
Andreas,
Many thanks for your prompt answer. I use openSUSE 10.3 and thought I already
had Qt4 installed. Looking at the Yast package list, it would seem that this
is so. I do not remember how I installed the QtDesigner - I don't think that
it came in a suse rpm package, as yast does not show it.
I was wondering at the version number of my QtDesigner (3.3.8). Can I assume
that it should be 4.4.x if Qt4 is used?
I confess to have been wondering at the strange numbering of QtDesigner, but
concluded, evidently quite wrongly - and stupidly - that it must be separate
numbers from the Qt version.
Ah well, write it down to old age...
Thanks again,
Al.
On Mon, 28 Jan 2008 09:55:26 Andreas Pakulat wrote:
> On 28.01.08 09:21:20, Algis Kabaila wrote:
> > 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.
> >
> > 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?
>
> Thats quite easy using a python-written class that uses the .ui file to
> setup the GUI.
>
> > If that is possible, how can I achieve that aim with the latest (?)
> > QtDesigner version 3.3.8?
>
> I suggest to look into PyQt4 instead, Qt 3.3 is not maintained anymore
> by TT (maybe for important security fixes) and thus doesn't get updates
> anymore. PyQt4/Qt4 is the current state of the art and it still ships
> with designer, though the actual use of the .ui files has changed a bit.
>
> Andreas
--
Algis Kabaila (Dr)
http://akabaila.pcug.org.au/StructuralAnalysis/
More information about the PyQt
mailing list