From 1ac0362132d46e681d475c3ce2f2960e920162f2 Mon Sep 17 00:00:00 2001 From: LinuxUsersLinuxMint <143949134+LinuxUsersLinuxMint@users.noreply.github.com> Date: Wed, 1 Jan 2025 22:19:44 +0300 Subject: [PATCH] Important Update. --- EN/pyappdevkit.py | 72 +++++++++++++++++++++++++++-------------------- TR/calc.py | 2 +- TR/pyappdevkit.py | 71 ++++++++++++++++++++++++++-------------------- 3 files changed, 83 insertions(+), 62 deletions(-) diff --git a/EN/pyappdevkit.py b/EN/pyappdevkit.py index 6afde99..ae700da 100644 --- a/EN/pyappdevkit.py +++ b/EN/pyappdevkit.py @@ -5,8 +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 -from PyAppDevKit.InfoLib.pyappdevkit_info import * +def time(number): + while number > 0: + number -= 1 + for _ in range(100000000): + pass def error_msg(error_dialog): print(error_dialog) @@ -14,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?: " @@ -56,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 e39bfee..55fa1d8 100644 --- a/TR/calc.py +++ b/TR/calc.py @@ -11,7 +11,7 @@ error_dialog = "Geçersiz İşlem!" print("calc> Girebileceğiniz işlemler: ") -print("toplama\nçıkarma\nçarpma\nbölme\nyüzde alma\n1,2,3,4,5") +print("toplama\nçıkarma\nçarpma\nbölme\nmod alma\n1,2,3,4,5") s1=float(input('{0} 1. sayiyi giriniz: '. format(cmd))) s2=float(input('{0} 2. sayiyi giriniz: '. format(cmd))) islem=input('{0} Gerçekleştirmek İstediğiniz İşlemi Giriniz: '. format(cmd)) 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