Re: [PyQt] multiple inheritance and signals problem, mixin before QObject

2013-09-14 Thread Phil Thompson
On Thu, 12 Sep 2013 10:30:06 -0400, lloyd konneker wrote: > This is an update to my previous post. > Here is an abstract of the code for easier reading: > > > class B(object): >def __init__(self): > self.a1 = A() > self.a1.signal1.connect(self.handler)# Fails in PyQt, succeeds

[PyQt] multiple inheritance and signals problem, mixin before QObject

2013-09-12 Thread lloyd konneker
This is an update to my previous post. Here is an abstract of the code for easier reading: class B(object): def __init__(self): self.a1 = A() self.a1.signal1.connect(self.handler)# Fails in PyQt, succeeds in PySide def handler(self): pass class A (Mixin, SubclassOfQObjec

[PyQt] multiple inheritance and signals problem, mixin before QObject

2013-09-11 Thread lloyd konneker
I am trying to switch from PySide to PyQt. The following code seemed to work in PySide: class FramedViewedTextGlyph(CompositeGlyph, ViewSizeable, Proxiable, QGraphicsItemGroup): # no class inherits QObject def __init__(self): super(FramedViewedTextGlyph, self).__init__() # init group nec

Re: [PyQt] multiple inheritance suggestion

2012-04-14 Thread Luke Campagnola
On Sat, Apr 14, 2012 at 09:12, Phil Thompson wrote: > On Sun, 8 Apr 2012 22:40:04 -0400, Luke Campagnola > > wrote: > >As an example, consider the standard diamond > > inheritance problem: > > > >A > > /\ > > BC > > \/ > >D > > > > If A is a subclass of QObject, then presuma

Re: [PyQt] multiple inheritance suggestion

2012-04-14 Thread Phil Thompson
On Sun, 8 Apr 2012 22:40:04 -0400, Luke Campagnola wrote: > Howdy list, > > I'm trying to achieve some sort of multiple inheritance with custom classes > where each may define its own signals. I understand there are limitations > with SIP in this area, but It is not really necessary that QObject

[PyQt] multiple inheritance suggestion

2012-04-08 Thread Luke Campagnola
Howdy list, I'm trying to achieve some sort of multiple inheritance with custom classes where each may define its own signals. I understand there are limitations with SIP in this area, but It is not really necessary that QObject be inherited more than once. As an example, consider the standard dia

Re: [PyQt] Multiple Inheritance

2011-04-20 Thread Phil Thompson
On Wed, 20 Apr 2011 13:01:57 +0200, Zoltan Szalai wrote: > Hi All, > > The PyQt Reference Guide says: > "It is not possible to define a new Python class that sub-classes from > more than one Qt class." > [ > http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/gotchas.html#multiple-inheri

Re: [PyQt] Multiple Inheritance

2011-04-20 Thread Arnold Krille
On Wednesday 20 April 2011 13:01:57 Zoltan Szalai wrote: > Hi All, > > The PyQt Reference Guide says: > "It is not possible to define a new Python class that sub-classes from > more than one Qt class." > [ > http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/gotchas.html#mul > tiple-inheri

[PyQt] Multiple Inheritance

2011-04-20 Thread Zoltan Szalai
Hi All, The PyQt Reference Guide says: "It is not possible to define a new Python class that sub-classes from more than one Qt class." [ http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/gotchas.html#multiple-inheritance ] The code attached works here until you remove the comment be

Re: [PyQt] multiple inheritance + QtCore.pyqtSignal()

2010-07-13 Thread Phil Thompson
On Mon, 12 Jul 2010 18:51:47 +0100, Jugdish wrote: > Is there any way to have a class inherit from multiple classes that emit > signals? I know that PyQt4 doesn't support inheriting from one than one > QObject class, so I've got one of the superclasses declared as a subclass > QObject and the othe

[PyQt] multiple inheritance + QtCore.pyqtSignal()

2010-07-12 Thread Jugdish
Is there any way to have a class inherit from multiple classes that emit signals? I know that PyQt4 doesn't support inheriting from one than one QObject class, so I've got one of the superclasses declared as a subclass QObject and the other as a subclass of object. However, I'm not able to define s

Re: [PyQt] multiple inheritance and MappedType

2010-07-02 Thread Phil Thompson
On Thu, 1 Jul 2010 15:51:48 -0600, Clinton Stimpson wrote: > Hi, > > I've got an existing library with python wrappers generated with a > different > tool, and I've successfully used MappedType to interface with that and I'm > getting the interoperability I'm looking for. > > But now I want to

[PyQt] multiple inheritance and MappedType

2010-07-01 Thread Clinton Stimpson
Hi, I've got an existing library with python wrappers generated with a different tool, and I've successfully used MappedType to interface with that and I'm getting the interoperability I'm looking for. But now I want to use sip to wrap a class that derives from two classes, one is QObject, and

Re: [PyQt] Multiple inheritance with pyqt and python class

2010-06-11 Thread Phil Thompson
On Fri, 11 Jun 2010 13:06:10 -0700, brian downing wrote: > I know multiple inheritance with 2 pyqt objects isn't allowed. Is there > any problems with a single pyqt object and another python class? > > Here is an example: > - > class myMethods: > def _

[PyQt] Multiple inheritance with pyqt and python class

2010-06-11 Thread brian downing
I know multiple inheritance with 2 pyqt objects isn't allowed. Is there any problems with a single pyqt object and another python class? Here is an example: - class myMethods: def __init__(self, val): self.val=val def method1(self): …. classMyWidget(Q

Re: [PyQt] Multiple inheritance with item views

2010-02-22 Thread Andreas Pakulat
On 22.02.10 21:09:28, Jugdish wrote: > The reason I have BaseView inheriting from QAbstractItemView is because > inside it I make calls like: > > self.setItemDelegate(...) > self.setDragEnabled(...) > self.setEditTriggers(...) > > and so on. These are all things that are common to both > MyTreeVi

Re: [PyQt] Multiple inheritance with item views

2010-02-22 Thread Jugdish
The reason I have BaseView inheriting from QAbstractItemView is because inside it I make calls like: self.setItemDelegate(...) self.setDragEnabled(...) self.setEditTriggers(...) and so on. These are all things that are common to both MyTreeView/MyTableView, and obviously wouldn't work if BaseView

Re: [PyQt] Multiple inheritance with item views

2010-02-22 Thread Andreas Pakulat
On 22.02.10 19:45:31, Jugdish wrote: > I have my own subclasses of QTreeView and QTableView, called MyTableView and > MyTreeView. There is a lot of code that is common between my 2 classes, so > to avoid having tons of duplicate code, I was thinking of having a base > class derived from QAbstractIt

[PyQt] Multiple inheritance with item views

2010-02-22 Thread Jugdish
I have my own subclasses of QTreeView and QTableView, called MyTableView and MyTreeView. There is a lot of code that is common between my 2 classes, so to avoid having tons of duplicate code, I was thinking of having a base class derived from QAbstractItemView that they both derive from. This resul

Re: [PyQt] Multiple Inheritance

2008-03-13 Thread Hans-Peter Jansen
OTECTED] En nombre de Hans-Peter > Jansen Enviado el: jueves, 13 de marzo de 2008 12:40 > Para: pyqt@riverbankcomputing.com > Asunto: Re: [PyQt] Multiple Inheritance > > Am Donnerstag, 13. März 2008 schrieb Ivan Coronado: > > Is possible the Multiple Inheritance from qt classe

Re: [PyQt] Multiple Inheritance

2008-03-13 Thread Hans-Peter Jansen
Am Donnerstag, 13. März 2008 schrieb Ivan Coronado: > Is possible the Multiple Inheritance from qt classes with PyQt?? Yes and no, since at most one sip generated class can be involved. The question is, what's your purpose? Pete ___ PyQt mailing list

Re: [PyQt] Multiple Inheritance

2008-03-13 Thread Phil Thompson
On Thursday 13 March 2008, Ivan Coronado wrote: > Is possible the Multiple Inheritance from qt classes with PyQt?? No. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] Multiple Inheritance

2008-03-13 Thread Ivan Coronado
Is possible the Multiple Inheritance from qt classes with PyQt?? ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] Multiple inheritance involving KXMLGUIClient does not work?

2007-08-11 Thread Phil Thompson
On Saturday 11 August 2007 8:17 pm, Jim Bublitz wrote: > On Saturday 11 August 2007 11:48, Adeodato Simó wrote: > > Hello. > > > > I'm having problems with KXMLGUIClient; in particular, it seems > > subclassing from it does not work when multiple inheritance is involved. > > See the script below. I

Re: [PyQt] Multiple inheritance involving KXMLGUIClient does not work?

2007-08-11 Thread Jim Bublitz
On Saturday 11 August 2007 11:48, Adeodato Simó wrote: > Hello. > > I'm having problems with KXMLGUIClient; in particular, it seems > subclassing from it does not work when multiple inheritance is involved. > See the script below. If this gets fixed, the attached example should > work as well. > >

[PyQt] Multiple inheritance involving KXMLGUIClient does not work?

2007-08-11 Thread Adeodato Simó
Hello. I'm having problems with KXMLGUIClient; in particular, it seems subclassing from it does not work when multiple inheritance is involved. See the script below. If this gets fixed, the attached example should work as well. (I seem to be pushing PyKDE to its limits, and I've already found thr