-import time
-
-
-
-def QVarMapAccess(qv, key):
- # helper function. qv is a dict wrapped into a QVariant
- #print 10*'='
- #print "DICT:", qv.toMap()
-# if len(qv.toMap().keys()) == 0:
-# print "EMPTY!"
-# import traceback
-# traceback.print_stack()
-# return None
-# else:
- return qv.toMap()[QString(key)].toString()
-