Skip to content

Instantly share code, notes, and snippets.

@blair
Created June 7, 2012 19:59
Show Gist options
  • Save blair/2891220 to your computer and use it in GitHub Desktop.
Save blair/2891220 to your computer and use it in GitHub Desktop.
from PyQt4 import QtCore
class Parent(QtCore.QObject):
class InnerClassParent(QtCore.QObject):
def parent_do(self):
self.emit(QtCore.SIGNAL('FOO'))
class Child(Parent):
class InnerClassChild(Parent.InnerClassParent):
def child_do(self):
self.emit(QtCore.SIGNAL('FOO'))
m = Child.InnerClassChild()
m.child_do()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment