GLXViewer.viewer module¶
-
class
GLXViewer.viewer.Viewer[source]¶ Bases:
objectThe 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
-
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_colorpropertyReturns: 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_textcolor.see:
status_textproperty for more detailsReturns: the status_text_colorproperty valueReturn type: str
-
text_column_1¶ Property it store
text_column_1value. It value is use by template for display the column 1Returns: The text_column_1valueReturn type: str
-
text_column_2¶ Property it store
text_column_2value. It value is use by template for display the column 2Returns: The text_column_2valueReturn type: str
-
text_column_3¶ Property it store
text_column_3value. It value is use by template for display the column 3Returns: The text_column_3valueReturn type: str
-
with_date¶ Property use for show date
Returns: with date property value Return type: str
-
