Exemplo n.º 1
0
 def dir_context(context, engine):
     if context.argumentCount() == 0:
         obj = context.thisObject()
     else:
         obj = context.argument(0)
     l = []
     it = QScriptValueIterator(obj)
     while it.hasNext():
         it.next()
         l.append(str(it.name()))
     return QScriptValue(engine, repr(l))
Exemplo n.º 2
0
 def dir_context(context, engine):
     if context.argumentCount() == 0:
         obj = context.thisObject()
     else:
         obj = context.argument(0)
     l = []
     it = QScriptValueIterator(obj)
     while it.hasNext():
         it.next()
         l.append(str(it.name()))
     return QScriptValue(engine, repr(l))
Exemplo n.º 3
0
 def iter_obj(self, obj):
     it = QScriptValueIterator(self.engine.globalObject())
     while it.hasNext():
         yield str(it.name())
         it.next()
Exemplo n.º 4
0
 def iter_obj(self, obj):
     it = QScriptValueIterator(self.engine.globalObject())
     while it.hasNext():
         yield str(it.name())
         it.next()