Skip to content

Commit 4e10fa2

Browse files
Release PyAppDevKit.
1 parent 5930ec6 commit 4e10fa2

File tree

3 files changed

+118
-0
lines changed

3 files changed

+118
-0
lines changed

InfoLib/pyappdevkit_info.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/python3
2+
""" Copyright© 2023-2024 LinuxUsersLinuxMint
3+
PyAppDevKit Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
4+
PyAppDevKit All Rights Reserved under the GPL(General Public License).
5+
Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/PyAppDevKit
6+
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/PyAppDevKit"""
7+
8+
PYTHON_LIB_NAME="PyAppDevKit"
9+
PYTHON_LIB_LICENCE="GPL2"
10+
PYTHON_LIB_IMPLEMENTED_CONTRACTS="LinuxUsersLinuxMint Privacy and Security Agreement , LinuxUsersLinuxMint Web (Site) Agreement"
11+
PYTHON_LIB_IMPLEMENTED_CONTRACTS_WEB_SITE="https://linuxuserslinuxmint.github.io/Contracts/privacyandsecutryagreement/en/privacyandsecutryagreement.html , https://linuxuserslinuxmint.github.io/Contracts/linuxuserslinuxmintwebsiteagreement/en/linuxuserslinuxmintwebsiteagreement.html"
12+
PYTHON_LIB_VER="1.0"
13+
PYTHON_LIB_SUPPORT_PLATFORM="Windows/Linux/macOS/otherOS"
14+
PYTHON_LIB_RELEASE_DATE="6/9/2024, Time: 17:54"
15+
PYTHON_LIB_LAST_UPDATE_DATE="XX/XX/XXXX, Time: XX:XX / XX:XX XX"
16+
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
17+
PYTHON_LIB_AUTHOR_WEB_SITE="https://linuxuserslinuxmint.github.io"
18+
19+
def LibAbout():
20+
print("Python Library Name:", format(PYTHON_LIB_NAME))
21+
print("Python Library Version:", format(PYTHON_LIB_VER))
22+
print("Python Library Support OS:", format(PYTHON_LIB_SUPPORT_PLATFORM))
23+
print("Python Library Licence Name:", format(PYTHON_LIB_LICENCE))
24+
print("Python Library Implemented Contracts:", format(PYTHON_LIB_IMPLEMENTED_CONTRACTS))
25+
print("Python Library Implemented Contracts Web Site:", format(PYTHON_LIB_IMPLEMENTED_CONTRACTS_WEB_SITE))
26+
print("Python Library Author Name:", format(PYTHON_LIB_AUTHOR))
27+
print("Python Library Author Web Site:", format(PYTHON_LIB_AUTHOR_WEB_SITE))
28+
print("Python Library Release Date:", format(PYTHON_LIB_RELEASE_DATE))
29+
print("Python Library Last Update Date:", format(PYTHON_LIB_LAST_UPDATE_DATE))

LibFunc/pyappdevkit.py

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
#!/usr/bin/python3
2+
""" Copyright© 2023-2024 LinuxUsersLinuxMint
3+
PyAppDevKit Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
4+
PyAppDevKit All Rights Reserved under the GPL(General Public License).
5+
Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/PyAppDevKit
6+
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/PyAppDevKit"""
7+
8+
import os, time, platform
9+
from PyAppDevKit.InfoLib.pyappdevkit_info import *
10+
11+
def error_msg(error_dialog):
12+
print(error_dialog)
13+
14+
def exit_program_dialog_time(exit_dialog_msg,userTime):
15+
print(exit_dialog_msg)
16+
userTime = int(userTime)
17+
time.sleep(userTime)
18+
if platform.system() == "Windows":
19+
os.system("exit")
20+
else:
21+
exit()
22+
23+
def exit_program_time(userTime):
24+
time.sleep(userTime)
25+
userTime = int(userTime)
26+
if platform.system() == "Windows":
27+
os.system("exit")
28+
else:
29+
exit()
30+
31+
def exit_program_dialog(exit_dialog_msg):
32+
print(exit_dialog_msg)
33+
if platform.system() == "Windows":
34+
os.system("exit")
35+
else:
36+
exit()
37+
38+
""" 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)): "
39+
Example Dialog (userTimeDialog): "After how many seconds should the program be closed?: "
40+
Example Dialog (exitDialog): "Exit program..."
41+
Example Dialog (errormsgDialog): "Invalid Command!" """
42+
43+
def all_exit(ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog):
44+
exit_select = int(input(ExitSelectDialog))
45+
exit_select = int(exit_select)
46+
if exit_select == 0:
47+
userTime = input(userTimeDialog)
48+
exit_program_dialog_time(exitDialog, userTime)
49+
elif exit_select == 1:
50+
userTime = input(userTimeDialog)
51+
exit_program_time(userTime)
52+
elif exit_select == 2:
53+
exit_program_dialog(exitDialog)
54+
elif exit_select == 3:
55+
exit()
56+
else:
57+
print(errormsgDialog)
58+
59+
def program_welcome_msg(welcome_msg,cfg):
60+
print(welcome_msg)
61+
if cfg == 1:
62+
LibAbout()
63+
elif cfg == 0:
64+
pass
65+
66+
def program_info(programnamedialog,program_name,programversiondialog,program_version,programsupportosdialog,program_support_os,programlicencedialog,program_licence,programauthordialog,program_author,programauthorwebsitedialog,program_author_web_site,programreleasedatedialog,program_rs_date,programlastupdatedatedialog,program_last_update_date):
67+
print("{0} {1}". format(programnamedialog,program_name))
68+
print("{0} {1}". format(programversiondialog,program_version))
69+
print("{0} {1}". format(programsupportosdialog,program_support_os))
70+
print("{0} {1}". format(programlicencedialog,program_licence))
71+
print("{0} {1}". format(programauthordialog,program_author))
72+
print("{0} {1}". format(programauthorwebsitedialog,program_author_web_site))
73+
print("{0} {1}". format(programreleasedatedialog,program_rs_date))
74+
print("{0} {1}". format(programlastupdatedatedialog,program_last_update_date))

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# PyAppDevKit (Python App Developer Kit)
2+
3+
TR (Turkish / Türkçe):
4+
5+
* "Basic_Maths" kütüphanesinin "4.1" sürümündeki geliştiriciler için oluşturulan fonksiyonlar artık "PyAppDevKit" adı altında sunulucaktır.
6+
* Python geliştiricileri için yazılım/uygulama geliştirmeyi kolaylaştırmayı hedefleyen bir geliştirme kitidir.
7+
* Sürekli güncel kalır bu sayede sürekli yeni özellikler eklenir ve hata varsa bunlar çözülür.
8+
* En iyi kullanıcı deneyiminiz için "PyAppDevKit" kütüphanesinin her zaman en son sürümünü kullanınız.
9+
10+
EN (English / İngilizce):
11+
12+
* Functions created for developers in the "4.1" version of the "Basic_Maths" library will now be offered under the name "PyAppDevKit".
13+
* It is a development kit that aims to make software/application development easier for Python developers.
14+
* It remains constantly updated, so new features are constantly added and if there are errors, they are resolved.
15+
* For your best user experience, always use the latest version of the "PyAppDevKit" library.

0 commit comments

Comments
 (0)