[PyQt] build pyqt for python2 and python3??

2010-10-20 Thread BLACK HAWK
hi guys, i have question about building pyqt for both python2 & python3 on the same pc i want to have both of them as i develop all my apps on python2 and i want to start porting them to python3 i tried build python2-pyqt and all go well but i notic that some libs (pyuic4,pyrcc,sip-lib,...) are

Re: [PyQt] QtDeclarative support with Python 2.5

2010-10-20 Thread Phil Thompson
On Wed, 20 Oct 2010 13:29:05 -0700, Ian Scott wrote: > I'm trying to build the latest snapshot of PyQt. Our environment > includes Python 2.5, and it looks like QtDeclarative uses > Py_TPFLAGS_STRING_SUBCLASS, which is only in 2.6+: > > qpydeclarativelistproperty.cpp:67: error: 'Py_TPFLAGS_STRI

[PyQt] QtDeclarative support with Python 2.5

2010-10-20 Thread Ian Scott
I'm trying to build the latest snapshot of PyQt. Our environment includes Python 2.5, and it looks like QtDeclarative uses Py_TPFLAGS_STRING_SUBCLASS, which is only in 2.6+: qpydeclarativelistproperty.cpp:67: error: 'Py_TPFLAGS_STRING_SUBCLASS' was not declared in this scope Will QtDeclarat

Re: [PyQt] question on drag and drop

2010-10-20 Thread danny
> Hey Danny, cheer up! The good news are, that > QAbstractItemView.setDefaultDropAction() isn't exactly undocumented, > see http://doc.trolltech.com/4.6/qabstractitemview.html. Otherwise that > would be a major pity, since Phil refuses to implement any undocumented > Qt properties unwaveringly

Re: [PyQt] PyQt4.7.7 QGraphics Effetc dont work

2010-10-20 Thread leo kirotawa
Thanks Peter, and sorry. You were right, versions: Qt = 4.5.0 and PyQt = 4.7.7. cheers []'s On Wed, Oct 20, 2010 at 3:26 PM, Hans-Peter Jansen wrote: > [please keep the mailing list cc'ed at least, and personal reply] > > On Wednesday 20 October 2010, 19:25:33 leo kirotawa wrote: > > Sorry, >

Re: [PyQt] question on drag and drop

2010-10-20 Thread Hans-Peter Jansen
On Wednesday 20 October 2010, 18:18:12 danny wrote: > > whenever i encounter situations where i'm going to reimplement > > virtual methods, i will usually take a look at the qt source at > > some point. i will look at the details of the default > > implementation, and also how the method is used in

Re: [PyQt] PyQt4.7.7 QGraphics Effetc dont work

2010-10-20 Thread Hans-Peter Jansen
[please keep the mailing list cc'ed at least, and personal reply] On Wednesday 20 October 2010, 19:25:33 leo kirotawa wrote: > Sorry, > I should have shown more details. > So, I installed the PyQt4.7.7 in my ubuntu 9.04 through this link > http://www.riverbankcomputing.co.uk/software/pyqt/downloa

[PyQt] Pyqt4.7.7 QGraphicsDropShadowEffect dont work, AttibuteError in ubuntu 9.04 on python2.6.2

2010-10-20 Thread leo kirotawa
Sorry, I should have shown more details. So, I installed the PyQt4.7.7 in my ubuntu 9.04 through this link http://www.riverbankcomputing.co.uk/software/pyqt/download. Installing this way the files come with a folder called examples in it has a other folder called effect. In this folder has some s

[PyQt] star delegate example for current PyQt snapshot

2010-10-20 Thread Hans-Peter Jansen
Hi Phil et al., now, that you added __lshift__ for QPolygonF()'s, here's the star delegate example in return, using this feature of course. I did change the behavior a minor bit, but it feels silly to be forced to select _and_ double click an item in order to trigger editing. Double clicking s

Re: [PyQt] question on drag and drop

2010-10-20 Thread danny
> whenever i encounter situations where i'm going to reimplement virtual > methods, i will usually take a look at the qt source at some point. i > will look at the details of the default implementation, and also how the > method is used internally by other methods. if the method is part of an

[PyQt] mixing pseudo-states and specific selectors

2010-10-20 Thread victor
hi list, i have this selector: QWidget#PaneButton * {...} followed by QWidget#PaneButton:hover * {...} now the second always takes over the first. isn't it possible to mix pseudo and specific selectors? -- victor ___ PyQt mailing listPyQt@river

[PyQt] QSettings usage - multiple?

2010-10-20 Thread Randy Heiland
Hello, Is it possible to have multiple QSettings files for an app? Basically, our situation is that we have an app and we save various params associated with the app via the QSettings mechanism. However, we'd like to be able to save/read different sets of params. Perhaps we're mis-using the

Re: [PyQt] Incompotible signatures

2010-10-20 Thread Hans-Peter Jansen
On Wednesday 20 October 2010, 12:23:36 Alexandr N Zamaraev wrote: > I upgrade my Kubuntu to 10.10. > (libqtcore4 v4.7.0-0ubuntu4, python-sip v4.10.5-0ubuntu1, python-qt4 > v4.7.4-0ubuntu1) > And I receive TypeError for my projects > > Sample code (file slots.py): > #! /usr/bin/env python > # -*- co

[PyQt] Incompotible signatures

2010-10-20 Thread Alexandr N Zamaraev
I upgrade my Kubuntu to 10.10. (libqtcore4 v4.7.0-0ubuntu4, python-sip v4.10.5-0ubuntu1, python-qt4 v4.7.4-0ubuntu1) And I receive TypeError for my projects Sample code (file slots.py): #! /usr/bin/env python # -*- coding: utf-8 -*- import sys from PyQt4 import QtCore, QtGui class TableView(QtGu