Skip to content
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

ColorProvider and moving of column #47

Open
EfimovVladimir opened this issue Feb 3, 2021 · 0 comments
Open

ColorProvider and moving of column #47

EfimovVladimir opened this issue Feb 3, 2021 · 0 comments

Comments

@EfimovVladimir
Copy link
Contributor

code to reproduce:

mapListColorProvider = [
    {"a": 1, "b": 2, "c": 3},
    {"a": 4, "b": 5, "c": 6},
    {"a": 7, "b": 8, "c": 5}
]
table56 = TableDisplay(mapListColorProvider)

def color_provider(row, column, td):
    row = td.values[row]
    val = row[column]
    if val == 5:
        return Color.GREEN    
    return Color.BLACK    

table56.setFontColorProvider(color_provider)
table56

Peek 2021-02-03 06-28

expected result: color provider works the same after of moving column

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

1 participant