ı made personal library code there we add new books, delete them ,borrow them, and give them back and also search them but the borrow button doesnt work as it should ı cant code it
firstly it should ask the book name which is gonna be borrowed and if it finds the book then it will ask the borrower name . it asks the book name and borrower name but it always says there isnt any book which has this name
there is also a parameter odunc_alındı_mı : 1/0 when this button works make this parameter 1 and then it should create a parameter which is named odunc_alan (borrowers name) and save those with sqlite3 but it dosent even create the parameter borrowers name
heres the full code : https://paste.pythondiscord.com/YVBA
#🔒 Button isnt functioning as it should it gives error ı need to recode it.( ı got no clue how to fix
18 messages · Page 1 of 1 (latest)
@scarlet beacon
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Closes after a period of inactivity, or when you send !close.
in line 48 u get isim for odunc_al so u dont need to pass that
wha
reag ur code
Traceback
Please provide the full traceback for your exception in order to help us identify your issue.
While the last line of the error message tells us what kind of error you got,
the full traceback will tell us which line, and other critical information to solve your problem.
Please avoid screenshots so we can copy and paste parts of the message.
A full traceback could look like:
Traceback (most recent call last):
File "my_file.py", line 5, in <module>
add_three("6")
File "my_file.py", line 2, in add_three
a = num + 3
~~~~^~~
TypeError: can only concatenate str (not "int") to str
If the traceback is long, use our pastebin.
https://paste.pythondiscord.com/5JPQ this is the latest one
def odunc_al(self): it dosent aks / accept any args
ı tried to do this
gets both ad and isim by itself from simpledialog.askstring(
ı tried something with ai how can ı solve this problem now ? https://discord.com/channels/267624335836053506/1235651370443341916
Avoid relying on AI.
The problem is when you ask AI to fix something you don't understand then if it breaks something you don't understand how to fix it.
Nobody wants to debug broken AI-generated code.
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.