GLXViewer.viewer module

class GLXViewer.viewer.Singleton(name, bases, dict)[source]

Bases: type

class GLXViewer.viewer.Viewer[source]

Bases: object

The class viewer

allowed_colors

Allowed colors:

ORANGE, RED, RED2, YELLOW, YELLOW2, WHITE, WHITE2, CYAN, GREEN, GREEN2

Note that Upper, Lower, Tittle case are allowed

Returns:A list of allowed colors
Return type:list
static flush_a_new_line()[source]
Flush a new line. It consist to a

write on stdout

flush_infos(with_date=True, status_text='DEBUG', status_text_color='ORANGE', status_symbol=' ', column_1='', column_2='', column_3='', prompt=None)[source]

Flush a line a bit like you want

Parameters:
  • with_date (bool) – show date if True
  • status_text (str) – The text to display ton the status part
  • status_text_color (str) – allowed : ORANGE, RED, RED2, YELLOW, YELLOW2, WHITE, WHITE2, CYAN, GREEN, GREEN2
  • status_symbol – str or None
  • column_1 (str or None) – A Class name
  • column_2 (str or None) – The thing to print in column 2
  • column_3 (str or None) – The thing to print in column 3
  • prompt (None, -1, +1) – value
formatted_date
instance = <GLXViewer.viewer.Viewer object>
size_line_actual
size_line_previous
status_symbol

Property it store a symbol of one letter. like ! > < / - | generally for show you application fo something.

it thing exist that because i use it for show if that a input or output message.

Actually the symbol use CYAN color, and have 1 space character on the final template. Certainly something it can be improve. Will see in future need’s …

Returns:status_symbol character
Return type:str
status_text

Property it store text of the status text like “DEBUG” “LOAD”

Later the Viewer will add bracket’s around it text, and set the color during display post-processing.

see: status_text_color property

Returns:status_text property value
Return type:str
status_text_color

Property it store one allowed color value, it value will be use to display status_text color.

see: status_text property for more details

Returns:the status_text_color property value
Return type:str
text_column_1

Property it store text_column_1 value. It value is use by template for display the column 1

Returns:The text_column_1 value
Return type:str
text_column_2

Property it store text_column_2 value. It value is use by template for display the column 2

Returns:The text_column_2 value
Return type:str
text_column_3

Property it store text_column_3 value. It value is use by template for display the column 3

Returns:The text_column_3 value
Return type:str
with_date

Property use for show date

Returns:with date property value
Return type:str