israel-dryer / ttkbootstrap

A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.
MIT License
1.99k stars 395 forks source link

How can I set the background color for specific rows in Tableview? #512

Open youde2000 opened 11 months ago

youde2000 commented 11 months ago

Is your feature request related to a problem? Please describe.

In the ttkbootstrap.Tableview, how can I set the background color for certain rows? For instance, I have a filtering condition where if the condition is met, those specific rows should have a red background color, while the rest should have a blue color

Describe the solution you'd like

The 'stripecolor' parameter in Tableview is designed to differentiate alternating rows with different colors uniformly. I believe the functionality I want to achieve operates on a similar principle, but it requires setting row colors based on specific conditions.

Describe alternatives you've considered

Not yet

Additional context

No response

youde2000 commented 11 months ago

One more:

I don't want to use the right-click menu for TableView. Is there a way to disable it so that my TableView remains just a simple table? Or perhaps allow developers to customize the functionality of the right-click menu?

@israel-dryer