1 from idlelib
import TreeWidget
2 from PyKernel
import PyKernel
10 cppyy.load_library(
"libPyAnalysisCoreDict")
20 def __init__ (self, name, ref, expandable, classKey=None):
45 x = eval (
'PyKernel.plot ("%s#%s", "$x.%s()")' % (objList[self.
classKey], self.
classKey, self.
name))
55 if hasattr(self.
ref,
'size')
and hasattr(self.
ref,
'__getitem__'):
67 if re.search(
"\A_",attr):
70 if re.search(
"\Am_",attr):
73 attrRef = getattr(self.
ref,attr)
74 item = EDMItem (attr,attrRef,
False,self.
classKey)
88 if re.search(
"\A_",attr):
91 attrRef = getattr(self.
ref,attr)
92 item = EDMItem (attr,attrRef,
True,attr)
102 dh = g.PyDataHeader()
104 for i
in range(dh.size()):
105 objList[dh.getKey(i)] = dh.getName(i)
111 rootObj = MyRootObj()
114 for key
in objList.keys():
117 exec
'con = PyKernel.retrieve(g.%s,"%s")' % (name, key)
118 setattr(rootObj,key, con)
124 root.title(os.path.basename(sys.argv[0]))
127 sc = TreeWidget.ScrolledCanvas(root, bg=
"white", highlightthickness=0, takefocus=1)
128 sc.frame.pack(expand=1, fill=
"both")
131 node = TreeWidget.TreeNode(sc.canvas,
None, item)