Skip to content

Reset method #279

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Quasarrs opened this issue Mar 17, 2025 · 1 comment
Open

Reset method #279

Quasarrs opened this issue Mar 17, 2025 · 1 comment

Comments

@Quasarrs
Copy link

Please tell me, is there a method that allows you to clear a table of colored cells? I rewrite data into the table during the event code and adjust the cell colors, but for some reason the old colors from the previous settings remain.

            for row in self.index_row_itog:
                 self.table_clear.highlight_cells(
                     row=row, column=1, 
                    bg="orange", 
                     fg="black"  
                 )
                 self.table_clear.highlight_cells(
                     row=row, column=0, 
                    bg="#ECEBBD",  
                    fg="black", 
                )
@JonnyNOS
Copy link

You could try table.reset() , but that resets the entire table, not just the colors.

Or you could use table.dehighlight_all() or table.dehighlight_cells(row, column) with a loop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants