473,503 Members | 10,322 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PyQt Help and Advice

Dear All,

I am fairly new to Python. I have found it an easy language to learn and
a very usefull one for many tasks. Currently I am working on a python
project that involves a GUI and it was suggested that PyQt is the best way to
design that GUI.
However since PyQt is rather new, I have not found much documentation on
it, or examples in it. The only useful tutorial/book I have found is at
www.opendocspublishing.com/pyqt/ but it is not always clear for someone
with almost no GUI experience.
Does anyone have any suggestions?

Ilya

Jul 18 '05 #1
10 2833
Ilya Knizhnik enlightened us with:
However since PyQt is rather new, I have not found much
documentation on it, or examples in it. The only useful
tutorial/book I have found is at www.opendocspublishing.com/pyqt/
but it is not always clear for someone with almost no GUI
experience.


You might want to follow the QT tutorials that come with the QT
documentation. The best way to read the QT docs is through QT
Assistant. You can design GUIs with QT's 'designer' (it's called that
way, very original name) and convert the .ui files to .py files with
'pyuic'.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Jul 18 '05 #2
On Tue, 29 Jul 2003 15:17:40 +0000, Ilya Knizhnik wrote:
However since PyQt is rather new, I have not found much documentation on
it, or examples in it. The only useful tutorial/book I have found is at
www.opendocspublishing.com/pyqt/ but it is not always clear for someone
with almost no GUI experience.
Does anyone have any suggestions?

Ilya


If you're at all familiar with C++, or even if you're not, you'll find
Qt's API docs, http://doc.trolltech.com/3.0/ , very handy. I've found that
pyQt correlates almost exactly with them, except for some str QString
conversion issues. I refer to that all the time when I'm doing PyQt code.
Also, I don't know what OS or distro you're on, but there is a set of pyqt
examples out there. In redhat, I used the PyQt-examples rpm (case
sensitive), which installs a bunch of example programs to
/usr/share/doc/PyQt-examples-[version]. Also. as Sybren mentioned, the Qt
tutorial itself should be useful.. Finally, I'll say that the book you
mentioned is excellent, and a wonder source of example code. I liked it
enough that I bought it, and I'm happy I did.

Good luck with PyQt! The only issues I've had were related to QCanvas not
deleting canvas items (and therefore my program leaking them) if I don't
reuse them. I still haven't figured that out, so I just keep track of the
ones I create and reuse them, in order to prevent memory leaks.

Keith
Jul 18 '05 #3
On Tue, 29 Jul 2003, Ilya Knizhnik wrote:
I am fairly new to Python. I have found it an easy language to
learn and a very usefull one for many tasks. Currently I am working
on a python project that involves a GUI and it was suggested that
PyQt is the best way to design that GUI. However since PyQt is
rather new, I have not found much documentation on it, or examples
in it. The only useful tutorial/book I have found is at
www.opendocspublishing.com/pyqt/ but it is not always clear for
someone with almost no GUI experience. Does anyone have any
suggestions?


http://www.riverbankcomputing.co.uk/pyqt/index.php

Is a good starting point. Subscribe to the mailing list.

Jul 18 '05 #4
Keith Jones enlightened us with:
I've found that pyQt correlates almost exactly with them, except for
some str QString conversion issues.


Another thing to be wary about, is that "exec" is a reserved keyword
in Python. QDialog boxes, QApplication and perhaps some others that
have an exec() method in C++ are called exec_loop() in Python. Took me
a little while to figure out ;-)

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Jul 18 '05 #5
il***@red.seas.upenn.edu (Ilya Knizhnik) writes:
[...]
However since PyQt is rather new, I have not found much documentation on
it, or examples in it. The only useful tutorial/book I have found is at
www.opendocspublishing.com/pyqt/ but it is not always clear for someone
with almost no GUI experience.
Does anyone have any suggestions?


PyQt isn't new. The reason there's not documentation for every API
function is that the Python interface slavishly follows the C++ API
(actually, I believe you can now pay for documentation, but I don't
see the point). The PyQt docs just list the slight deviations from Qt
proper. The Qt docs are excellent, and you really don't need to know
C++ to understand them.
John
Jul 18 '05 #6
On Tuesday 29 July 2003 4:17 pm, Ilya Knizhnik wrote:
Dear All,

I am fairly new to Python. I have found it an easy language to learn and
a very usefull one for many tasks. Currently I am working on a python
project that involves a GUI and it was suggested that PyQt is the best way
to design that GUI.
However since PyQt is rather new, I have not found much documentation on
it, or examples in it. The only useful tutorial/book I have found is at
www.opendocspublishing.com/pyqt/ but it is not always clear for someone
with almost no GUI experience.
Does anyone have any suggestions?

Ilya


To correct one misconception...

PyQt was first released on November 1st 1998. There have been 34 releases in
all. The next release, including support for Qt v3.2.0, will be around August
12th. It isn't new.

Phil

Jul 18 '05 #7
On Wed, 30 Jul 2003 00:18:32 +0100, Phil Thompson wrote:

To correct one misconception...

PyQt was first released on November 1st 1998. There have been 34 releases in
all. The next release, including support for Qt v3.2.0, will be around August
12th. It isn't new.

Phil

Phil,

Any idea when Qt3.2 will have noncommercial support in windows?
Jul 18 '05 #8
il***@red.seas.upenn.edu (Ilya Knizhnik) wrote in message news:<bg***********@netnews.upenn.edu>...
Dear All,

I am fairly new to Python. I have found it an easy language to learn and
a very usefull one for many tasks. Currently I am working on a python
project that involves a GUI and it was suggested that PyQt is the best way to
design that GUI.
However since PyQt is rather new, I have not found much documentation on
it, or examples in it. The only useful tutorial/book I have found is at
www.opendocspublishing.com/pyqt/ but it is not always clear for someone
with almost no GUI experience.
Does anyone have any suggestions?

Ilya


We have a product called PyQtDoc that provides a very nice and
convenient interface for all the PyQt information. You can see
information on it at http://www.thekompany.com/products/pyqtdoc/

Best,
Shawn
Jul 18 '05 #9
Keith Jones enlightened us with:
Any idea when Qt3.2 will have noncommercial support in windows?


Probably when Qt 4.x has been released. If you want to stay current
and free, try Linux instead.

Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Jul 18 '05 #10
On Wednesday 30 July 2003 1:27 am, Keith Jones wrote:
On Wed, 30 Jul 2003 00:18:32 +0100, Phil Thompson wrote:
To correct one misconception...

PyQt was first released on November 1st 1998. There have been 34 releases
in all. The next release, including support for Qt v3.2.0, will be around
August 12th. It isn't new.

Phil


Phil,

Any idea when Qt3.2 will have noncommercial support in windows?


That's a question for Trolltech. I would certainly expect Qt v4 to be released
first.

Phil

Jul 18 '05 #11

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

Similar topics

2
4200
by: Srinath Avadhanula | last post by:
Hello, I am wondering if QT has something like QWaitForNextEvent() function. This function would block execution of the application till another key was pressed and then return the event...
35
7716
by: Vamsi Mudrageda | last post by:
I am kind of new to Python, and after trying and using wxPython, I found it kind of lacking in easy-to-read documentation, speed at loading, and GUI response-time. So I am looking for an another...
8
4838
by: simo | last post by:
OK, so I'm at the stage where I want to make a choice between wxPython and PyQt. Currently I'm using wxPython mainly due to the fact that it has GPL Linux and Windows versions. I prefer Qt to...
1
1446
by: Kenneth McDonald | last post by:
I'm trying to get QT, SIP, and PyQt installed so I can try out the Python editor eric. Both sip and qt appear to have compiled and installed properly. Unfortunately, PyQt, after compiling most of...
10
2183
by: svenn.are | last post by:
Hi, I wanted to run a program that is written in PyQt on my mac, and went over to Riverbank to get PyQ 3.13 and SIP 4.1.1 sources. I followed the installation guide except for the compiling...
2
2600
by: Erwan Adam | last post by:
Hi all, I try to introduce tooltips in my application written in PyQt (more precisly, in the menubar of my application) but I can't find a way to get the QRect instance associated to a QMenuBar...
10
2133
by: Simon John | last post by:
After quite a while of wxPython I'm getting back into PyQt, mainly due to the announcement by Trolltech that they will make a GPL version of Qt4 for Windows (and Phil-T said he will make a PyQt to...
1
6059
by: Peter TB Brett | last post by:
Hi folks, Although the PyQt documentation indicates that QGLWidget & friends have been ported to Python for the PyQt bindings, I'm not entirely sure what's necessary to make the normal...
1
1333
by: vj | last post by:
Is there a a tutorial or a sample application I can start with (that works with qt4 and pyqt4)? Thanks, VJ
0
7095
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...
0
7294
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7015
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5602
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5026
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...
0
4693
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...
0
3183
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...
0
1523
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 ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.