Errors not getting corrected

by | Nov 20, 2021 | Web/App Development | 1 comment

How to correct the error in the code on “[https://pastebin.com/KB4VPYhM](https://pastebin.com/KB4VPYhM)” given below:

​

Traceback (most recent call last):
File “D:/Python/Book Bank/New folder/PyCharm/Final/Excel.py”, line 132, in <module>
“bold”, 10), bg=”white”, command=AddBook())
File “D:/Python/Book Bank/New folder/PyCharm/Final/Excel.py”, line 108, in AddBook
“bold”, 10), bg=”white”, command=SaveBook(top))
File “D:/Python/Book Bank/New folder/PyCharm/Final/Excel.py”, line 25, in SaveBook
f.write(str(book[0]) + ‘,’ + book[1] + ‘,’ + book[2] + ‘,’ + str(book[3]) + ‘,’ + str(book[4]) + ‘,’ + str(book[5]) + ‘,’ + book[6] + ‘,’ + str(book[7]) + ‘,’ + str(book[8]) + ‘,’ + ‘n’)
File “C:UsersDani BrothersAnaconda3libtkinter__init__.py”, line 1489, in cget
return self.tk.call(self._w, ‘cget’, ‘-‘ + key)
TypeError: can only concatenate str (not “int”) to str

&#x200B;

What to write in place of “top” in the SaveBook(top) in the AddBook()’s bname which is in the last just before bview to make the code do its functioning??

How to add the “Home > Sort & filter” function in all the headings of “BookBank.csv” by default that is whenever excel is opened filters are by themselves applied on all the headings of the excel spreadsheet.

I want to use GetRecord to display the data in the excel spreadsheet. How to display?

1 Comment

  1. Salty_Builder_8401

    I suppose one of the book[n] not in str() is actually an integer and not a string

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *