Definition at line 15 of file PyPoolBrowser.py.
◆ __init__()
def PyPoolBrowser.EDMItem.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
ref, |
|
|
|
expandable, |
|
|
|
classKey = None |
|
) |
| |
Definition at line 20 of file PyPoolBrowser.py.
20 def __init__ (self, name, ref, expandable, classKey=None):
23 self.expandable = expandable
24 self.classKey = classKey
◆ GetIconName()
def PyPoolBrowser.EDMItem.GetIconName |
( |
|
self | ) |
|
Definition at line 32 of file PyPoolBrowser.py.
32 def GetIconName(self):
33 if not self.IsExpandable():
◆ GetSubList()
def PyPoolBrowser.EDMItem.GetSubList |
( |
|
self | ) |
|
Reimplemented in PyPoolBrowser.RootItem.
Definition at line 52 of file PyPoolBrowser.py.
52 def GetSubList (self):
55 if hasattr(self.ref,
'size')
and hasattr(self.ref,
'__getitem__'):
57 if self.ref.
size() != 0:
58 item = EDMItem (
'%s constituents' % self.ref.
size(),self.ref[0],
True,self.classKey)
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)
◆ GetText()
def PyPoolBrowser.EDMItem.GetText |
( |
|
self | ) |
|
◆ IsExpandable()
def PyPoolBrowser.EDMItem.IsExpandable |
( |
|
self | ) |
|
Definition at line 29 of file PyPoolBrowser.py.
29 def IsExpandable (self):
30 return self.expandable
◆ OnDoubleClick()
def PyPoolBrowser.EDMItem.OnDoubleClick |
( |
|
self | ) |
|
Definition at line 37 of file PyPoolBrowser.py.
37 def OnDoubleClick(self):
39 if self.IsExpandable():
42 if self.classKey ==
None:
45 x = eval (
'PyKernel.plot ("%s#%s", "$x.%s()")' % (objList[self.classKey], self.classKey, self.name))
◆ classKey
PyPoolBrowser.EDMItem.classKey |
◆ expandable
PyPoolBrowser.EDMItem.expandable |
◆ name
PyPoolBrowser.EDMItem.name |
◆ ref
PyPoolBrowser.EDMItem.ref |
The documentation for this class was generated from the following file: