File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,22 @@ def welcome() -> None:
67
67
"""
68
68
Print a welcoming message when the program is executed.
69
69
"""
70
- message = "Using BioBrigit by Raúl Fernández-Díaz"
71
- print ("-" * (len (message ) + 4 ))
72
- print ("| " + message + " |" )
73
- print ("-" * (len (message ) + 4 ))
70
+ mssg1 = "== BioBrigit == "
71
+ mssg2 = "Copyright: Insilichem\n Supervisor: Jean-Didier Marechal\n Main developer: Raul Fernandez-Diaz"
72
+ max_width = max ([len (line ) for line in mssg2 .split ('\n ' )])
73
+ mssg1 = " " * ((max_width - len (mssg1 )) // 2 ) + mssg1 + " " * ((max_width - len (mssg1 ) + 1 ) // 2 )
74
+
75
+ print ("-" * (max_width + 3 ))
76
+ print ("| " + mssg1 + " |" )
77
+ print ("| " + " " * max_width + " |" )
78
+ # print("-" * (len(mssg1) + 3))
79
+ # print(mssg2)
80
+
81
+ # print("-" * (max_width + 4))
82
+ for line in mssg2 .split ('\n ' ):
83
+ print ("| " + line + " " * (max_width - len (line )) + " |" )
84
+
85
+ print ("-" * (max_width + 3 ))
74
86
print ()
75
87
76
88
You can’t perform that action at this time.
0 commit comments