Skip to content

Commit f4a42b3

Browse files
Update PyAppDevKit.
1 parent 36e4890 commit f4a42b3

File tree

3 files changed

+37
-16
lines changed

3 files changed

+37
-16
lines changed

LibFunc/pyappdevkit.py

Lines changed: 31 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
Bu Yazılımın Bir Kopyası GitHub 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+
from LibFunc.switch import *
9+
810
def time(number):
911
while number > 0:
1012
number -= 1
@@ -39,20 +41,35 @@ def exit_program_dialog(exit_dialog_msg):
3941
Example Dialog (exitDialog): "Exit program..."
4042
Example Dialog (errormsgDialog): "Invalid Command!" """
4143

42-
def all_exit(ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog):
43-
exit_select = int(input(ExitSelectDialog))
44-
if exit_select == 0:
45-
userTime = int(input(userTimeDialog))
46-
exit_program_dialog_time(exitDialog, userTime)
47-
elif exit_select == 1:
48-
userTime = int(input(userTimeDialog))
49-
exit_program_time(userTime)
50-
elif exit_select == 2:
51-
exit_program_dialog(exitDialog)
52-
elif exit_select == 3:
53-
exit()
54-
else:
55-
print(errormsgDialog)
44+
def all_exit(dialog_switch,ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog):
45+
if dialog_switch == ON:
46+
exit_select = int(input(ExitSelectDialog))
47+
if exit_select == 0:
48+
userTime = int(input(userTimeDialog))
49+
exit_program_dialog_time(exitDialog, userTime)
50+
elif exit_select == 1:
51+
userTime = int(input(userTimeDialog))
52+
exit_program_time(userTime)
53+
elif exit_select == 2:
54+
exit_program_dialog(exitDialog)
55+
elif exit_select == 3:
56+
exit()
57+
else:
58+
print(errormsgDialog)
59+
elif dialog_switch == OFF:
60+
exit_select = int(input("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)): "))
61+
if exit_select == 0:
62+
userTime = int(input("After how many seconds should the program be closed?: "))
63+
exit_program_dialog_time("Exit program...", userTime)
64+
elif exit_select == 1:
65+
userTime = int(input("After how many seconds should the program be closed?: "))
66+
exit_program_time(userTime)
67+
elif exit_select == 2:
68+
exit_program_dialog("Exit program...")
69+
elif exit_select == 3:
70+
exit()
71+
else:
72+
print("Invalid Command!")
5673

5774
def app_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):
5875
print("{0} {1}". format(dialog_one,dialog_one_t))

LibFunc/pyappdevkit_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
PYTHON_LIB_LICENCE="GPL2"
1212
PYTHON_LIB_IMPLEMENTED_CONTRACTS="LinuxUsersLinuxMint Privacy and Security Agreement , LinuxUsersLinuxMint Web (Site) Agreement"
1313
PYTHON_LIB_IMPLEMENTED_CONTRACTS_WEB_SITE="https://linuxuserslinuxmint.github.io/Contracts/privacyandsecutryagreement/privacyandsecutryagreement.html , https://linuxuserslinuxmint.github.io/Contracts/linuxuserslinuxmintwebsiteagreement/linuxuserslinuxmintwebsiteagreement.html"
14-
PYTHON_LIB_VER="1.8"
14+
PYTHON_LIB_VER="1.9"
1515
PYTHON_LIB_SUPPORT_PLATFORM="Windows/Linux/macOS/otherOS"
1616
PYTHON_LIB_RELEASE_DATE="6/9/2024, Time: 17:54"
17-
PYTHON_LIB_LAST_UPDATE_DATE="2/21/2025, Time: 22:46 / 10:46 PM"
17+
PYTHON_LIB_LAST_UPDATE_DATE="3/12/2025, Time: 20:24 / 8:24 PM"
1818
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
1919
PYTHON_LIB_AUTHOR_WEB_SITE="https://linuxuserslinuxmint.github.io"
2020

LibFunc/switch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/python3
2+
3+
ON=0
4+
OFF=1

0 commit comments

Comments
 (0)