99
1010PYTHON_LIB_NAME = "Basic_Maths"
1111PYTHON_LIB_LICENCE = "GPL2"
12- PYTHON_LIB_VER = "4.0 "
12+ PYTHON_LIB_VER = "4.1 "
1313PYTHON_LIB_SUPPORT_PLATFORM = "Windows/Linux/macOS/otherOS"
1414PYTHON_LIB_RELEASE_DATE = "9/30/2023, Time: XX:XX"
15- PYTHON_LIB_LAST_UPDATE_DATE = "6/3 /2024, Time: 12:50 "
15+ PYTHON_LIB_LAST_UPDATE_DATE = "6/4 /2024, Time: 23:42 / 11:42 PM "
1616PYTHON_LIB_AUTHOR = "LinuxUsersLinuxMint"
1717PYTHON_LIB_AUTHOR_WEB_SITE = "https://linuxuserslinuxmint.github.io"
1818
@@ -32,33 +32,27 @@ def error_msg():
3232 print (error_dialog )
3333
3434def exit_program_dialog_time (exit_dialog_msg ,userTime ):
35+ print (exit_dialog_msg )
36+ userTime = int (userTime )
37+ time .sleep (userTime )
3538 if platform .system () == "Windows" :
36- print (exit_dialog_msg )
37- userTime = int (userTime )
38- time .sleep (userTime )
3939 os .system ("exit" )
4040 else :
41- print (exit_dialog_msg )
42- userTime = int (userTime )
43- time .sleep (userTime )
4441 exit ()
4542
4643def exit_program_time (userTime ):
44+ time .sleep (userTime )
45+ userTime = int (userTime )
4746 if platform .system () == "Windows" :
48- time .sleep (userTime )
49- userTime = int (userTime )
5047 os .system ("exit" )
5148 else :
52- time .sleep (userTime )
53- userTime = int (userTime )
5449 exit ()
5550
5651def exit_program_dialog (exit_dialog_msg ):
52+ print (exit_dialog_msg )
5753 if platform .system () == "Windows" :
58- print (exit_dialog_msg )
5954 os .system ("exit" )
6055 else :
61- print (exit_dialog_msg )
6256 exit ()
6357
6458""" Example Dialog (ExitSelectDialog): "Select the method to exit the program (0: Dialogue and Time entry, 1: Time entry only, 2: Dialogue entry only, 3: Normal exit (old style)): "
@@ -73,7 +67,7 @@ def all_exit(ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog):
7367 userTime = input (userTimeDialog )
7468 exit_program_dialog_time (exitDialog , userTime )
7569 elif exit_select == 1 :
76- userTime = input (userTime )
70+ userTime = input (userTimeDialog )
7771 exit_program_time (userTime )
7872 elif exit_select == 2 :
7973 exit_program_dialog (exitDialog )
@@ -83,11 +77,11 @@ def all_exit(ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog):
8377 print (errormsgDialog )
8478
8579def program_welcome_msg (welcome_msg ,cfg ):
80+ print (welcome_msg )
8681 if cfg == 1 :
87- print (welcome_msg )
8882 LibAbout ()
8983 elif cfg == 0 :
90- print ( welcome_msg )
84+ pass
9185
9286def program_info (programnamedialog ,program_name ,programversiondialog ,program_version ,programsupportosdialog ,program_support_os ,programlicencedialog ,program_licence ,programauthordialog ,program_author ,programauthorwebsitedialog ,program_author_web_site ,programreleasedatedialog ,program_rs_date ,programlastupdatedatedialog ,program_last_update_date ):
9387 print ("{0} {1}" . format (programnamedialog ,program_name ))
0 commit comments