<s> """<STR_LIT>""" <EOL> import os <EOL> from lantz . utils . qt_loaders import ( load_qt , QT_API_PYSIDE , QT_API_PYQT , QT_MOCK ) <EOL> QT_API = os . environ . get ( '<STR_LIT>' , None ) <EOL> if QT_API not in [ QT_API_PYSIDE , QT_API_PYQT , QT_MOCK , None ] : <EOL> raise RuntimeError ( "<STR_LIT>" % <EOL> ( QT_API , QT_API_PYSIDE , QT_API_PYQT , QT_MOCK ) ) <EOL> if QT_API is None : <EOL> api_opts = [ QT_API_PYSIDE , QT_API_PYQT ] <EOL> else : <EOL> api_opts = [ QT_API ] <EOL> QtCore , QtGui , QtSvg , QT_API = load_qt ( api_opts ) <EOL> class SuperQObject ( QtCore . QObject ) : <EOL> """<STR_LIT>""" <EOL> def __new__ ( cls , * args , ** kw ) : <EOL> inst = QtCore . QObject . __new__ ( cls ) <EOL> QtCore . QObject . __init__ ( inst ) <EOL> return inst <EOL> def __init__ ( self , * args , ** kw ) : <EOL> mro = self . __class__ . mro ( ) <EOL> for qt_class in QtCore . QObject . mro ( ) : <EOL> mro . remove ( qt_class ) <EOL> next_index = mro . index ( SuperQObject ) + <NUM_LIT:1> <EOL> if next_index < len ( mro ) : <EOL> init = mro [ next_index ] . __init__ <EOL> if init is object . __init__ : <EOL> init ( self ) <EOL> else : <EOL> init ( self , * args , ** kw ) <EOL> MetaQObject = type ( QtCore . QObject ) </s>
