Skip to content

Set column header color? #61

Closed
Closed

Description

@dxiaosa

Thank you for the great tool. How to set or modify the column header color? It seems the row header's color can be changed, but the column header's color can not be located?

Activity

  1. dmnfarrell commented on Nov 18, 2019

    @dmnfarrell
    Owner

    I think the column header color is hard coded and not labelled as a variable. Check the redraw method of the ColumnHeader class in Tables.py.

  2. dxiaosa commented on Nov 18, 2019

    @dxiaosa
    Author

    Yes, I have checked it, and it seems not make sense. So, do you mean that the column color can not be changed?

  3. dmnfarrell commented on Nov 18, 2019

    @dmnfarrell
    Owner

    You certainly can change it. I think it's the background color of the canvas.
    I don't actively update this package any more except to fix bugs.

  4. dxiaosa commented on Nov 18, 2019

    @dxiaosa
    Author

    OK, that is great. thank you.

  5. hannansatopay commented on Nov 18, 2019

    @hannansatopay
    Contributor

    That should add the functionality to change the header color.
    To do that simply add the header color preference to the table canvas constructor as follows:
    TableCanvas(frame, data=data, headerbackgr='blue')

    Do test it with other methods such as saving and loading the preference files but in my opinion, it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions