Skip to content

Commit a4c2925

Browse files
committed
Version 1.5
1 parent 353723e commit a4c2925

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+263
-225
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

UI.py renamed to Application/AppUI/App.py

Lines changed: 169 additions & 166 deletions
Large diffs are not rendered by default.

Application/AppUI/Start.py

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
import ctypes # included library with Python install.
2+
3+
def Mbox(title, text, style=0):
4+
return ctypes.windll.user32.MessageBoxW(0, text, title, style)
5+
6+
try:
7+
import tkinter as tk
8+
import time as t
9+
win1 = tk.Tk()
10+
wid = int(((win1.winfo_screenwidth()*0.9875)//2)-240)
11+
hgt = int(((win1.winfo_screenheight()*0.95)//2)-135)
12+
win1.geometry('480x270+{}+{}'.format(wid, hgt))
13+
win1.configure(bg='#000000')
14+
win1.overrideredirect(True)
15+
frame = tk.Frame(win1, width=480, height=270, bd=0, bg='#000000')
16+
frame.place(relx=0.5, rely=0.5, anchor='center')
17+
e1 = tk.PhotoImage(file='Resources/App/AppUI Resources/Images/start.png')
18+
q = tk.Label(frame, bd=0, image=e1)
19+
q.place(relx=0.5, rely=0.5, anchor='center')
20+
21+
def load():
22+
w = tk.Label(frame, text='Loading', font=(
23+
'SF Pro Display', 13), bd=0, bg='#000000', fg='#737373')
24+
w.place(relx=0.5, rely=0.75, anchor='center')
25+
26+
def dot1():
27+
global w1
28+
w1 = tk.Label(frame, text='.', font=('SF Pro Display', 13),
29+
bd=0, bg='#000000', fg='#737373')
30+
w1.place(relx=0.57, rely=0.75, anchor='center')
31+
32+
def dot2():
33+
global w2
34+
w2 = tk.Label(frame, text='.', font=('SF Pro Display', 13),
35+
bd=0, bg='#000000', fg='#737373')
36+
w2.place(relx=0.59, rely=0.75, anchor='center')
37+
38+
def dot3():
39+
global w3
40+
w3 = tk.Label(frame, text='.', font=('SF Pro Display', 13),
41+
bd=0, bg='#000000', fg='#737373')
42+
w3.place(relx=0.61, rely=0.75, anchor='center')
43+
44+
def wipe():
45+
w1.place_forget()
46+
w2.place_forget()
47+
w3.place_forget()
48+
49+
def close():
50+
win1.destroy()
51+
52+
win1.after(1100, load)
53+
win1.after(1500, dot1)
54+
win1.after(1900, dot2)
55+
win1.after(2300, dot3)
56+
win1.after(2700, wipe)
57+
win1.after(3100, dot1)
58+
win1.after(3500, dot2)
59+
60+
win1.after(3900, close)
61+
62+
win1.mainloop()
63+
except:
64+
Mbox("Runtime Error",'There was an issue during the startup of the App. Please Try Again later while we fix this.')
65+

Application/Daigostics/ErrorLog.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
from datetime import *
2+
3+
now = datetime.now()
4+
5+
CurDate = date.today()
6+
7+
CurTime = now.strftime("%H:%M:%S")
8+
9+
def openLogFile():
10+
global LogFile
11+
LogFile=open("Resources/App/Logs/errorLogFile.log","a")
12+
13+
def closeLogFile():
14+
LogFile.close()
15+
16+
def createLog(type='Not Specified',Log='Unexpected System Brick and Stop.'):
17+
18+
openLogFile()
19+
20+
LogFile.write("{}, {} , {} , {}\n".format(CurDate,CurTime,type,Log))
21+
22+
closeLogFile()
23+
24+
createLog()

Application/Update/SoftwareUpdate.py

Whitespace-only changes.

Application/Update/UpdateUI.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)