473,385 Members | 1,409 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,385 software developers and data experts.

PyQT installation /configuration

Hi there. I've been trying to get PyQT working on W2K, but have not yet
found a sufficiently detailed walk-through for my somewhat
command-line-challenged sensibilities. I did find this page:
http://www.diotavelli.net/PyQtWiki/GPLPyQtWindows , but I'm not sure
about installing the whole of Visual Studio .NET as a prerequisite. Can
anyone tell me if the passing of the years has made this process any
more approachable?

Jul 15 '06 #1
7 1813
On Saturday 15 July 2006 9:25 am, ad************@yahoo.com wrote:
Hi there. I've been trying to get PyQT working on W2K, but have not yet
found a sufficiently detailed walk-through for my somewhat
command-line-challenged sensibilities. I did find this page:
http://www.diotavelli.net/PyQtWiki/GPLPyQtWindows , but I'm not sure
about installing the whole of Visual Studio .NET as a prerequisite. Can
anyone tell me if the passing of the years has made this process any
more approachable?
For Qt4 use the binary installer from...

http://www.trolltech.com/developer/downloads/qt/windows

For PyQt4 use the binary installer from...

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

Phil
Jul 15 '06 #2

Phil Thompson wrote:
On Saturday 15 July 2006 9:25 am, ad************@yahoo.com wrote:
Hi there. I've been trying to get PyQT working on W2K, but have not yet
found a sufficiently detailed walk-through for my somewhat
command-line-challenged sensibilities. I did find this page:
http://www.diotavelli.net/PyQtWiki/GPLPyQtWindows , but I'm not sure
about installing the whole of Visual Studio .NET as a prerequisite. Can
anyone tell me if the passing of the years has made this process any
more approachable?

For Qt4 use the binary installer from...

http://www.trolltech.com/developer/downloads/qt/windows

For PyQt4 use the binary installer from...

http://www.riverbankcomputing.co.uk/pyqt/download.php
Ah thanks, I'm a dork. Why didn't I see that before <mutter>?

Jul 15 '06 #3

ad************@yahoo.com wrote:
Phil Thompson wrote:
For Qt4 use the binary installer from...

http://www.trolltech.com/developer/downloads/qt/windows

For PyQt4 use the binary installer from...

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

Ah thanks, I'm a dork. Why didn't I see that before <mutter>?
Waitaminute, didn't you write it? Oh dear.

I've got another problem, I'm afraid - I've installed Qt 4.1.4 and PyQt
GPL v4.0 over Python 2.4, and the demos for both run happily enough,
but when I try to run the first example (in IDLE) from Boudewijn
Rempt's GUI Programming with Python: QT Edition I just get
"ImportError: No module named qt". Is there something I need to add to
my sys.path here?

Sorry to bother you with the newbie questions.

Jul 16 '06 #4
ad************@yahoo.com wrote:
I've got another problem, I'm afraid - I've installed Qt 4.1.4 and PyQt
GPL v4.0 over Python 2.4, and the demos for both run happily enough,
but when I try to run the first example (in IDLE) from Boudewijn
Rempt's GUI Programming with Python: QT Edition I just get
"ImportError: No module named qt". Is there something I need to add to
my sys.path here?
The module structures for PyQt3 and PyQt4 are quite different: the
monolithic qt module from PyQt3 has been replaced by a number of
modules in PyQt4. Despite this, there is a similar way to "import qt"
in PyQt4:

from PyQt4 import Qt

However, you will have difficulty using the examples in that book
because it was written for PyQt3. Work is underway to "port" the book
to PyQt4, but it will take some time. (You can help with this and learn
about PyQt4 at the same time, if you want.)

In the meantime, the set of slides from a talk at EuroPython 2006 is
probably the only learning material on the web for PyQt4:

http://indico.cern.ch/contributionDi...&amp;confId=44

There's plenty of learning material for Qt 4; the official
documentation at http://doc.trolltech.com/4.1 contains examples
and overviews that are readable if you already know C++. Those of us
who use PyQt4 are still catching up!

All the best,

David

Jul 16 '06 #5

David Boddie wrote:
The module structures for PyQt3 and PyQt4 are quite different: the
monolithic qt module from PyQt3 has been replaced by a number of
modules in PyQt4. Despite this, there is a similar way to "import qt"
in PyQt4:

from PyQt4 import Qt

However, you will have difficulty using the examples in that book
because it was written for PyQt3.
Ah yes, it doesn't recognise "QApplication" now. Never mind.
Work is underway to "port" the book
to PyQt4, but it will take some time. (You can help with this and learn
about PyQt4 at the same time, if you want.)
Er...you might be overestimating my potential unless there's some
*really* entry-level material to be dealt with there. Though they do
say it's a good way to learn. Is there a forum?
In the meantime, the set of slides from a talk at EuroPython 2006 is
probably the only learning material on the web for PyQt4:

http://indico.cern.ch/contributionDi...&amp;confId=44

There's plenty of learning material for Qt 4; the official
documentation at http://doc.trolltech.com/4.1 contains examples
and overviews that are readable if you already know C++.
One of the reasons I chose Python was so I wouldn't have to, alas.

Thanks!

Jul 16 '06 #6
On Sunday 16 July 2006 1:09 am, ad************@yahoo.com wrote:
ad************@yahoo.com wrote:
Phil Thompson wrote:
For Qt4 use the binary installer from...
>
http://www.trolltech.com/developer/downloads/qt/windows
>
For PyQt4 use the binary installer from...
>
http://www.riverbankcomputing.co.uk/pyqt/download.php
Ah thanks, I'm a dork. Why didn't I see that before <mutter>?

Waitaminute, didn't you write it? Oh dear.

I've got another problem, I'm afraid - I've installed Qt 4.1.4 and PyQt
GPL v4.0 over Python 2.4, and the demos for both run happily enough,
but when I try to run the first example (in IDLE) from Boudewijn
Rempt's GUI Programming with Python: QT Edition I just get
"ImportError: No module named qt". Is there something I need to add to
my sys.path here?

Sorry to bother you with the newbie questions.
Boudewijn's book describes Qt/PyQt v3.

Phil
Jul 16 '06 #7
ad************@yahoo.com wrote:
David Boddie wrote:
However, you will have difficulty using the examples in that book
because it was written for PyQt3.

Ah yes, it doesn't recognise "QApplication" now. Never mind.
QApplication is still there. You can access it via the Qt module and
create an application object in the following way:

import sys
from PyQt4 import Qt
app = Qt.QApplication(sys.argv)
Work is underway to "port" the book
to PyQt4, but it will take some time. (You can help with this and learn
about PyQt4 at the same time, if you want.)

Er...you might be overestimating my potential unless there's some
*really* entry-level material to be dealt with there. Though they do
say it's a good way to learn. Is there a forum?
Yes, it's at http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
There's plenty of learning material for Qt 4; the official
documentation at http://doc.trolltech.com/4.1 contains examples
and overviews that are readable if you already know C++.

One of the reasons I chose Python was so I wouldn't have to, alas.
Much of the example code for Qt is readable even if you only
know Python. Some of the main differences between Qt and PyQt
are described in this document:

http://www.riverbankcomputing.com/Do.../pyqt4ref.html

Good luck!

David

Jul 16 '06 #8

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

Similar topics

4
by: reh | last post by:
Have installed on Redhat 9.0 in the following order; Qscintilla sip PyQt When I install eric3 (python install.py), I get this error; Sorry, please install QScintilla and/or reinstall PyQt...
4
by: Stelian Iancu | last post by:
Hello all! I am trying to install eric3, the Python IDE. I've downloaded and installed successfully sip-3.8, QScintilla-1.2 and PyQT-3.8. However, when I try to install eric, I get the following...
2
by: Sam | last post by:
Hey people, I am trying to install these modules to play around with KDE panel applets, but I am beginning to think it's too much trouble to be worth it. I've installed PyQT (as well as the...
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...
0
by: Bulba! | last post by:
I got an evaluation version of Qt for Windows and installed PyQt. However, it gives me this error message: "ImportError: DLL load failed:" It doesn't seem to see the "qt-mteval" DLL, even...
16
by: Nanoscalesoft | last post by:
hello all, I am planning to start coding a nanoscale design software in python with QT interface.I have to do this in windows or linux.Intially windows would be fine. I have struggled almost full...
2
by: mb12036 | last post by:
All- Having a problem installing a DB2 client on a machine running AIX version 5.0. Client appeared to install one time succesfully, then was uninstalled and a reinstall was attempted. For...
2
by: wd.jonsson | last post by:
Hello! I must be doing something wrong here because I'm getting all these missing .dll messages after installing PyQT. This is what I've done (no step excluded): 1. Fresh installation of...
1
by: Marcus Strube | last post by:
Hi I was trying to install PyQt, but things don't work as promised. I'm working on OS X 10.5, didn't install another version of Python - so it's 2.5.1 -, installed the latest...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

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.