Skip to content

Commit 17b218b

Browse files
Update PyAppDevKit.
1 parent f4a42b3 commit 17b218b

File tree

3 files changed

+34
-17
lines changed

3 files changed

+34
-17
lines changed

LibFunc/pyappdevkit.py

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def exit_program_dialog(exit_dialog_msg):
4141
Example Dialog (exitDialog): "Exit program..."
4242
Example Dialog (errormsgDialog): "Invalid Command!" """
4343

44-
def all_exit(dialog_switch,ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog):
44+
def all_exit(dialog_switch,lang,ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog):
4545
if dialog_switch == ON:
4646
exit_select = int(input(ExitSelectDialog))
4747
if exit_select == 0:
@@ -57,19 +57,34 @@ def all_exit(dialog_switch,ExitSelectDialog,userTimeDialog,exitDialog,errormsgDi
5757
else:
5858
print(errormsgDialog)
5959
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!")
60+
if lang == EN:
61+
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)): "))
62+
if exit_select == 0:
63+
userTime = int(input("After how many seconds should the program be closed?: "))
64+
exit_program_dialog_time("Exit program...", userTime)
65+
elif exit_select == 1:
66+
userTime = int(input("After how many seconds should the program be closed?: "))
67+
exit_program_time(userTime)
68+
elif exit_select == 2:
69+
exit_program_dialog("Exit program...")
70+
elif exit_select == 3:
71+
exit()
72+
else:
73+
print("Invalid Command!")
74+
elif lang == TR:
75+
exit_select = int(input("Programdan çıkış yöntemini seçin (0: Diyalog ve Zaman girişi, 1: Yalnızca zaman girişi, 2: Yalnızca diyalog girişi, 3: Normal çıkış (eski stil)): "))
76+
if exit_select == 0:
77+
userTime = int(input("Program kaç saniye sonra kapatılmalıdır?: "))
78+
exit_program_dialog_time("Programdan çıkılıyor...", userTime)
79+
elif exit_select == 1:
80+
userTime = int(input("Program kaç saniye sonra kapatılmalıdır?: "))
81+
exit_program_time(userTime)
82+
elif exit_select == 2:
83+
exit_program_dialog("Programdan çıkılıyor...")
84+
elif exit_select == 3:
85+
exit()
86+
else:
87+
print("Geçersiz Komut!")
7388

7489
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):
7590
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.9"
14+
PYTHON_LIB_VER="2.0"
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="3/12/2025, Time: 20:24 / 8:24 PM"
17+
PYTHON_LIB_LAST_UPDATE_DATE="3/16/2025, Time: 02:00 / 2:00 AM"
1818
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
1919
PYTHON_LIB_AUTHOR_WEB_SITE="https://linuxuserslinuxmint.github.io"
2020

LibFunc/switch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/python3
22

33
ON=0
4-
OFF=1
4+
OFF=1
5+
EN="EN"
6+
TR="TR"

0 commit comments

Comments
 (0)