test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
FWCore
GuiBrowsers
python
Vispa
Plugins
EdmBrowser
EdmBrowserBoxView.py
Go to the documentation of this file.
1
import
logging
2
3
from
Vispa.Views.BoxDecayView
import
BoxDecayView
4
from
Vispa.Gui.WidgetContainer
import
WidgetContainer
5
6
class
EdmBrowserBoxView
(
BoxDecayView
):
7
"""
8
"""
9
LABEL=
"BoxView"
10
11
def
createBox
(self, widgetParent, container, title, text):
12
widget=BoxDecayView.createBox(self, widgetParent, container, title, text)
13
if
isinstance(widget,WidgetContainer):
14
widget.setNotCollapsable()
15
return
widget
16
17
def
selection
(self):
18
return
self.
dataAccessor
().
read
(BoxDecayView.selection(self))
19
20
def
isUpdated
(self,object):
21
widget=self.
widgetByObject
(object)
22
if
widget:
23
return
len(self.
dataAccessor
().children(object))==len(widget.children())
and
\
24
((isinstance(widget,WidgetContainer)
and
len(self.
dataAccessor
().children(object))>0)
or
\
25
(
not
isinstance(widget,WidgetContainer)
and
len(self.
dataAccessor
().children(object))==0))
26
else
:
27
return
False
Vispa.Share.ObjectHolder.ObjectHolder.dataAccessor
def dataAccessor
Definition:
ObjectHolder.py:29
Vispa.Plugins.EdmBrowser.EdmBrowserBoxView.EdmBrowserBoxView.selection
def selection
Definition:
EdmBrowserBoxView.py:17
Vispa.Views.WidgetView.WidgetView.widgetByObject
def widgetByObject
Definition:
WidgetView.py:52
Vispa.Plugins.EdmBrowser.EdmBrowserBoxView.EdmBrowserBoxView.isUpdated
def isUpdated
Definition:
EdmBrowserBoxView.py:20
Vispa.Gui.WidgetContainer
Definition:
WidgetContainer.py:1
SiPixelLorentzAngle_cfi.read
tuple read
Definition:
SiPixelLorentzAngle_cfi.py:7
Vispa.Views.BoxDecayView.BoxDecayView
Definition:
BoxDecayView.py:19
Vispa.Plugins.EdmBrowser.EdmBrowserBoxView.EdmBrowserBoxView
Definition:
EdmBrowserBoxView.py:6
Vispa.Views.BoxDecayView
Definition:
BoxDecayView.py:1
Vispa.Plugins.EdmBrowser.EdmBrowserBoxView.EdmBrowserBoxView.createBox
def createBox
Definition:
EdmBrowserBoxView.py:11
Generated for CMSSW Reference Manual by
1.8.5