Ask coding questions

← Back to all posts
Entry widget problem
AaronPhilip (4)

How do i get the value stored in the entry widget globally. You can run my REPL and you'll see the error. I always encounter this error and i dont know how to make it right.

PLEASE HELP!

Thank You

Comments
hotnewtop
LukeWright (287)

if you are trying to get a key value from an env, then you need to do

os.environ.get("key")

if you are trying to write to an env, well I don't think you can do that

AaronPhilip (4)

@LukeWright nah mate the api is working fine. Its just that the entry widget returns a string and i want to convert it to a float. I just cant get hold of that. Thank you for having a look at it !