+ 2

Please find the code attached. What correction is necessary. The code is of tkinter sqlite3. I am getting binding error here.

https://onlinegdb.com/ByDlQLhEu Above is the link to my code. You will have to use your browser since online compilers do not compile tkinter

27th Mar 2021, 6:31 AM
Shweta Rajan Nambissan
Shweta Rajan Nambissan - avatar
1 Resposta
0
you got binding error because db is already bound from top of your code by opening a connection at the root main loop point which is not best practice, than you still opening it again in every function while it's already opened! it is better to implement db actions in class and use its methods accordingly. here's a good example https://www.python4networkengineers.com/posts/JUMP_LINK__&&__python__&&__JUMP_LINK-intermediate/create_a_tkinter_gui_with_sqlite_backend/
27th Mar 2021, 12:17 PM
iTech
iTech - avatar