Skip to content

Commit baa74ce

Browse files
Update PyAppDevKit.
1 parent 64de684 commit baa74ce

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed

LibFunc/file.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/python3
2+
""" Copyright© 2023-2025 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+
ON=0
9+
OFF=1

LibFunc/pyappdevkit.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ def time(number):
1111
for _ in range(100000000):
1212
pass
1313

14+
def file(file_name,file_mode,file_write):
15+
create_file = open(file_name, file_mode)
16+
if file_mode == "w" or file_mode == "a":
17+
create_file.write("{0}\n". format(file_write))
18+
elif file_mode == "r":
19+
print(create_file.read())
20+
1421
def error_msg(error_dialog,error_code,support_link):
1522
print(error_dialog,error_code,support_link)
1623

LibFunc/pyappdevkit_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
PYTHON_LIB_NAME="PyAppDevKit"
1111
PYTHON_LIB_LICENCE="GPL2"
1212
PYTHON_LIB_IMPLEMENTED_CONTRACTS="LinuxUsersLinuxMint Privacy and Security Agreement , LinuxUsersLinuxMint Web (Site) Agreement"
13-
PYTHON_LIB_IMPLEMENTED_CONTRACTS_WEB_SITE="https://linuxuserslinuxmint.github.io/Contracts/privacyandsecutryagreement/en/privacyandsecutryagreement.html , https://linuxuserslinuxmint.github.io/Contracts/linuxuserslinuxmintwebsiteagreement/en/linuxuserslinuxmintwebsiteagreement.html"
14-
PYTHON_LIB_VER="1.7"
13+
PYTHON_LIB_IMPLEMENTED_CONTRACTS_WEB_SITE="https://linuxuserslinuxmint.github.io/Contracts/privacyandsecutryagreement/privacyandsecutryagreement.html , https://linuxuserslinuxmint.github.io/Contracts/linuxuserslinuxmintwebsiteagreement/linuxuserslinuxmintwebsiteagreement.html"
14+
PYTHON_LIB_VER="1.8"
1515
PYTHON_LIB_SUPPORT_PLATFORM="Windows/Linux/macOS/otherOS"
1616
PYTHON_LIB_RELEASE_DATE="6/9/2024, Time: 17:54"
17-
PYTHON_LIB_LAST_UPDATE_DATE="2/10/2025, Time: 20:12 / 8:12 PM"
17+
PYTHON_LIB_LAST_UPDATE_DATE="2/21/2025, Time: 22:46 / 10:46 PM"
1818
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
1919
PYTHON_LIB_AUTHOR_WEB_SITE="https://linuxuserslinuxmint.github.io"
2020

test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
from LibFunc.pyappdevkit import *
22

3-
app_info("NAME:","TEST [PROGRAM_LIBRARY_INFO]","","","","","","","","","","","","","","","","","","")
3+
app_info("NAME:","TEST [PROGRAM_LIBRARY_INFO]","","","","","","","","","","","","","","","","","","")
4+
5+
file(file_name="test.txt",file_mode="w",file_write="test1")
6+
file(file_name="test.txt",file_mode="a",file_write="test2")
7+
file(file_name="test.txt",file_mode="r",file_write="")

test.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
test1
2+
test2

0 commit comments

Comments
 (0)