I want to convert this code to a threading and modify it with another program.
from tkinter import *
from time import sleep
def wink(self):
self.configure(bg = "White")
self.configure(fg = "Black")
self.update()
sleep(0.2)
self.configure(bg = "Black")
self.configure(fg = "White")
self.update()
root = Tk()
alabel = Label(root, text = "welcome to my app", bg = "Black", fg = "White")
alabel.pack()
root.mainloop()
I want to call this as a threading and call wink in another program to make a change on my page.
I want my program to call this code while it is running and call wink at the right time to make a change on the page, without stopping my program*