Belle II Software light-2406-ragdoll
ProcessViewer Class Reference

Public Member Functions

def __init__ (self, children)
 
def create (self)
 
def show (self)
 

Public Attributes

 children
 The children for each process.
 

Detailed Description

A widget to summarize all the infromation from different processes.
Must be filled with the widgets of the single processes

Definition at line 252 of file viewer.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  children 
)
Create a process viewer

Definition at line 258 of file viewer.py.

258 def __init__(self, children):
259 """
260 Create a process viewer
261 """
262
263
264 self.children = children
265

Member Function Documentation

◆ create()

def create (   self)
Create the widget

Definition at line 266 of file viewer.py.

266 def create(self):
267 """
268 Create the widget
269 """
270 import ipywidgets as widgets
271
272 a = widgets.Tab()
273 for i in range(len(self.children)):
274 a.set_title(i, "Process " + str(i))
275 a.children = [children.create() for children in self.children if children is not None]
276 return a
277

◆ show()

def show (   self)
Show the widget

Definition at line 278 of file viewer.py.

278 def show(self):
279 """
280 Show the widget
281 """
282
283 import ipywidgets as widgets
284 from IPython.core.display import display
285
286 if len(self.children) > 0:
287 a = self.create()
288
289 else:
290 a = widgets.HTML("<strong>Calculation list empty. Nothing to show.</strong>")
291
292 display(a)
293
294

Member Data Documentation

◆ children

children

The children for each process.

Definition at line 264 of file viewer.py.


The documentation for this class was generated from the following file: