Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
I have used the Entry() in the code written below in python:

b_auth = Label(top, text='BOOK AUTHOR', font=('bold', 10)) 
b_auth.place(relx=0.1, rely=0.35, anchor=W) 
global e_bauth 
e_bauth = Entry(top) 
e_bauth.place(relx=0.6, rely=0.35, anchor=E) 
e_bauth.config(width=30) 

The program is giving the error: 'Entry' object is not callable.

How to correct this error?

What I have tried:

I have tried to correct but still not successful
Posted
Updated 25-Oct-21 9:26am
Comments
Member 15329613 25-Oct-21 13:41pm    
You are calling it wrong. But we can't see where it is or what it should be.
A. B. Dinshaa 26-Oct-21 1:53am    
You want the file as an attachment??
Member 15329613 26-Oct-21 10:17am    
No. But it looks like Solution 1 might help.
A. B. Dinshaa 26-Oct-21 14:23pm    
def continue_window():
top = Toplevel()
top.title('Book Bank')
top.geometry("700x400")
head = Label(top, text='GIVE DETAILS', font=('bold', 10))
head.place(relx=0.5, rely=0.2, anchor=CENTER)

b_name = Label(top, text='BOOK NAME', font=('bold', 10))
b_name.place(relx=0.1, rely=0.3, anchor=W)
global e_bname
e_bname = Entry(top)
e_bname.place(relx=0.6, rely=0.3, anchor=E)
e_bname.config(width=30)
A. B. Dinshaa 2-Nov-21 3:07am    
How to add a picture in this conversation and in a question?

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900