[PyKDE] Dictionary thru new Signal/Slot mechanism

Roberto Alsina ralsina at kde.org
Wed Feb 1 13:08:37 GMT 2006


El Miércoles, 1 de Febrero de 2006 09:48, V. Armando Sole escribió:
> Hi!
>
> I'm maintaining a fairly large amount of code where most of the former
> PYSIGNALS were implemented by sending a dictionary. Unless I'm missing
> something, I did not found other way to keep the code working than to make
> a derivative class of a supported type and make it behave as a dictionary
> without being one. For instance:

I haven't even got PyQt4 yet, but how about inheriting from a dictionary and a 
QObject?

class myclass (QObject,dict):
	whatever
   
-- 
 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina at kde.org
 (_Y_.)' ._   ) `._`.  " -.-'   KDE Developer (MFCH)
  _..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.'   Buenos Aires - Argentina
Imminentizing the eschaton since 1971.




More information about the PyQt mailing list