473,240 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,240 software developers and data experts.

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 2817
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
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
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
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
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
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
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
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
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
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
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.