Skip to content

Commit

Permalink
Health disclaimer pop-up added
Browse files Browse the repository at this point in the history
  • Loading branch information
ManjotSingh18 committed Aug 17, 2023
1 parent 4b93c17 commit d3af6be
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ def __init__(self, master):
self.frm1.pack()
self.pns=None
self.icon=None
self.creator = tk.Toplevel(self.window)
self.creator.protocol("WM_DELETE_WINDOW", lambda: None)
self.creator.grab_set()
self.creator.wm_attributes("-topmost", True)
self.creator.geometry("400x400")
agree=tk.Button(self.creator,text="Agree", width=20, height=3,justify="center", command=self.agreed,bg="lightgrey")
disagree=tk.Button(self.creator,text="Disagree", width=20, height=3,justify="center", command=self.disagreed,bg="lightgrey")
disclaimer=tk.Label(self.creator, text="Medisee is provided for educational and informational purposes only and does not constitute providing medical advice or professional services. The information provided should not be used for diagnosing or treating a health problem or disease, and those seeking personal medical advice should consult with a licensed physician", height=10, wraplength=400, font=('Helvetica', 10, 'bold'))
disclaimer.pack()
agree.pack()
disagree.pack()
self.searcher()
def searcher(self):
self.icon=ImageTk.PhotoImage(Image.open("./img/logo.PNG"))
Expand Down Expand Up @@ -99,7 +110,12 @@ def prev(self, frames):
def delete(self, frames):
for w in frames.winfo_children():
w.destroy()

def agreed(self):
self.creator.destroy()
def disagreed(self):
self.creator.destroy()
self.window.destroy()
quit()
def quit(self):
self.window.destroy()
quit()
Expand Down

0 comments on commit d3af6be

Please sign in to comment.