Re: [PyQt] Python property in QObject masks AttributeErrors

2011-04-18 Thread Benjamin Kloster
On Mon, 2011-04-18 at 22:18 +0100, Phil Thompson wrote: > On Mon, 18 Apr 2011 14:07:13 +0200, Benjamin Kloster > wrote: > > Hi everyone, > > twice now I've stumbled over a subtle bug when subclassing QObject. When > > the getter of a python property raises an AttributeError for any > > attribute o

Re: [PyQt] Help with Design of Dialog interface

2011-04-18 Thread David Boddie
On Sun, 17 Apr 2011 19:43:17 +0100, alsaf wrote: > I am currently writing a project which takes vocabulary words from a XML > file which is created through the KDE application Parley and generates > sentences based on them. The project page is here: > > https://sourceforge.net/projects/languagesen

Re: [PyQt] Error while installing PyQtMobility 1.0 on Ubuntu 10.10

2011-04-18 Thread David Boddie
On Mon, 18 Apr 2011 11:24:13 +0100, Phil Thompson wrote: > On Mon, 18 Apr 2011 18:13:17 +0800, chinakr wrote: [...] > > Generating the C++ source for the QtContacts module... > > sip: > > /home/chinakr/src/PyQtMobility-gpl-1.0/sip/QtContacts/qcontactaddress.sip:37: > > Cannot mix %AccessCode and

Re: [PyQt] Python property in QObject masks AttributeErrors

2011-04-18 Thread Phil Thompson
On Mon, 18 Apr 2011 14:07:13 +0200, Benjamin Kloster wrote: > Hi everyone, > twice now I've stumbled over a subtle bug when subclassing QObject. When > the getter of a python property raises an AttributeError for any > attribute or object, PyQt seems to reraise this error improperly, > clearing th

[PyQt] Qxt

2011-04-18 Thread Peter Morgan
I've been using Qxt on a c++/Qt project, but now I miss it on a pyqt project. http://libqxt.bitbucket.org/doc/ I've had a quick look at SIP with the intention of creating a pyQxt lib.. but have to admit that I'm slightly out of my depth and lacking time at the moment. Are there any tips or even s

[PyQt] Python property in QObject masks AttributeErrors

2011-04-18 Thread Benjamin Kloster
Hi everyone, twice now I've stumbled over a subtle bug when subclassing QObject. When the getter of a python property raises an AttributeError for any attribute or object, PyQt seems to reraise this error improperly, clearing the traceback and often reporting a false object type and attribute name.

Re: [PyQt] Error while installing PyQtMobility 1.0 on Ubuntu 10.10

2011-04-18 Thread Phil Thompson
On Mon, 18 Apr 2011 18:13:17 +0800, chinakr wrote: > I want to create a simple recorder and I tried QtMultimedia module. > Then I met 'ImportError: No module named QtMultimedia'. > I found the error reason via google, that is: > https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/590140

[PyQt] Error while installing PyQtMobility 1.0 on Ubuntu 10.10

2011-04-18 Thread chinakr
I want to create a simple recorder and I tried QtMultimedia module. Then I met 'ImportError: No module named QtMultimedia'. I found the error reason via google, that is: https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/590140 I also found PyQtMobility 1.0 and tried to install it on my

Re: [PyQt] visualizing PDF files in PyQT WIndows

2011-04-18 Thread Jeremy Sanders
Gelonida G wrote: > Is there any recommended way to visualize PDF files with PyQT under > Windows? There's the poppler library, if you don't mind a GPLv2 library. There's a python interface to this http://svn.pardus.org.tr/uludag/trunk/playground/pypoppler-qt4/ (I haven't used this). There's a

Re: [PyQt] visualizing PDF files in PyQT WIndows

2011-04-18 Thread Gelonida G
On 04/17/2011 05:31 PM, Gelonida G wrote: > Hi, > > Is there any recommended way to visualize PDF files with PyQT under Windows? > > > Thanks in advance for any pointers Well having received the answer to another question I had already one possible solution, though it is not optimal. I could c

[PyQt] Disable context menu of a plugin in QWebview

2011-04-18 Thread Gelonida N
Hi, Now I am able to activate a flash plugin in my QWebview browser and things work as they should. There is just one minor problem The browser should always display a given context menu when the user clicks on the riht mouse button. The flash plugin however grabs the right mouse click and di

Re: [PyQt] Use QWebview with Flash plugin

2011-04-18 Thread Gelonida G
Hi David, Thanks a lot for your help. Installing a normal Firefox Flash plugin and setting QWebSettings.PluginsEnabled to True did the trick. Thanks a gain 04/18/2011 02:31 AM, David Boddie wrote: > On Sat, 16 Apr 2011 18:55:43 +0200, Gelonida Gmail wrote: > >> I'd like to have a small QWebv

Re: [PyQt] removeItemWidget bug

2011-04-18 Thread Phil Thompson
On Mon, 18 Apr 2011 00:34:44 +0100, Peter Morgan wrote: > I've experienced a bug which after a few hours found someone else is > experiencing also, and explained in detail > > In a Python program I use setItemWidget() to add widgets to columns > of QTreeWidgetItems (eg QPushButton, QComboBox, etc