Skip to content

Commit

Permalink
BU 2.19.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Enderbyte09 authored Sep 3, 2021
1 parent 1ed6a7c commit 77f5dac
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 19 deletions.
54 changes: 37 additions & 17 deletions BasicUtilities.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
print('Basic Utilities Release 2.19.1 (c) 2021 Enderbyte Programs. All rights reserved.')
print('Basic Utilities Release 2.19.3 (c) 2021 Enderbyte Programs. All rights reserved.')
print('Starting Up')
SYSVERSION = '2.19.1'
SYSVERSION = '2.19.3'
from plyer import notification
from tkinter import *
iopqwe = 0
from tkinter import messagebox
Expand Down Expand Up @@ -195,8 +195,8 @@ def save():
except:
Tk().withdraw()
messagebox.showerror('notpad','Error. Did you make sure to \n\
Make sure to save as first?\n\
Make sure I have write perms in the output directory')
Make sure to save as first?\n\
Make sure I have write perms in the output directory')
else:
file.write(txt.get('1.0','end-1c'))
file.close()
Expand Down Expand Up @@ -296,16 +296,28 @@ def terminat():
global txt
global prevsavedata
global pid
global istr
data = txt.get('1.0','end-1c')
if data == prevsavedata:
istr = False
forcekillnl()
else:
Tk().withdraw()
x = messagebox.askyesno('Text Editor','You have unsaved work. Are you sure you want to exit now?')
x = messagebox.askyesnocancel('Text Editor','You have unsaved work. Do you want to save before closing?')
if x == True:
istr = False
forcekillnl()
if prevsavedata == '':
saveas()
if prevsavedata == '':
donothing = 0
else:
forcekillnl()
else:
save()
forcekillnl()
elif x == False:

forcekill()


def scanautosave():
try:
Expand Down Expand Up @@ -656,8 +668,11 @@ def terminat():
forcekillnl()
else:
Tk().withdraw()
x = messagebox.askyesno('Text Editor','You have unsaved work. Are you sure you want to exit now?')
x = messagebox.askyesnocancel('Text Editor','You have unsaved work. Do you want to save before closing?')
if x == True:
save()
forcekillnl()
elif x == False:
forcekillnl()

def scanautosave():
Expand Down Expand Up @@ -1258,9 +1273,14 @@ def runfile(filename):
print(sysslash)
if reqins == True:
SYSVERNUM = version.parse(SYSVERDATA[0:6])
SYSVERSION = version.parse(SYSVERSION)
SYSVERSION = version.parse("2.19.3")
if SYSVERNUM > SYSVERSION:
print('A new update is available. Run the "update" command for more details')
notification.notify(
title='BU Update',
message='A new update ('+SYSVERDATA[0:6]+') is available. Run the command "update" to download.',
app_icon='bu.ico',
timeout=10
)
log('Found new update')
nua = True
while xae == True:
Expand Down Expand Up @@ -2008,15 +2028,15 @@ def ckill():
messagebox.showerror('Error','Basic utilities is not able to access this folder.')

elif command == 'stat':
print('lines: 5151')
print('print statements: 842')
print('Variables: 1383')
print('comparisons 391')
print('Exception handling loops 226')
print('lines: 5259')
print('print statements: 846')
print('Variables: 1402')
print('comparisons 401')
print('Exception handling loops 229')
print('While loops 48')
print('For loop 48')
print('Commands: 133')
print('Libraries Imported 17')
print('Libraries Imported 19')
print('files utilized 93')
print('Tkinter windows used 81')

Expand Down
2 changes: 1 addition & 1 deletion compile.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.\pyinstaller --noconfirm --icon=bu.ico --version-file=versionfile.txt BasicUtilities.py
.\pyinstaller --noconfirm --icon=bu.ico --version-file=versionfile.txt --hidden-import plyer.platforms.win.notification BasicUtilities.py
2 changes: 1 addition & 1 deletion error.vbs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
x = MsgBox("Your computer has an error",0+16,"Legit Windows")
t = MsgBox("Your computer has an error",0+16,"Legit Windows")
Binary file added gameboard.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 77f5dac

Please sign in to comment.