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

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 620 of file config.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 622 of file config.py.

622  def __init__(self, forceOff=False):
623  if(platform == 'win32' or forceOff): self.disable()
624  else: self.enable()

Member Function Documentation

◆ disable()

def include.config.Fore.disable (   self)

Definition at line 625 of file config.py.

625  def disable(self):
626  self.BLACK = ''
627  self.RED = ''
628  self.GREEN = ''
629  self.YELLOW = ''
630  self.BLUE = ''
631  self.MAGENTA = ''
632  self.CYAN = ''
633  self.WHITE = ''
634  self.RESET = ''

◆ enable()

def include.config.Fore.enable (   self)

Definition at line 635 of file config.py.

635  def enable(self):
636  self.BLACK = '\033[30m'
637  self.RED = '\033[31m'
638  self.GREEN = '\033[32m'
639  self.YELLOW = '\033[33m'
640  self.BLUE = '\033[34m'
641  self.MAGENTA = '\033[35m'
642  self.CYAN = '\033[36m'
643  self.WHITE = '\033[37m'
644  self.RESET = '\033[39m'
645 

Member Data Documentation

◆ BLACK

include.config.Fore.BLACK

Definition at line 626 of file config.py.

◆ BLUE

include.config.Fore.BLUE

Definition at line 630 of file config.py.

◆ CYAN

include.config.Fore.CYAN

Definition at line 632 of file config.py.

◆ GREEN

include.config.Fore.GREEN

Definition at line 628 of file config.py.

◆ MAGENTA

include.config.Fore.MAGENTA

Definition at line 631 of file config.py.

◆ RED

include.config.Fore.RED

Definition at line 627 of file config.py.

◆ RESET

include.config.Fore.RESET

Definition at line 634 of file config.py.

◆ WHITE

include.config.Fore.WHITE

Definition at line 633 of file config.py.

◆ YELLOW

include.config.Fore.YELLOW

Definition at line 629 of file config.py.


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