IcyTv
IcyTv

Reputation: 485

Tkintertable change color of a cell/row

how do you change the BackgroundColor of a cell/ row with tkintertable? There is the command setcellBackground color, but it doesn't seem to work. Does anyone have an idea?

Upvotes: 1

Views: 2622

Answers (2)

Felix Defrance
Felix Defrance

Reputation: 21

It really depends on the widget (Entry, Text, Listbox,...) you are placing on a certain row and column.

In a first part, you define the properties of the object, for example:

list = Listbox(root, borderwidth=0, background='white')

And then you tell tkinter where you want him to place the listbox:

list.grid(row=0, column=1)

Is it clear ?

Please tell me which widget you want to put in your grid, it would be easier to help you!

Upvotes: 2

IcyTv
IcyTv

Reputation: 485

with a bit of digging I found an answer, not the perfect solution, but doesn't matter: You need to edit the color of the model itself with the command:

setColorAt()

The setcellColor() command still doesn't work. Have fun and maybe someone can actually make sense of the command: documentation is on this site tkintertable documentation

Upvotes: 0

Related Questions