Skip to content

Commit

Permalink
Important Update.
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxUsersLinuxMint authored Jan 1, 2025
1 parent cb5a3f0 commit a6309bd
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 71 deletions.
10 changes: 5 additions & 5 deletions EN/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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... ***
Expand Down Expand Up @@ -57,7 +57,7 @@
elif process=="5":
Percentage(number1,number2,"Result: ")
else:
error_msg()
error_msg(error_dialog)

if command=="about":
print(about)
Expand All @@ -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")
Expand All @@ -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()
error_msg(error_dialog)
71 changes: 41 additions & 30 deletions EN/pyappdevkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,28 @@
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)

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?: "
Expand All @@ -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))
if cfg_ == "lib":
library_info("Library Name: ",libname,"","","","","","","","","","","","","","","","","","")
elif cfg_ == "app":
program_info("Program Name: ",appname,"","","","","","","","","","","","","","","","","","")
else:
error_msg("Invalid definition!")
12 changes: 6 additions & 6 deletions TR/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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":
Expand All @@ -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":
Expand All @@ -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")
Expand All @@ -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)
71 changes: 41 additions & 30 deletions TR/pyappdevkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,28 @@
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)

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?: "
Expand All @@ -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))
if cfg_ == "lib":
library_info("Library Name: ",libname,"","","","","","","","","","","","","","","","","","")
elif cfg_ == "app":
program_info("Program Name: ",appname,"","","","","","","","","","","","","","","","","","")
else:
error_msg("Invalid definition!")

0 comments on commit a6309bd

Please sign in to comment.