-
Notifications
You must be signed in to change notification settings - Fork 0
/
load.py
56 lines (45 loc) · 989 Bytes
/
load.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import time
import sys
from tkinter import *
# Setup
root = Tk()
T = Text(root, height=2, width=30)
T.pack()
with open('IMPORTANT.txt', 'r') as myfile:
name=myfile.readline()
desc=myfile.readline()
create=myfile.readline()
game=myfile.readline()
data = name
data = data.replace('\n', '')
name = data
data = desc
data = data.replace('\n', '')
desc = data
data = create
data = data.replace('\n', '')
create = data
data = game
data = data.replace('\n', '')
game = data
create = 'Made By: ' + create
# Start
print(name)
print(desc)
print(create)
print(game)
if name == ('') or desc == ('') or create == ('') or game == (''):
print('Data not found')
sys.exit()
root = Tk()
T = Text(root, height=3, width=50)
T.pack()
T.insert(END, name + '\n' + desc + '\n' + create)
mainloop()
time.sleep(2)
try:
root.destroy()
except:
print('Window already destroyed')
exec(open(game).read())
sys.exit