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 cd11348 commit 1ac0362
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 62 deletions.
72 changes: 41 additions & 31 deletions EN/pyappdevkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +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
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)

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 @@ -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))
if cfg_ == "lib":
library_info("Library Name: ",libname,"","","","","","","","","","","","","","","","","","")
elif cfg_ == "app":
program_info("Program Name: ",appname,"","","","","","","","","","","","","","","","","","")
else:
error_msg("Invalid definition!")
2 changes: 1 addition & 1 deletion TR/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
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 1ac0362

Please sign in to comment.