Python Forum
Python tkinter&pymysql
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python tkinter&pymysql
#2
you're assigning the same StringVar to two Entry widgets, which will probably (not sure) cause issues.
I would use two separate variables.
You set and get the values, for example:
author_text.set(value)
in addition, after you do a a.fetch_all()
you need to select the rows from data.

Also, you should use meaningful names, not single letters which is bad practice.
Reply


Messages In This Thread
Python tkinter&pymysql - by xgrzeniu - Apr-15-2018, 04:56 AM
RE: Python tkinter&pymysql - by Larz60+ - Apr-15-2018, 07:56 AM
RE: Python tkinter&pymysql - by xgrzeniu - Apr-15-2018, 09:09 AM
RE: Python tkinter&pymysql - by Larz60+ - Apr-15-2018, 11:43 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020