Skip to content

Commit

Permalink
2.24.3
Browse files Browse the repository at this point in the history
- Changed the category of command "anim" to Misc
-Added pyth command
-Added pyth3 command
-pyterm now prints error instead of arbitarily throwing one.
  • Loading branch information
Enderbyte09 authored Jan 13, 2022
1 parent fbbbc90 commit b9adaaf
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 8 deletions.
51 changes: 45 additions & 6 deletions BasicUtilities.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
print('Basic Utilities 2.24.1')
print('Basic Utilities 2.24.3')
print('Starting...')
SYSVERSION = '2.24.1'
SYSVERSION = '2.24.3'
SNAPSHOT = False

from tkinter import messagebox, Tk
Expand Down Expand Up @@ -1469,7 +1469,7 @@ def runfile(filename):
print(sysslash)
if reqins == True and haspkg:
SYSVERNUM = version.parse(SYSVERDATA["version"])
SYSVERSION = version.parse("2.24.1")
SYSVERSION = version.parse("2.24.3")
if SYSVERNUM > SYSVERSION:
print('!New update found. Run the update command to download it!')

Expand Down Expand Up @@ -1505,6 +1505,7 @@ def runfile(filename):
print("stat: Get some statistics of this program.")
print('usr: change your username')
print('startsound: Set your startup sound')
print("anim: Get a little animation of a wheel.")
print('')
print("-----USELESS COMMANDS-----")
print("insult: Get insulted")
Expand Down Expand Up @@ -1560,7 +1561,7 @@ def runfile(filename):
print('')
print('-----Utility-----')
print("lag: Measures your computer's lag.")
print("anim: Get a little animation of a wheel.")

print("pyterm: Open a python terminal prompt [potentially dangerous]")
print("randpass: Get a random password.")
print("erc: List of error codes")
Expand Down Expand Up @@ -1614,6 +1615,8 @@ def runfile(filename):
print('sqrpyr: Calculate volume of a rectangular pyramid.')
print('tripyr: Calculate volume of a triangular pyramid')
print('emc2: Calcuate th energy(joules) in a given object.')
print("pyth: Use the pythagorean theorum")
print("pyth3: Use the 3d pythagorean theorum")

print('')
print('-----Uninstalling and cleaning-----')
Expand Down Expand Up @@ -1643,6 +1646,42 @@ def runfile(filename):
print('-----Contact and Support-----')
print('If you need help, contact me with the contact command')

elif command == "pyth":
pya = input("What is the length of A? ")
try:
pya = float(pya)
except:
print("Please put only numbers here")
else:
pyb = input("What is the length of B? ")
try:
pyb = float(pyb)
except:
print("Please put only numbers here")
else:
print("Result:",((pya*pya)+(pyb*pyb))**(1/2))

elif command == "pyth3":
pya = input("What is the length of A? ")
try:
pya = float(pya)
except:
print("Please put only numbers here")
else:
pyb = input("What is the length of B? ")
try:
pyb = float(pyb)
except:
print("Please put only numbers here")
else:
pyc = input("What is the length of C? ")
try:
pyc = float(pyc)
except:
print("Please put only numbers here")
else:
print("Result:",((pya*pya)+(pyb*pyb)+(pyc*pyc))**(1/2))

elif command == "rem":
Tk().withdraw()
da0 = messagebox.askyesno("rem","Do you want to reset best quiz time?")
Expand Down Expand Up @@ -4111,8 +4150,8 @@ def calcu():
break
try:
exec(cmd)
except:
error(3)
except Exception as e:
print("ERROR",e)

elif command == "gpap":
print("GPA?")
Expand Down
4 changes: 2 additions & 2 deletions bu.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Basic Utilities"
#define MyAppVersion "2.24.2"
#define MyAppVersion "2.24.3"
#define MyAppPublisher "Enderbyte Programs"
#define MyAppURL "https://enderbyte09.wixiste.com/programs"
#define MyAppExeName "BasicUtilities.exe"
Expand All @@ -29,7 +29,7 @@ LicenseFile=C:\Python310\Scripts\license.txt
; Remove the following line to run in administrative install mode (install for all users.)
PrivilegesRequired=lowest
OutputDir=C:\Users\jorda\Installer
OutputBaseFilename=basicutilities_2.24.2_installer
OutputBaseFilename=basicutilities_2.24.3_installer
SetupIconFile=C:\Python310\Scripts\bu.ico
Compression=lzma
SolidCompression=yes
Expand Down

0 comments on commit b9adaaf

Please sign in to comment.