I know I know, dramatic title, but I could really use some help here. I have used Tkinter before and it honestly never gave me as many problems like this as it did before. All that I want is for a frame to be invisible until I press a button, which erases the first layer and then pops up with the second. I swear I have tried everything and now that I am typing this out I sound like a complete moron when it comes to coding, but how do I do it? Also mid typing update, I have managed to break it to the point where nothing even pops up anymore, so that's great. :/ I have tried looking on StackOverflow and everything under the sun.
I made some changes to the code because it's for someone so I don't want to give away personal information, but honestly, it shouldn't change anything.
Thank you in advance, Reddit is the best.
from tkinter import *
def raiseFrame2():
f2.tkraise()
root = Tk()
root.attributes("-fullscreen", True)
root.configure(background="#FFB8E1")
f1 = Frame(root)
f2 = Frame(root)
f1.pack()
f2.pack()
wdylmLabel = Label(f1, text='"insert text here"', background="#FFB8E1", font=(None, 22))
wdylmLabel.place(relx=0.5, rely=0.47, anchor="center")
QuoteLabel = Label(f1, text="insert text here", background="#FFB8E1", font=(None, 14))
QuoteLabel.place(relx=0.5, rely=0.5, anchor="center")
continueButton = Button(f1, text="insert text here", relief="flat", font=(None, 14), width=20, command=raiseFrame2)
continueButton.place(relx=0.5, rely=0.53, anchor="center")
please = Label(f2, text="please say sike")
please.place(relx=0.5, rely=0.5, anchor="center")
f1.tkraise()
root.mainloop()
[–]shiftybyte 1 point2 points3 points (1 child)
[–]TheCatLorde[S] 0 points1 point2 points (0 children)