Lines Matching refs:object
7 # object browser
10 # - for classes/modules, add "open source" to object browser
21 def __init__(self, labeltext, object, setfunction=None):
23 self.object = object
28 return myrepr.repr(self.object)
41 self.object = value
43 return not not dir(self.object)
45 keys = dir(self.object)
49 value = getattr(self.object, key)
55 lambda value, key=key, object=self.object:
56 setattr(object, key, value))
66 make_objecttreeitem("__class__ =", self.object.__class__))
74 if len(self.object.__bases__) == 1:
76 self.object.__bases__[0])
78 item = make_objecttreeitem("__bases__ =", self.object.__bases__)
88 return len(self.object) > 0
90 return range(len(self.object))
95 value = self.object[key]
98 def setfunction(value, key=key, object=self.object):
99 object[key] = value
106 keys = self.object.keys()
127 def make_objecttreeitem(labeltext, object, setfunction=None):
128 t = type(object)
133 return c(labeltext, object, setfunction)