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

Public Member Functions

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

Public Attributes

 DIM
 
 NORMAL
 
 BRIGHT
 
 RESET_ALL
 

Detailed Description

Override ANSI colour classes if colorama is not installed. 

Definition at line 672 of file config.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 674 of file config.py.

674  def __init__(self, forceOff=False):
675  if(platform == 'win32' or forceOff): self.disable()
676  else: self.enable()

Member Function Documentation

◆ disable()

def include.config.Style.disable (   self)

Definition at line 677 of file config.py.

677  def disable(self):
678  self.DIM = ''
679  self.NORMAL = ''
680  self.BRIGHT = ''
681  self.RESET_ALL = ''

◆ enable()

def include.config.Style.enable (   self)

Definition at line 682 of file config.py.

682  def enable(self):
683  self.DIM = '\033[0m'
684  self.NORMAL = '\033[1m'
685  self.BRIGHT = '\033[2m'
686  self.RESET_ALL = '\033[m'
687 
688 
689 

Member Data Documentation

◆ BRIGHT

include.config.Style.BRIGHT

Definition at line 680 of file config.py.

◆ DIM

include.config.Style.DIM

Definition at line 678 of file config.py.

◆ NORMAL

include.config.Style.NORMAL

Definition at line 679 of file config.py.

◆ RESET_ALL

include.config.Style.RESET_ALL

Definition at line 681 of file config.py.


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