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

Public Member Functions

def disable (self)
 
def enable (self)
 

Public Attributes

 HEADER
 colour code for header
 
 OKBLUE
 colour code for ok blue message
 
 OKGREEN
 colour code for ok green message
 
 WARNING
 colour code for warning message
 
 FAIL
 colour code for fail message
 
 ENDC
 colour code for end message
 

Static Public Attributes

string HEADER = '\033[95m'
 colour code for header
 
string OKBLUE = '\033[94m'
 colour code for ok blue message
 
string OKGREEN = '\033[92m'
 colour code for ok green message
 
string WARNING = '\033[100;93m'
 colour code for warning message
 
string FAIL = '\033[100;91m'
 colour code for fail message
 
string ENDC = '\033[0m'
 colour code for end message
 

Detailed Description

Class to define colour format of output message
Parameters:
     HEADER   colour code for header
     OKBLUE   colour code for ok blue message
     OKGREEN  colour code for ok green message
     WARNING  colour code for warning message
     FAIL     colour code for fail message
     ENDC     colour code for end message

Definition at line 40 of file colours.py.

Member Function Documentation

◆ disable()

def disable (   self)
Disable colour output format

Definition at line 64 of file colours.py.

64  def disable(self):
65  """
66  Disable colour output format
67  """
68 
69  self.HEADER = ''
70 
71  self.OKBLUE = ''
72 
73  self.OKGREEN = ''
74 
75  self.WARNING = ''
76 
77  self.FAIL = ''
78 
79  self.ENDC = ''
80 

◆ enable()

def enable (   self)
Enable colour output format

Definition at line 81 of file colours.py.


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