python and pyqt
Posted by geoatpenn (geoatpenn), 21 July 2005Hi
i would really appreciate some help in installation of pyqt for a project that i am working on which requires qt /python
i tried installing the windows binary package for pyqt (intended for qt evaluation ver 3.3.4) . I need to know if that alone is sufficient to run the python files having qt functions?
I get these import error messages ( cannot import from qt)
when i try to run the example files supplied with pyqt. obviously i am doing something wrong here.. is there anything else that needs to be done?
Posted by admin (Graham Ellis), 23 July 2005Here's a quotation from our training notes on Python and Qt which may help.
Here are the component parts that you'll need to install and run the Qt GUI in Python. We've listed them in the order you'll need to source and install them if you're starting from scratch, but you'll often find that many (or most, or all) of the components are a standard part of your distribution, especially on Linux. On *nix systems, you'll be making use of the (g)cc compiler and on Windows systems you'll download appropriate binaries.
The Python scripting language is an excellent and flexible language that provides one of the best object oriented models around. We're fans! Plenty of standard classes ("modules") available, open source, active community, well liked and used.
The Qt GUI toolkit, written in C++. Provides support for all the main elements that you'll want in a GUI ... widgets, geometry managers and event handlers, but with its own extra wrappers and technologies on top to make the whole thing even easier. Quite a large library, runs on Windows, Mac OS X, Unix, Linux.
The Qt toolkit is written and maintained by Trolltech.1 They say "Qt is a multiplatform C++ application framework developers can use to write single-source applications that run -- natively -- on Windows, Linux, Unix, Mac OS X and embedded Linux. Qt has been used to build thousands of successful commercial applications worldwide, and is the basis of the open source KDE desktop environment..." Trolltech employs a dual licensing strategy, offering both commercial and free software licensing options to developers.
SIP is a tool for generating Python bindings for C and C++ libraries, and it's used by the PyQt installation process.
PyQt is a set of Python bindings for the Qt toolkit.
PyQt and SIP are written and supplied by Riverbank Computing Ltd.2 "As well as developing closed source software for its clients, Riverbank also supports a number of open source software projects and makes them available to the open source community under the terms of the GNU GPL".
I rather suspect that the poster of this question has posted it very widely or perhaps he's at a college where this has been set as an exercise and everyone's asking on line. Therefore, I've simply quoted our standard training material above ... quite happy to help out in most circumstances, but I don't feel it's efficient for me to spend a lot of time providing an answer to something that's already been sorted.
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: firstname.lastname@example.org • WEB: http://www.wellho.net • SKYPE: wellho