Skip to content

Commit a853db0

Browse files
Update PyAppDevKit.
1 parent bb32df0 commit a853db0

File tree

2 files changed

+17
-25
lines changed

2 files changed

+17
-25
lines changed

LibFunc/pyappdevkit.py

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/python3
2-
""" Copyright© 2023-2024 LinuxUsersLinuxMint
2+
""" Copyright© 2023-2025 LinuxUsersLinuxMint
33
PyAppDevKit Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
44
PyAppDevKit All Rights Reserved under the GPL(General Public License).
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
@@ -14,25 +14,13 @@ def exit_program_dialog_time(exit_dialog_msg,userTime):
1414
print(exit_dialog_msg)
1515
userTime = int(userTime)
1616
time.sleep(userTime)
17-
if platform.system() == "Windows":
18-
os.system("exit")
19-
else:
20-
exit()
2117

2218
def exit_program_time(userTime):
2319
userTime = int(userTime)
2420
time.sleep(userTime)
25-
if platform.system() == "Windows":
26-
os.system("exit")
27-
else:
28-
exit()
2921

3022
def exit_program_dialog(exit_dialog_msg):
3123
print(exit_dialog_msg)
32-
if platform.system() == "Windows":
33-
os.system("exit")
34-
else:
35-
exit()
3624

3725
""" 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)): "
3826
Example Dialog (userTimeDialog): "After how many seconds should the program be closed?: "
@@ -55,14 +43,6 @@ def all_exit(ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog):
5543
else:
5644
print(errormsgDialog)
5745

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-
6646
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):
6747
print("{0} {1}". format(dialog_one,dialog_one_t))
6848
print("{0} {1}". format(dialog_two,dialog_two_t))
@@ -85,4 +65,16 @@ def library_info(dialog_one,dialog_one_t,dialog_two,dialog_two_t,dialog_three,di
8565
print("{0} {1}". format(dialog_seven,dialog_seven_t))
8666
print("{0} {1}". format(dialog_eigth,dialog_eight_t))
8767
print("{0} {1}". format(dialog_nine,dialog_nine_t))
88-
print("{0} {1}". format(dialog_ten,dialog_ten_t))
68+
print("{0} {1}". format(dialog_ten,dialog_ten_t))
69+
70+
def program_welcome_msg(welcome_msg,cfg,cfg_,appname,libname,websitelink):
71+
print(welcome_msg)
72+
if cfg == 1:
73+
print(websitelink)
74+
elif cfg == 0:
75+
if cfg_ == "lib":
76+
library_info("Library Name: ",libname,"","","","","","","","","","","","","","","","","","")
77+
elif cfg_ == "app":
78+
program_info("Program Name: ",appname,"","","","","","","","","","","","","","","","","","")
79+
else:
80+
error_msg("Invalid definition!")

LibFunc/pyappdevkit_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/python3
2-
""" Copyright© 2023-2024 LinuxUsersLinuxMint
2+
""" Copyright© 2023-2025 LinuxUsersLinuxMint
33
PyAppDevKit Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
44
PyAppDevKit All Rights Reserved under the GPL(General Public License).
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
@@ -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.5"
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: 18:27 / 6:27 PM"
1616
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
1717
PYTHON_LIB_AUTHOR_WEB_SITE="https://linuxuserslinuxmint.github.io"
1818

0 commit comments

Comments
 (0)