Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def gt():
- global e
- string = e.get()
- print(string)
- def p():
- b.destroy()
- c.destroy()
- w = Label(top, text="here are what you can use:")
- w1 = Label(top, text="qwertyuiop[]asdfghjkl;zxcvbnm,./QWERTYUIOPASDFGHJKLZXCVBNM123456789")
- w.pack()
- w1.pack()
- L1 = Label(top, text="give me the password")
- L1.pack( side = LEFT)
- e=Entry(top)
- e.pack()
- r = Button(top,text='okay',command=gt)
- r.pack(side='bottom')
- top.mainloop()
- Traceback (most recent call last):
- File "C:Python33libidlelibrun.py", line 121, in main
- seq, request = rpc.request_queue.get(block=True, timeout=0.05)
- File "C:Python33libqueue.py", line 175, in get
- raise Empty
- queue.Empty
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "C:Python33libtkinter__init__.py", line 1475, in __call__
- return self.func(*args)
- File "C:UsersHadiDesktopt.py", line 51, in gt
- string = e.get()
- NameError: global name 'e' is not defined
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement