parallel_self_test.Colours Class Reference

Public Member Functions

def disable (self)
 

Public Attributes

 Header
 
 Okgreen
 
 MakeFail
 
 TestFail
 
 TestBypassed
 
 Endc
 

Static Public Attributes

string Header = '\033[96m'
 
string Okgreen = '\033[92m'
 
string MakeFail = '\033[93m'
 
string TestFail = '\033[91m'
 
string TestBypassed = '\033[95m'
 
string Endc = '\033[0m'
 

Detailed Description

Very simple class for coloring in text output. Stolen from
http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python

If we were using python 3 we could use the termcolor package instead.

Member Function Documentation

◆ disable()

def parallel_self_test.Colours.disable (   self)
73  def disable(self):
74  self.Header = ''
75  self.Okgreen = ''
76  self.MakeFail = ''
77  self.TestFail = ''
78  self.TestBypassed = ''
79  self.Endc = ''
80 
81 
82 # Make a GLOBAL colours object to tell print functions how to make things
83 # pretty. Easier to make it global because we want to be able to disable it
84 # from inside main() without passing around a Colours object all over the
85 # place.

Member Data Documentation

◆ Endc [1/2]

string parallel_self_test.Colours.Endc = '\033[0m'
static

◆ Endc [2/2]

parallel_self_test.Colours.Endc

◆ Header [1/2]

string parallel_self_test.Colours.Header = '\033[96m'
static

◆ Header [2/2]

parallel_self_test.Colours.Header

◆ MakeFail [1/2]

string parallel_self_test.Colours.MakeFail = '\033[93m'
static

◆ MakeFail [2/2]

parallel_self_test.Colours.MakeFail

◆ Okgreen [1/2]

string parallel_self_test.Colours.Okgreen = '\033[92m'
static

◆ Okgreen [2/2]

parallel_self_test.Colours.Okgreen

◆ TestBypassed [1/2]

string parallel_self_test.Colours.TestBypassed = '\033[95m'
static

◆ TestBypassed [2/2]

parallel_self_test.Colours.TestBypassed

◆ TestFail [1/2]

string parallel_self_test.Colours.TestFail = '\033[91m'
static

◆ TestFail [2/2]

parallel_self_test.Colours.TestFail

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