-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRUN_ME.py
43 lines (30 loc) · 929 Bytes
/
RUN_ME.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
from data_accessing import msg_flag #when msg_flag is True then print out extracted message
import tkinter as tk
from tkinter import *
wind = tk.Tk()
def done():
wind.destroy()
Button(
wind,
text="EXIT",
fg='white',
bg='black',
padx=19,
pady=19,
command=done,
).pack()
if( msg_flag==True ):
from data_accessing import extracted_message
wind.title("EXTRACTED MESSAGE UNCOVERED (see below)")
greeting = tk.Label( text='EXTRACTED MESSAGE:\n'+extracted_message )
greeting.pack()
wind.geometry('600x400')
wind['bg'] = '#26dddd'
wind.mainloop()
else:
wind.title("ALL FINISHED EMBEDDING MESSAGE")
greeting = tk.Label(text='Secret message/data has been embedded in your chosen image')
greeting.pack()
wind.geometry('600x400')
wind['bg'] = '#26dddd'
wind.mainloop()