Replies: 1 comment
-
import customtkinter
from CTkTable import *
def flash():
global x
x +=1
table.edit(0,0, fg_color="green") if x%2==0 else table.edit(0,0, fg_color=table.fg_color)
root.after(200, flash)
root = customtkinter.CTk()
x = 0
value = [[1,2,3,4,5],
[1,2,3,4,5],
[1,2,3,4,5],
[1,2,3,4,5],
[1,2,3,4,5]]
table = CTkTable(master=root, row=5, column=5, values=value)
table.pack(expand=True, fill="both", padx=20, pady=20)
flash()
root.mainloop() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I would like to make some cell backgrounds flashing in CTkTable,
For example, it will flash between green and default background colour.
Is it a possible setting for CTktable?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions