tvaLib
Public Member Functions | Public Attributes | List of all members
include.config.Back Class Reference
Inheritance diagram for include.config.Back:

Public Member Functions

def __init__ (self, forceOff=False)
 
def disable (self)
 
def enable (self)
 

Public Attributes

 BLACK
 
 RED
 
 GREEN
 
 YELLOW
 
 BLUE
 
 MAGENTA
 
 CYAN
 
 WHITE
 
 RESET
 

Detailed Description

Override ANSI colour classes if colorama is not installed. 

Definition at line 646 of file config.py.

Constructor & Destructor Documentation

◆ __init__()

def include.config.Back.__init__ (   self,
  forceOff = False 
)

Definition at line 648 of file config.py.

648  def __init__(self, forceOff=False):
649  if(platform == 'win32' or forceOff): self.disable()
650  else: self.enable()

Member Function Documentation

◆ disable()

def include.config.Back.disable (   self)

Definition at line 651 of file config.py.

651  def disable(self):
652  self.BLACK = ''
653  self.RED = ''
654  self.GREEN = ''
655  self.YELLOW = ''
656  self.BLUE = ''
657  self.MAGENTA = ''
658  self.CYAN = ''
659  self.WHITE = ''
660  self.RESET = ''

◆ enable()

def include.config.Back.enable (   self)

Definition at line 661 of file config.py.

661  def enable(self):
662  self.BLACK = '\033[40m'
663  self.RED = '\033[41m'
664  self.GREEN = '\033[42m'
665  self.YELLOW = '\033[43m'
666  self.BLUE = '\033[44m'
667  self.MAGENTA = '\033[45m'
668  self.CYAN = '\033[46m'
669  self.WHITE = '\033[47m'
670  self.RESET = '\033[49m'
671 

Member Data Documentation

◆ BLACK

include.config.Back.BLACK

Definition at line 652 of file config.py.

◆ BLUE

include.config.Back.BLUE

Definition at line 656 of file config.py.

◆ CYAN

include.config.Back.CYAN

Definition at line 658 of file config.py.

◆ GREEN

include.config.Back.GREEN

Definition at line 654 of file config.py.

◆ MAGENTA

include.config.Back.MAGENTA

Definition at line 657 of file config.py.

◆ RED

include.config.Back.RED

Definition at line 653 of file config.py.

◆ RESET

include.config.Back.RESET

Definition at line 660 of file config.py.

◆ WHITE

include.config.Back.WHITE

Definition at line 659 of file config.py.

◆ YELLOW

include.config.Back.YELLOW

Definition at line 655 of file config.py.


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