Skip to content
This repository was archived by the owner on May 5, 2024. It is now read-only.

Commit 13e3eb2

Browse files
committed
add error message
1 parent 8f59e2b commit 13e3eb2

File tree

1 file changed

+90
-0
lines changed

1 file changed

+90
-0
lines changed

python/bluescreen.py

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
import tkinter as tk
2+
import tkinter.font as tkFont
3+
error =
4+
class App:
5+
def __init__(self, root):
6+
#setting title
7+
root.title("undefined")
8+
#setting window size
9+
width=600
10+
height=500
11+
screenwidth = root.winfo_screenwidth()
12+
screenheight = root.winfo_screenheight()
13+
alignstr = '%dx%d+%d+%d' % (width, height, (screenwidth - width) / 2, (screenheight - height) / 2)
14+
root.geometry(alignstr)
15+
root.resizable(width=False, height=False)
16+
17+
GButton_145=tk.Button(root)
18+
GButton_145["bg"] = "#f0f0f0"
19+
ft = tkFont.Font(family='Times',size=10)
20+
GButton_145["font"] = ft
21+
GButton_145["fg"] = "#000000"
22+
GButton_145["justify"] = "center"
23+
GButton_145["text"] = "restart"
24+
GButton_145.place(x=0,y=470,width=596,height=30)
25+
GButton_145["command"] = self.GButton_145_command
26+
27+
GLabel_688=tk.Label(root)
28+
ft = tkFont.Font(family='Times',size=10)
29+
GLabel_688["font"] = ft
30+
GLabel_688["fg"] = "#333333"
31+
GLabel_688["justify"] = "center"
32+
GLabel_688["text"] = "well that doesnt seem too great!"
33+
GLabel_688["relief"] = "raised"
34+
GLabel_688.place(x=160,y=0,width=246,height=30)
35+
36+
GLabel_735=tk.Label(root)
37+
ft = tkFont.Font(family='Times',size=10)
38+
GLabel_735["font"] = ft
39+
GLabel_735["fg"] = "#333333"
40+
GLabel_735["justify"] = "center"
41+
GLabel_735["text"] = "so it seems like pythonicOS has crashed? or it just wanted to do this because it could?"
42+
GLabel_735.place(x=0,y=50,width=612,height=30)
43+
44+
GLabel_544=tk.Label(root)
45+
ft = tkFont.Font(family='Times',size=10)
46+
GLabel_544["font"] = ft
47+
GLabel_544["fg"] = "#333333"
48+
GLabel_544["justify"] = "center"
49+
GLabel_544["text"] = "here is the error message that you got, well if you got any?"
50+
GLabel_544.place(x=130,y=100,width=353,height=30)
51+
52+
GLabel_42=tk.Label(root)
53+
ft = tkFont.Font(family='Times',size=10)
54+
GLabel_42["font"] = ft
55+
GLabel_42["fg"] = "#333333"
56+
GLabel_42["justify"] = "center"
57+
GLabel_42["text"] = error
58+
GLabel_42.place(x=190,y=150,width=192,height=30)
59+
60+
GLabel_508=tk.Label(root)
61+
ft = tkFont.Font(family='Times',size=10)
62+
GLabel_508["font"] = ft
63+
GLabel_508["fg"] = "#333333"
64+
GLabel_508["justify"] = "center"
65+
GLabel_508["text"] = "if you could be so great and hit that button on the bottom for me, ill take care of the rest!"
66+
GLabel_508.place(x=110,y=240,width=373,height=30)
67+
68+
GLabel_164=tk.Label(root)
69+
ft = tkFont.Font(family='Times',size=10)
70+
GLabel_164["font"] = ft
71+
GLabel_164["fg"] = "#333333"
72+
GLabel_164["justify"] = "center"
73+
GLabel_164["text"] = "if you could before you go, could you please open a issue on github.com/OpenStudioCorp/PythonicOS with your error code please? that will help out alot!"
74+
GLabel_164.place(x=100,y=340,width=395,height=33)
75+
76+
GLabel_844=tk.Label(root)
77+
ft = tkFont.Font(family='Times',size=10)
78+
GLabel_844["font"] = ft
79+
GLabel_844["fg"] = "#333333"
80+
GLabel_844["justify"] = "center"
81+
GLabel_844["text"] = "cheers!"
82+
GLabel_844.place(x=250,y=410,width=70,height=25)
83+
84+
def GButton_145_command(self):
85+
print("command")
86+
87+
if __name__ == "__main__":
88+
root = tk.Tk()
89+
app = App(root)
90+
root.mainloop()

0 commit comments

Comments
 (0)