Skip to content

Commit 543edfe

Browse files
Update Basic_Maths.
1 parent 6de46aa commit 543edfe

File tree

6 files changed

+149
-86
lines changed

6 files changed

+149
-86
lines changed

Basic_Maths/Lib/lib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
A Copy of This Software is published on GitHub To view: https://github.com/LinuxUsersLinuxMint/Basic_Maths"""
77

88
from math import *
9-
from PyAppDevKit.LibFunc.pyappdevkit import *
9+
from PyAppDevKit.PyAppDevKit.pyappdevkit import *
1010
from Basic_Maths.lib_ver_info import *
1111
from Basic_Maths.library_func import *

Basic_Maths/lib_ver_info.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77

88
PYTHON_LIB_NAME="Basic_Maths"
99
PYTHON_LIB_LICENCE="GPL2"
10-
PYTHON_LIB_IMPLEMENTED_CONTRACTS="LinuxUsersLinuxMint Privacy and Security Agreement , LinuxUsersLinuxMint Web (Site) Agreement"
10+
PYTHON_LIB_IMPLEMENTED_CONTRACTS="LinuxUsersLinuxMint Privacy and Security Agreement , LinuxUsersLinuxMint Web Site Agreement"
1111
PYTHON_LIB_IMPLEMENTED_CONTRACTS_WEB_SITE="https://linuxuserslinuxmint.github.io/Contracts/privacyandsecutryagreement/privacyandsecutryagreement.html , https://linuxuserslinuxmint.github.io/Contracts/linuxuserslinuxmintwebsiteagreement/linuxuserslinuxmintwebsiteagreement.html"
12-
PYTHON_LIB_VER="6.1"
12+
PYTHON_LIB_VER="6.2"
1313
PYTHON_LIB_SUPPORT_PLATFORM="Windows/Linux/macOS/otherOS"
1414
PYTHON_LIB_RELEASE_DATE="9/30/2023, Time: 14:49 / 2:49 PM"
15-
PYTHON_LIB_LAST_UPDATE_DATE="3/8/2025, Time: 14:33 / 2:33 PM"
15+
PYTHON_LIB_LAST_UPDATE_DATE="4/4/2025, Time: 18:43 / 6:43 PM"
1616
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
1717
PYTHON_LIB_AUTHOR_WEB_SITE="https://linuxuserslinuxmint.github.io"

PyAppDevKit/LibFunc/pyappdevkit.py

-79
This file was deleted.

PyAppDevKit/PyAppDevKit/parameters.py

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/python3
2+
3+
ON="ON"
4+
OFF="ON"
5+
EN="EN"
6+
TR="TR"
7+
MILISECOND="MILISECOND"
8+
MS="MS"
9+
SECOND="SECOND"
10+
S="S"
11+
MINUTE="MINUTE"
12+
M="M"
13+
HOUR="HOUR"
14+
H="H"
+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
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ı GitHub 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+
from PyAppDevKit.PyAppDevKit.parameters import *
9+
import os
10+
11+
def time(number,unit):
12+
while number > 0:
13+
number -= 1
14+
if unit == MS or unit == MILISECOND:
15+
for _ in range(100000):
16+
pass
17+
elif unit == S or unit == SECOND:
18+
for _ in range(100000000):
19+
pass
20+
elif unit == M or unit == MINUTE:
21+
for _ in range(100000000*60):
22+
pass
23+
elif unit == H or unit == HOUR:
24+
for _ in range(100000000*60*60):
25+
pass
26+
27+
def file(file_name,file_mode,file_write):
28+
create_file = open(file_name, file_mode)
29+
if file_mode == "w" or file_mode == "a":
30+
create_file.write("{0}\n". format(file_write))
31+
elif file_mode == "r":
32+
print(create_file.read())
33+
34+
def file_remove(file_name,file_path):
35+
if file_name != 0 or file_name != "":
36+
os.remove(file_name)
37+
else:
38+
os.remove(r"{0}". format(file_path))
39+
40+
def error_msg(error_dialog,error_code,support_link):
41+
print(error_dialog,error_code,support_link)
42+
43+
def exit_program_dialog_time(exit_dialog_msg,userTime,unit):
44+
print(exit_dialog_msg)
45+
time(userTime,unit=unit)
46+
exit()
47+
48+
def exit_program_time(userTime,unit):
49+
time(userTime,unit=unit)
50+
exit()
51+
52+
def exit_program_dialog(exit_dialog_msg):
53+
print(exit_dialog_msg)
54+
exit()
55+
56+
""" 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)): "
57+
Example Dialog (userTimeDialog): "After how many seconds should the program be closed?: "
58+
Example Dialog (exitDialog): "Exit program..."
59+
Example Dialog (errormsgDialog): "Invalid Command!" """
60+
61+
def all_exit(dialog_switch,lang,ExitSelectDialog,userTimeDialog,exitDialog,errormsgDialog,unit):
62+
if dialog_switch == ON:
63+
exit_select = int(input(ExitSelectDialog))
64+
if exit_select == 0:
65+
userTime = int(input(userTimeDialog))
66+
exit_program_dialog_time(exitDialog, userTime,unit=unit)
67+
elif exit_select == 1:
68+
userTime = int(input(userTimeDialog))
69+
exit_program_time(userTime,unit=unit)
70+
elif exit_select == 2:
71+
exit_program_dialog(exitDialog)
72+
elif exit_select == 3:
73+
exit()
74+
else:
75+
error_msg(errormsgDialog,"","")
76+
elif dialog_switch == OFF:
77+
if lang == EN:
78+
exit_select = int(input("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)): "))
79+
if exit_select == 0:
80+
userTime = int(input("After how many seconds should the program be closed?: "))
81+
exit_program_dialog_time("Exit program...", userTime,unit=unit)
82+
elif exit_select == 1:
83+
userTime = int(input("After how many seconds should the program be closed?: "))
84+
exit_program_time(userTime,unit=unit)
85+
elif exit_select == 2:
86+
exit_program_dialog("Exit program...")
87+
elif exit_select == 3:
88+
exit()
89+
else:
90+
error_msg("Invalid Command!","","")
91+
elif lang == TR:
92+
exit_select = int(input("Programdan çıkış yöntemini seçin (0: Diyalog ve Zaman girişi, 1: Yalnızca zaman girişi, 2: Yalnızca diyalog girişi, 3: Normal çıkış (eski stil)): "))
93+
if exit_select == 0:
94+
userTime = int(input("Program kaç saniye sonra kapatılmalıdır?: "))
95+
exit_program_dialog_time("Programdan çıkılıyor...", userTime,unit=unit)
96+
elif exit_select == 1:
97+
userTime = int(input("Program kaç saniye sonra kapatılmalıdır?: "))
98+
exit_program_time(userTime,unit=unit)
99+
elif exit_select == 2:
100+
exit_program_dialog("Programdan çıkılıyor...")
101+
elif exit_select == 3:
102+
exit()
103+
else:
104+
error_msg("Geçersiz Komut!","","")
105+
106+
def app_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):
107+
print("{0} {1}". format(dialog_one,dialog_one_t))
108+
print("{0} {1}". format(dialog_two,dialog_two_t))
109+
print("{0} {1}". format(dialog_three,dialog_three_t))
110+
print("{0} {1}". format(dialog_four,dialog_four_t))
111+
print("{0} {1}". format(dialog_five,dialog_five_t))
112+
print("{0} {1}". format(dialog_six,dialog_six_t))
113+
print("{0} {1}". format(dialog_seven,dialog_seven_t))
114+
print("{0} {1}". format(dialog_eigth,dialog_eight_t))
115+
print("{0} {1}". format(dialog_nine,dialog_nine_t))
116+
print("{0} {1}". format(dialog_ten,dialog_ten_t))
117+
118+
def program_welcome_msg(welcome_msg,cfg,cfg_,appname,libname,websitelink):
119+
print(welcome_msg)
120+
if cfg == 1:
121+
print(websitelink)
122+
elif cfg == 0:
123+
if cfg_ == "lib":
124+
app_info("Library Name: ",libname,"","","","","","","","","","","","","","","","","","")
125+
elif cfg_ == "app":
126+
app_info("Program Name: ",appname,"","","","","","","","","","","","","","","","","","")
127+
else:
128+
error_msg("Invalid definition!","","")

PyAppDevKit/LibFunc/pyappdevkit_info.py renamed to PyAppDevKit/PyAppDevKit/pyappdevkit_info.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
Bu Yazılımın Bir Kopyası GitHub da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/PyAppDevKit
66
A Copy of This Software is published on GitHub To view: https://github.com/LinuxUsersLinuxMint/PyAppDevKit"""
77

8-
from LibFunc.pyappdevkit import *
8+
from PyAppDevKit.PyAppDevKit.pyappdevkit import *
99

1010
PYTHON_LIB_NAME="PyAppDevKit"
1111
PYTHON_LIB_LICENCE="GPL2"
1212
PYTHON_LIB_IMPLEMENTED_CONTRACTS="LinuxUsersLinuxMint Privacy and Security Agreement , LinuxUsersLinuxMint Web (Site) Agreement"
1313
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"
14+
PYTHON_LIB_VER="2.1"
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/21/2025, Time: 22:46 / 10:46 PM"
17+
PYTHON_LIB_LAST_UPDATE_DATE="3/31/2025, Time: 19:37 / 7:37 PM"
1818
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
1919
PYTHON_LIB_AUTHOR_WEB_SITE="https://linuxuserslinuxmint.github.io"
2020

0 commit comments

Comments
 (0)