diff --git a/EN/calc.py b/EN/calc.py index 2dab374..030078e 100644 --- a/EN/calc.py +++ b/EN/calc.py @@ -11,7 +11,7 @@ Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint-Calcutator A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint-Calcutator """ print("*********************************************************************") -print("*** Welcome to LinuxUsersLinuxMint-Calcutator 0.3.3 Program ***") +print("*** Welcome to LinuxUsersLinuxMint-Calcutator 0.3.5 Program ***") print("""*** Options: *** *** *** *** Enter the Command you want to choose... *** @@ -57,7 +57,7 @@ elif process=="5": Percentage(number1,number2,"Result: ") else: - error_msg() + error_msg(error_dialog) if command=="about": print(about) @@ -77,7 +77,7 @@ elif exit_select == 3: exit() else: - error_msg() + error_msg(error_dialog) elif command=="help": print("LinuxUsersLinuxMint-Calcutator Help") print("\n Command: calc , about , help , exit , git-address , web-site , ver , licence , Thank") @@ -86,10 +86,10 @@ elif command=="web-site": print("https://linuxuserslinuxmint.github.io") elif command=="ver": - print("Version: 0.3.3 (Last Updated on Oct 25, 2024, 23:39)") + print("Version: 0.3.5 (Last Updated on Jan 1, 2025, 10:27)") elif command=="licence": print("This Software is protected under the GPL2 license") elif command=="Thank": print("Thank You for Using Python-Calcutator.") else: - error_msg() \ No newline at end of file + error_msg(error_dialog) \ No newline at end of file diff --git a/EN/pyappdevkit.py b/EN/pyappdevkit.py index 2b4768d..ae700da 100644 --- a/EN/pyappdevkit.py +++ b/EN/pyappdevkit.py @@ -5,7 +5,11 @@ Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/PyAppDevKit A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/PyAppDevKit""" -import os, time, platform +def time(number): + while number > 0: + number -= 1 + for _ in range(100000000): + pass def error_msg(error_dialog): print(error_dialog) @@ -13,26 +17,16 @@ def error_msg(error_dialog): def exit_program_dialog_time(exit_dialog_msg,userTime): print(exit_dialog_msg) userTime = int(userTime) - time.sleep(userTime) - if platform.system() == "Windows": - os.system("exit") - else: - exit() + time(userTime) + exit() def exit_program_time(userTime): userTime = int(userTime) - time.sleep(userTime) - if platform.system() == "Windows": - os.system("exit") - else: - exit() + time(userTime) + exit() def exit_program_dialog(exit_dialog_msg): print(exit_dialog_msg) - if platform.system() == "Windows": - os.system("exit") - else: - exit() """ 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)): " Example Dialog (userTimeDialog): "After how many seconds should the program be closed?: " @@ -55,21 +49,38 @@ def all_exit(ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog): else: print(errormsgDialog) -def program_welcome_msg(welcome_msg,cfg): +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): + print("{0} {1}". format(dialog_one,dialog_one_t)) + print("{0} {1}". format(dialog_two,dialog_two_t)) + print("{0} {1}". format(dialog_three,dialog_three_t)) + print("{0} {1}". format(dialog_four,dialog_four_t)) + print("{0} {1}". format(dialog_five,dialog_five_t)) + print("{0} {1}". format(dialog_six,dialog_six_t)) + print("{0} {1}". format(dialog_seven,dialog_seven_t)) + print("{0} {1}". format(dialog_eigth,dialog_eight_t)) + print("{0} {1}". format(dialog_nine,dialog_nine_t)) + print("{0} {1}". format(dialog_ten,dialog_ten_t)) + +def library_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): + print("{0} {1}". format(dialog_one,dialog_one_t)) + print("{0} {1}". format(dialog_two,dialog_two_t)) + print("{0} {1}". format(dialog_three,dialog_three_t)) + print("{0} {1}". format(dialog_four,dialog_four_t)) + print("{0} {1}". format(dialog_five,dialog_five_t)) + print("{0} {1}". format(dialog_six,dialog_six_t)) + print("{0} {1}". format(dialog_seven,dialog_seven_t)) + print("{0} {1}". format(dialog_eigth,dialog_eight_t)) + print("{0} {1}". format(dialog_nine,dialog_nine_t)) + print("{0} {1}". format(dialog_ten,dialog_ten_t)) + +def program_welcome_msg(welcome_msg,cfg,cfg_,appname,libname,websitelink): print(welcome_msg) if cfg == 1: - LibAbout() + print(websitelink) elif cfg == 0: - pass - -def program_info(programnamedialog,program_name,programversiondialog,program_version,programsupportosdialog,program_support_os,programlicencedialog,program_licence,programimplementedcontractsdialog,program_imp_contracts,programimplementedcontractswebsitedialog,program_imp_contracts_web_site,programauthordialog,program_author,programauthorwebsitedialog,program_author_web_site,programreleasedatedialog,program_rs_date,programlastupdatedatedialog,program_last_update_date): - print("{0} {1}". format(programnamedialog,program_name)) - print("{0} {1}". format(programversiondialog,program_version)) - print("{0} {1}". format(programsupportosdialog,program_support_os)) - print("{0} {1}". format(programlicencedialog,program_licence)) - print("{0} {1}". format(programimplementedcontractsdialog,program_imp_contracts)) - print("{0} {1}". format(programimplementedcontractswebsitedialog,program_imp_contracts_web_site)) - print("{0} {1}". format(programauthordialog,program_author)) - print("{0} {1}". format(programauthorwebsitedialog,program_author_web_site)) - print("{0} {1}". format(programreleasedatedialog,program_rs_date)) - print("{0} {1}". format(programlastupdatedatedialog,program_last_update_date)) \ No newline at end of file + if cfg_ == "lib": + library_info("Library Name: ",libname,"","","","","","","","","","","","","","","","","","") + elif cfg_ == "app": + program_info("Program Name: ",appname,"","","","","","","","","","","","","","","","","","") + else: + error_msg("Invalid definition!") \ No newline at end of file diff --git a/TR/calc.py b/TR/calc.py index 4e435ad..e414570 100644 --- a/TR/calc.py +++ b/TR/calc.py @@ -37,7 +37,7 @@ 2. Çıkarma 3. Çarpma 4. Bölme -5. Yüzde""") +5. Mod alma""") islem=str(input('calc> Seçmek İstediğiniz İşlemin Numarasını Giriniz: ')) secilen_islem=islem os.system("clear") @@ -47,7 +47,7 @@ sayi2=float(input('calc> 2. sayiyi giriniz: ')) os.system("clear") if islem=="1": - addition(sayi1,sayi2,"Sonuç: ") + Addition(sayi1,sayi2,"Sonuç: ") elif islem=="2": Extraction(sayi1,sayi2,"Sonuç: ") elif islem=="3": @@ -57,7 +57,7 @@ elif islem=="5": Percentage(sayi1,sayi2,"Sonuç: ") else: - error_msg() + error_msg(error_dialog) if command=="about": print(about) elif command=="exit": @@ -76,7 +76,7 @@ elif exit_select == 3: exit() else: - error_msg() + error_msg(error_dialog) elif command=="help": print("LinuxUsersLinuxMint-Calcutator Help") print("\n Command: calc , about , help , exit , git-address , web-site , ver , licence , Thank") @@ -85,10 +85,10 @@ elif command=="web-site": print("linuxuserslinuxmint.github.io") elif command=="ver": - print("Sürüm: 0.3.3 (Son Güncellenme Tarihi 25 Ekim , 2024 , 23:39)") + print("Sürüm: 0.3.5 (Son Güncellenme Tarihi 1 Ocak , 2025 , 20:27)") elif command=="licence": print("Bu Yazılım GPL2 lisansı kapsamında korunmaktadır.") elif command=="Thank": print("Python-Calcutator'u Kullandığınız için Teşekkür ederim. ") else: - error_msg() + error_msg(error_dialog) diff --git a/TR/pyappdevkit.py b/TR/pyappdevkit.py index 2b4768d..ae700da 100644 --- a/TR/pyappdevkit.py +++ b/TR/pyappdevkit.py @@ -5,7 +5,11 @@ Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/PyAppDevKit A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/PyAppDevKit""" -import os, time, platform +def time(number): + while number > 0: + number -= 1 + for _ in range(100000000): + pass def error_msg(error_dialog): print(error_dialog) @@ -13,26 +17,16 @@ def error_msg(error_dialog): def exit_program_dialog_time(exit_dialog_msg,userTime): print(exit_dialog_msg) userTime = int(userTime) - time.sleep(userTime) - if platform.system() == "Windows": - os.system("exit") - else: - exit() + time(userTime) + exit() def exit_program_time(userTime): userTime = int(userTime) - time.sleep(userTime) - if platform.system() == "Windows": - os.system("exit") - else: - exit() + time(userTime) + exit() def exit_program_dialog(exit_dialog_msg): print(exit_dialog_msg) - if platform.system() == "Windows": - os.system("exit") - else: - exit() """ 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)): " Example Dialog (userTimeDialog): "After how many seconds should the program be closed?: " @@ -55,21 +49,38 @@ def all_exit(ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog): else: print(errormsgDialog) -def program_welcome_msg(welcome_msg,cfg): +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): + print("{0} {1}". format(dialog_one,dialog_one_t)) + print("{0} {1}". format(dialog_two,dialog_two_t)) + print("{0} {1}". format(dialog_three,dialog_three_t)) + print("{0} {1}". format(dialog_four,dialog_four_t)) + print("{0} {1}". format(dialog_five,dialog_five_t)) + print("{0} {1}". format(dialog_six,dialog_six_t)) + print("{0} {1}". format(dialog_seven,dialog_seven_t)) + print("{0} {1}". format(dialog_eigth,dialog_eight_t)) + print("{0} {1}". format(dialog_nine,dialog_nine_t)) + print("{0} {1}". format(dialog_ten,dialog_ten_t)) + +def library_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): + print("{0} {1}". format(dialog_one,dialog_one_t)) + print("{0} {1}". format(dialog_two,dialog_two_t)) + print("{0} {1}". format(dialog_three,dialog_three_t)) + print("{0} {1}". format(dialog_four,dialog_four_t)) + print("{0} {1}". format(dialog_five,dialog_five_t)) + print("{0} {1}". format(dialog_six,dialog_six_t)) + print("{0} {1}". format(dialog_seven,dialog_seven_t)) + print("{0} {1}". format(dialog_eigth,dialog_eight_t)) + print("{0} {1}". format(dialog_nine,dialog_nine_t)) + print("{0} {1}". format(dialog_ten,dialog_ten_t)) + +def program_welcome_msg(welcome_msg,cfg,cfg_,appname,libname,websitelink): print(welcome_msg) if cfg == 1: - LibAbout() + print(websitelink) elif cfg == 0: - pass - -def program_info(programnamedialog,program_name,programversiondialog,program_version,programsupportosdialog,program_support_os,programlicencedialog,program_licence,programimplementedcontractsdialog,program_imp_contracts,programimplementedcontractswebsitedialog,program_imp_contracts_web_site,programauthordialog,program_author,programauthorwebsitedialog,program_author_web_site,programreleasedatedialog,program_rs_date,programlastupdatedatedialog,program_last_update_date): - print("{0} {1}". format(programnamedialog,program_name)) - print("{0} {1}". format(programversiondialog,program_version)) - print("{0} {1}". format(programsupportosdialog,program_support_os)) - print("{0} {1}". format(programlicencedialog,program_licence)) - print("{0} {1}". format(programimplementedcontractsdialog,program_imp_contracts)) - print("{0} {1}". format(programimplementedcontractswebsitedialog,program_imp_contracts_web_site)) - print("{0} {1}". format(programauthordialog,program_author)) - print("{0} {1}". format(programauthorwebsitedialog,program_author_web_site)) - print("{0} {1}". format(programreleasedatedialog,program_rs_date)) - print("{0} {1}". format(programlastupdatedatedialog,program_last_update_date)) \ No newline at end of file + if cfg_ == "lib": + library_info("Library Name: ",libname,"","","","","","","","","","","","","","","","","","") + elif cfg_ == "app": + program_info("Program Name: ",appname,"","","","","","","","","","","","","","","","","","") + else: + error_msg("Invalid definition!") \ No newline at end of file