Skip to content

Commit daccb13

Browse files
Update Basic_Maths.
1 parent 5ba8f89 commit daccb13

File tree

1 file changed

+11
-17
lines changed

1 file changed

+11
-17
lines changed

Basic_Maths/Basic_maths.py

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
PYTHON_LIB_NAME="Basic_Maths"
1111
PYTHON_LIB_LICENCE="GPL2"
12-
PYTHON_LIB_VER="4.0"
12+
PYTHON_LIB_VER="4.1"
1313
PYTHON_LIB_SUPPORT_PLATFORM="Windows/Linux/macOS/otherOS"
1414
PYTHON_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"
1616
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
1717
PYTHON_LIB_AUTHOR_WEB_SITE="https://linuxuserslinuxmint.github.io"
1818

@@ -32,33 +32,27 @@ def error_msg():
3232
print(error_dialog)
3333

3434
def 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

4643
def 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

5651
def 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

8579
def 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

9286
def 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

Comments
 (0)