Belle II Software  release-08-01-10
StylingWidget Class Reference
Inheritance diagram for StylingWidget:
Collaboration diagram for StylingWidget:

Public Member Functions

def create (self)
 
def show (self)
 

Static Public Attributes

string css_string
 The css string for styling the notebook. More...
 

Detailed Description

The css string for styling the notebook.

Definition at line 13 of file viewer.py.

Member Function Documentation

◆ create()

def create (   self)
inherited
Create the styling widget.

Reimplemented from IPythonWidget.

Definition at line 59 of file viewer.py.

59  def create(self):
60  """Create the styling widget."""
61  from IPython.core.display import HTML
62  html = HTML("<style>\n%s\n</style>" % self.css_string)
63  return html
64 
65 

◆ show()

def show (   self)
inherited
Show the widget

Reimplemented in ProgressBarViewer.

Definition at line 31 of file viewer.py.

Member Data Documentation

◆ css_string

string css_string
static
Initial value:
= """
#notebook {
background-color: rgba(20, 166, 255, 0.3);
background-image: url("http://www-ekp.physik.uni-karlsruhe.de/~nbraun/belle.svg");
background-repeat: no-repeat;
background-position: right bottom;
}
#notebook-container {
width: 90%;
}
#menubar-container {
width: 90%;
}
#header-container {
width: 90%;
}
"""

The css string for styling the notebook.

Definition at line 17 of file viewer.py.


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