Setting colours of cells #59
-
Currently making an algorithm which checks inventory levels in my database and assigns this value a colour, I want this to change the colour of the cells in accordance to the row and column, is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
@Jackkkkk494 When you insert a value in a cell using If you don't want to change any value in a cell but want to only change color: table.insert(row=row, column=column, value=table.get(row, colomn), fg_color="color_name") |
Beta Was this translation helpful? Give feedback.
-
I didn't notice my version,
Updating to latest version(0.7 to 0.8) fixed it.
Thank you so much.
Akash Bora ***@***.***>, 6 Ara 2023 Çar, 07:34 tarihinde şunu
yazdı:
… @aeris07 <https://github.com/aeris07> are you using the latest version?
—
Reply to this email directly, view it on GitHub
<#59 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A65LCSAFX3DTXRHZYADGPSLYH7YVDAVCNFSM6AAAAAA7IDRW72VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TONZRGUYTE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hello @Akascape/CTkTable
***@***.***>
Thank you for your helpful and quick response,
Great, it worked like a charm,
|
Beta Was this translation helpful? Give feedback.
@Jackkkkk494 When you insert a value in a cell using
.insert
method, you can passfg_color
parameter too. Or you can simply set the hover color to the cell using.select(row, column)
method.If you don't want to change any value in a cell but want to only change color: