I can't get it to print 'congrats' when I type "password" in the window. I'm pretty sure the issue is in the "content =self.text.get()" line, but I I haven't an idea what it should be. Any ideas?
<<<
from tkinter import *
class Application(Frame):
def __init__(self, master)...
Can anyone possibly show me how to switch this exact code to print to a textbox instead of to the shell?<<<
from tkinter import *
root = Tk()
root.geometry("500x500")
def retrieve_input():
inputValue = textBox.get("1.0","end-1c")
if inputValue == "test":
print("yes")
else...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.