Skip to content

Commit 824d18f

Browse files
Update Basic_Maths.
1 parent 137e47b commit 824d18f

File tree

3 files changed

+26
-28
lines changed

3 files changed

+26
-28
lines changed

Basic_Maths/lib_ver_info.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
PYTHON_LIB_LICENCE="GPL2"
1010
PYTHON_LIB_IMPLEMENTED_CONTRACTS="LinuxUsersLinuxMint Privacy and Security Agreement , LinuxUsersLinuxMint Web (Site) Agreement"
1111
PYTHON_LIB_IMPLEMENTED_CONTRACTS_WEB_SITE="https://linuxuserslinuxmint.github.io/Contracts/privacyandsecutryagreement/en/privacyandsecutryagreement.html , https://linuxuserslinuxmint.github.io/Contracts/linuxuserslinuxmintwebsiteagreement/en/linuxuserslinuxmintwebsiteagreement.html"
12-
PYTHON_LIB_VER="5.1"
12+
PYTHON_LIB_VER="5.2"
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="11/16/2024, Time: 18:56 / 6:56 PM"
15+
PYTHON_LIB_LAST_UPDATE_DATE="1/1/2025, Time: 20:02 / 10:02 PM"
1616
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
1717
PYTHON_LIB_AUTHOR_WEB_SITE="https://linuxuserslinuxmint.github.io"

PyAppDevKit/LibFunc/pyappdevkit.py

+22-24
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,28 @@
55
Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/PyAppDevKit
66
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/PyAppDevKit"""
77

8-
import os, time, platform
8+
def time(number):
9+
while number > 0:
10+
number -= 1
11+
for _ in range(100000000):
12+
pass
913

1014
def error_msg(error_dialog):
1115
print(error_dialog)
1216

1317
def exit_program_dialog_time(exit_dialog_msg,userTime):
1418
print(exit_dialog_msg)
1519
userTime = int(userTime)
16-
time.sleep(userTime)
17-
if platform.system() == "Windows":
18-
os.system("exit")
19-
else:
20-
exit()
20+
time(userTime)
21+
exit()
2122

2223
def exit_program_time(userTime):
2324
userTime = int(userTime)
24-
time.sleep(userTime)
25-
if platform.system() == "Windows":
26-
os.system("exit")
27-
else:
28-
exit()
25+
time(userTime)
26+
exit()
2927

3028
def exit_program_dialog(exit_dialog_msg):
3129
print(exit_dialog_msg)
32-
if platform.system() == "Windows":
33-
os.system("exit")
34-
else:
35-
exit()
3630

3731
""" 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)): "
3832
Example Dialog (userTimeDialog): "After how many seconds should the program be closed?: "
@@ -55,14 +49,6 @@ def all_exit(ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog):
5549
else:
5650
print(errormsgDialog)
5751

58-
def program_welcome_msg(welcome_msg,cfg):
59-
print(welcome_msg)
60-
if cfg == 1:
61-
#LibAbout()
62-
pass
63-
elif cfg == 0:
64-
pass
65-
6652
def program_info(dialog_one,dialog_one_t,dialog_two,dialog_two_t,dialog_three,dialog_three_t,dialog_four,dialog_four_t,dialog_five,dialog_five_t,dialog_six,dialog_six_t,dialog_seven,dialog_seven_t,dialog_eigth,dialog_eight_t,dialog_nine,dialog_nine_t,dialog_ten,dialog_ten_t):
6753
print("{0} {1}". format(dialog_one,dialog_one_t))
6854
print("{0} {1}". format(dialog_two,dialog_two_t))
@@ -85,4 +71,16 @@ def library_info(dialog_one,dialog_one_t,dialog_two,dialog_two_t,dialog_three,di
8571
print("{0} {1}". format(dialog_seven,dialog_seven_t))
8672
print("{0} {1}". format(dialog_eigth,dialog_eight_t))
8773
print("{0} {1}". format(dialog_nine,dialog_nine_t))
88-
print("{0} {1}". format(dialog_ten,dialog_ten_t))
74+
print("{0} {1}". format(dialog_ten,dialog_ten_t))
75+
76+
def program_welcome_msg(welcome_msg,cfg,cfg_,appname,libname,websitelink):
77+
print(welcome_msg)
78+
if cfg == 1:
79+
print(websitelink)
80+
elif cfg == 0:
81+
if cfg_ == "lib":
82+
library_info("Library Name: ",libname,"","","","","","","","","","","","","","","","","","")
83+
elif cfg_ == "app":
84+
program_info("Program Name: ",appname,"","","","","","","","","","","","","","","","","","")
85+
else:
86+
error_msg("Invalid definition!")

PyAppDevKit/LibFunc/pyappdevkit_info.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
PYTHON_LIB_LICENCE="GPL2"
1010
PYTHON_LIB_IMPLEMENTED_CONTRACTS="LinuxUsersLinuxMint Privacy and Security Agreement , LinuxUsersLinuxMint Web (Site) Agreement"
1111
PYTHON_LIB_IMPLEMENTED_CONTRACTS_WEB_SITE="https://linuxuserslinuxmint.github.io/Contracts/privacyandsecutryagreement/en/privacyandsecutryagreement.html , https://linuxuserslinuxmint.github.io/Contracts/linuxuserslinuxmintwebsiteagreement/en/linuxuserslinuxmintwebsiteagreement.html"
12-
PYTHON_LIB_VER="1.4"
12+
PYTHON_LIB_VER="1.6"
1313
PYTHON_LIB_SUPPORT_PLATFORM="Windows/Linux/macOS/otherOS"
1414
PYTHON_LIB_RELEASE_DATE="6/9/2024, Time: 17:54"
15-
PYTHON_LIB_LAST_UPDATE_DATE="11/16/2024, Time: 18:27 / 6:27 PM"
15+
PYTHON_LIB_LAST_UPDATE_DATE="1/1/2025, Time: 19:00 / 7:00 PM"
1616
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
1717
PYTHON_LIB_AUTHOR_WEB_SITE="https://linuxuserslinuxmint.github.io"
1818

0 commit comments

Comments
 (0)