473,785 Members | 2,374 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1828
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
"ImportErro r: 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
"ImportErro r: 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 "QApplicati on" 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
"ImportErro r: 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 "QApplicati on" 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
2709
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 with QScintilla support.
4
3305
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 error: Sorry, please install PyQt. I looked into the install script, then I opened a Python window and there I tried import qt and I got the following error:
2
2222
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 PyQT-devel rpm, which is apparently needed if I install PyQT from an rpm), PyKDE and the sip module. When I run the importTest.py script that comes with PyKDE, I get this: -------------------------------------
10
2210
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 python as Macosx already has python. I had no problem with compiling SIP and also no problem with compiling PyQt nor did I have any error message during make install.
0
1032
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 though I made sure that the paths to "lib" and "bin" subfolders of Qt are there in the PATH. I installed Qt built with MSVC, and PyQt is also built using MSVC
16
2138
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 day today trying to make from import qt * execute...........................I have the basic python core. I went through the sites like riverbankcomputing and trolltech and few online pages and books which talk about PyQT but never say about...
2
6268
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 some reasons, it does not complete the reinstall. See the status report from the GUI installer at the end of this note. Errors are towards the bottom. Everything installed in /usr/opt for DB2 but the sqllib folder that is supposed to be created in...
2
4606
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 Python25 2. I run the PyQt-gpl-4.1.1-Py2.5-Qt4.2.2.exe file which should include SIP 3. I run the qt-win-opensource-4.2.2-mingw.exe file
1
2564
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 "qt-mac-opensource-4.3.3.dmg" and the latest sip 4.7.3. But when I then try to run python configure.py for PyQt 4.3.3 I get "Import Error: No module named sipconfig" (I also retried after a Reboot)
0
9646
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9483
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10157
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10096
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9956
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7504
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6742
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4055
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 we have to send another system
3
2887
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.