Skip to content

Commit

Permalink
renamed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gbarlier authored and gbarlier committed May 6, 2013
1 parent 0b41997 commit 75131af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anim_picker/handlers/qt_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@


# Instance handling
def wrap_instance(ptr, qt_class):
def wrap_instance(ptr, base):
'''Return QtGui object instance based on pointer address
'''
if globals().has_key('sip'):
return sip.wrapinstance(long(ptr), QtCore.QObject)
elif globals().as_key('shiboken'):
return shiboken.wrapInstance(long(ptr), qt_class)
return shiboken.wrapInstance(long(ptr), base)

def unwrap_instance(qt_object):
'''Return pointer address for qt class instance
Expand Down

0 comments on commit 75131af

Please sign in to comment.