I'm having a strange problem with the pyqt-tools in the latest Debian
packages. When I run
$ pyuic colortool.ui > colortool.py
Extracting init()
Extracting loadSettings()
Extracting saveSettings()
....
it produces 'colortool.py' with python function headers, but the body of the
functions are still in C. There are no error messages, just the normal log
of "extracting " functions.
The file colortool.ui is the tutorial example from the Qt Designer manual,
and it works correctly when compiled in C. The versions on all the relevant
packages seem to be correct:
-> pyuic is from package pyqt-tools 3.8-2.1 This package depends on:
libc6 (>= 2.3.2-1), libgcc1 (>= 1:3.3.1-1), libqt3c102-mt (>= 3:3.2.1),
libstdc++5 (>= 1:3.3.1-1), xlibs (>> 4.1.0)
-> Current versions shown by dpkg are:
libc6 2.3.2-9, libgcc1 1:3.3.2-1, libqt3c102-mt 3:3.2.1-6, libstdc++5
1:3.3.2-1, xlibs 4.2.1-12.1
-> designer is from package qt3-designer 3:3.2.1-6
$ pyuic -version
Python User Interface Compiler 3.8 for Qt version 3.2.1
I have used Python and Qt in Redhat 9, after great effort to correct
mismatched versions in their packaging. That is the only reason I suspected
packaging problems here, but so far I've had much better experience with
Debian's packages.
This is very frustrating. I've committed to a project using Qt and Python,
and I'm totally dependent on pyuic. Any suggestions would be much
appreciated.
-- Dave 3 1916
On Tuesday 04 November 2003 6:45 pm, Dave wrote: I'm having a strange problem with the pyqt-tools in the latest Debian packages. When I run $ pyuic colortool.ui > colortool.py Extracting init() Extracting loadSettings() Extracting saveSettings() ... it produces 'colortool.py' with python function headers, but the body of the functions are still in C. There are no error messages, just the normal log of "extracting " functions.
The file colortool.ui is the tutorial example from the Qt Designer manual, and it works correctly when compiled in C. The versions on all the relevant packages seem to be correct:
-> pyuic is from package pyqt-tools 3.8-2.1 This package depends on: libc6 (>= 2.3.2-1), libgcc1 (>= 1:3.3.1-1), libqt3c102-mt (>= 3:3.2.1), libstdc++5 (>= 1:3.3.1-1), xlibs (>> 4.1.0) -> Current versions shown by dpkg are: libc6 2.3.2-9, libgcc1 1:3.3.2-1, libqt3c102-mt 3:3.2.1-6, libstdc++5 1:3.3.2-1, xlibs 4.2.1-12.1 -> designer is from package qt3-designer 3:3.2.1-6
$ pyuic -version Python User Interface Compiler 3.8 for Qt version 3.2.1
I have used Python and Qt in Redhat 9, after great effort to correct mismatched versions in their packaging. That is the only reason I suspected packaging problems here, but so far I've had much better experience with Debian's packages. This is very frustrating. I've committed to a project using Qt and Python, and I'm totally dependent on pyuic. Any suggestions would be much appreciated.
That's because the form includes embedded C++ code. There is nothing to stop
you embedding Python code (just ignore the C++ style function definition) and
it will be properly extracted.
What pyuic doesn't do is look at the embedded code and try to work out if it
is Python or something else.
Phil
"Phil Thompson" <ph**@riverbank computing.co.uk > wrote in message
news:ma******** *************** *************@p ython.org... On Tuesday 04 November 2003 6:45 pm, Dave wrote: I'm having a strange problem with the pyqt-tools in the latest Debian packages. When I run $ pyuic colortool.ui > colortool.py Extracting init() Extracting loadSettings() Extracting saveSettings() ... it produces 'colortool.py' with python function headers, but the body of the functions are still in C. There are no error messages, just the
normal log of "extracting " functions.
[...] That's because the form includes embedded C++ code. There is nothing to
stop you embedding Python code (just ignore the C++ style function definition)
and it will be properly extracted.
What pyuic doesn't do is look at the embedded code and try to work out if
it is Python or something else.
OK, I can ignore the C++ embedded code, but it seems that Python can't.
Python 2.3.2 (#2, Oct 6 2003, 08:02:06)
[GCC 3.3.2 20030908 (Debian prerelease)] on linux2 from colortool import MainForm
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "colortool. py", line 225
QSettings settings;
^
SyntaxError: invalid syntax
I must be missing a switch or something.
-- Dave
"Phil Thompson" <ph**@riverbank computing.co.uk > wrote in message
news:ma******** *************** *************@p ython.org... On Tuesday 04 November 2003 6:45 pm, Dave wrote: I'm having a strange problem with the pyqt-tools in the latest Debian packages. When I run $ pyuic colortool.ui > colortool.py Extracting init() Extracting loadSettings() Extracting saveSettings() ... it produces 'colortool.py' with python function headers, but the body of the functions are still in C. There are no error messages, just the
normal log of "extracting " functions.
[...] That's because the form includes embedded C++ code. There is nothing to
stop you embedding Python code (just ignore the C++ style function definition)
and it will be properly extracted.
What pyuic doesn't do is look at the embedded code and try to work out if
it is Python or something else.
Oops. Please ignore my previous post. I misunderstood what Phil was
saying. I see now what to do. Just write Python code in the body of the
C++ stub functions ( leaving the outer { } in place ) , and pyuic will copy
that code verbatim into the body of the translated Python functions.
Excellent.
Many thanks.
-- Dave This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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:
|
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 GUI toolkit that is cross-platform for
Python, and am leaning toward PyQt (PyGTK is kind of dull looking in
comparison). Unfortunately, although TrollTech says Qt is
cross-platform, its license strategy has me a bit confused. So here is
to...
|
by: Markus Zimmermann |
last post by:
Hi,
does anybody of you know, where to get a current snapshot of PyQt and
PyKDE ?
Thanx, Markus
|
by: Paul Drummond |
last post by:
Hi guys, newbie here - is it ok to post pyQt questions here?
I know there is a mailing list for pyKDE but I can't find a specific pyQt
newsgroup.
Cheers,
Paul Drummond
|
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 item (neither a QPopupMenu item)
I need the QRect 'cause I followed the tooltip.py file
given with pyqt to do the job with a re-implementation
of "maybeTip( self, pos )".
| |
by: Fabio |
last post by:
Hi all,
I'm about to write an application, and I'd like to use PyQt, but before
choosing this toolkit I would like to clarify some particular licensing
issues; if some user has already touched these, I would like to hear from
his experiences.
This app should be cross-platform, so, given qt licensing policies, I would
buy a commercial PyQt license and a commercial Qt license.
Could I license the application under the GPL for Gnu/Linux...
|
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...
|
by: Fabrice H |
last post by:
hello
I have QT 3.1.1 educational on my computer (Win XP)
I tried to install several version of pyQt (PyQt edu 3.13 Edu, PyQt
edu 3.6, PyQT non-commercial 4.13, but I still can't import qt module.
when I enter :
import qt
I have the following message :
Import Error : DLL Load failed : cannot find the specified module
|
by: Eric Jardim |
last post by:
Hi,
Is there any site that gather all the documentation about PyQt?
The docs of the Riverbank site is poor, and I have found separate
tutorials on the net.
I know that the Kompany have made a "Qtdoc"-like to PyQt. But it is not
free doc.
|
by: eholbroo |
last post by:
I've narrowed down my toolkit selection for my project to wxPython and
pyQt, and now i'd like to hear any opinions, war stories, peeves, etc,
about them, particularly from anyone who's used _both_toolkits_. I'm
only mildly interested in the IDEs and UI designers for each, as i
want to do as much as i can in just Xemacs and xterm. Feel free to
rant, rave, pontificate, whatever.
t.i.a.,
E
|
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...
| |
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...
|
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,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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();...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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
|
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...
| |