You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to refresh the table from a database that is being updated every few seconds. I am able to display the table but it is refreshing the data from database. New records are not displayed on the table.
I put the data into a JSON file to be able to displayed on the table. I used .after to refresh to call the function that gets the data from DB. Tried many procedures to refresh to no avail. I appreciate any help.
class Gappers(tk.Tk):
def init(self):
super().init()
self.geometry('250x380')
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to refresh the table from a database that is being updated every few seconds. I am able to display the table but it is refreshing the data from database. New records are not displayed on the table.
I put the data into a JSON file to be able to displayed on the table. I used .after to refresh to call the function that gets the data from DB. Tried many procedures to refresh to no avail. I appreciate any help.
class Gappers(tk.Tk):
def init(self):
super().init()
self.geometry('250x380')
if name == "main":
clock = Gappers()
clock.mainloop()
Beta Was this translation helpful? Give feedback.
All reactions