11def perror(global_variables: GlobalVariables, string: str =
"This is an error") ->
None:
14 This is the function in charge of displaying an error on the error channel
17 global_variables (GlobalVariables): _description_. This is a class in charge of storing parameters that are global to the program.
18 string (str, optional): _description_. Defaults to "This is an error".
21 if isinstance(string, list):
24 data = f
"{string}".split(
"\n")
28 global_variables.beautify.disp_round_message_box(f
"Error: {i}")
29 global_variables.colourise_error.display(
30 global_variables.message_colours.ERROR,
32 global_variables.beautify.get_generated_content()
34 global_variables.colourise_error.display(
35 global_variables.message_colours.DEFAULT,
41def pwarning(global_variables: GlobalVariables, string: str =
"This is a warning") ->
None:
44 This is the function in charge of displaying a warning on the standard channel
47 global_variables (GlobalVariables): _description_. This is a class in charge of storing parameters that are global to the program.
48 string (str, optional): _description_. Defaults to "This is a warning".
50 if isinstance(string, list):
53 data = f
"{string}".split(
"\n")
57 global_variables.beautify.warning_message(i)
58 global_variables.colourise_output.display(
59 global_variables.message_colours.WARNING,
61 global_variables.beautify.get_generated_content()
63 global_variables.colourise_output.display(
64 global_variables.message_colours.DEFAULT,
70def psuccess(global_variables: GlobalVariables, string: str =
"This is a success") ->
None:
73 This is the function in charge of displaying a success on the standard channel
76 global_variables (GlobalVariables): _description_. This is a class in charge of storing parameters that are global to the program.
77 string (str, optional): _description_. Defaults to "This is a warning".
79 if isinstance(string, list):
82 data = f
"{string}".split(
"\n")
86 global_variables.beautify.success_message(i)
87 global_variables.colourise_output.display(
88 global_variables.message_colours.SUCCESS,
90 global_variables.beautify.get_generated_content()
92 global_variables.colourise_output.display(
93 global_variables.message_colours.DEFAULT,
99def pinfo(global_variables: GlobalVariables, string: str =
"This is a success") ->
None:
102 This is the function in charge of displaying an info on the standard channel
105 global_variables (GlobalVariables): _description_. This is a class in charge of storing parameters that are global to the program.
106 string (str, optional): _description_. Defaults to "This is a warning".
108 if isinstance(string, list):
111 data = f
"{string}".split(
"\n")
115 global_variables.beautify.inform_message(i)
116 global_variables.colourise_output.display(
117 global_variables.message_colours.INFO,
119 global_variables.beautify.get_generated_content()
121 global_variables.colourise_output.display(
122 global_variables.message_colours.DEFAULT,
128def pdebug(global_variables: GlobalVariables, string: str =
"This is a debug string") ->
None:
131 This is a function in charge of displaying a string only if the debug variable is set to true (in global variables)
133 if global_variables.user_arguments.debug:
134 if isinstance(string, list):
137 data = f
"{string}".split(
"\n")
141 global_variables.beautify.message(f
"Debug: {i}")
142 global_variables.colourise_output.display(
143 global_variables.message_colours.DEBUG,
145 global_variables.beautify.get_generated_content()
147 global_variables.colourise_output.display(
148 global_variables.message_colours.DEFAULT,