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

Improve colors of graph adjacency matrix #229

Open
JMCanning78 opened this issue Jun 16, 2021 · 2 comments
Open

Improve colors of graph adjacency matrix #229

JMCanning78 opened this issue Jun 16, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@JMCanning78
Copy link
Owner

Simply setting the bg or background attribute of buttons and text entry widgets does not seem to affect the displayed background color in the graph adjaceny matrix. I think it would look better if the vertex's color extended across a complete row. The initial implementation only shows the colors along the (static) diagonal:
Screen Shot 2021-06-16 at 11 30 52 AM
One way to do this would be to make a custom widget from a Label or Frame class that has bindings to handle clicks and maybe keyboard input.

@JMCanning78 JMCanning78 added the enhancement New feature or request label Jun 16, 2021
@JMCanning78
Copy link
Owner Author

For the weighted graph, the adjacency matrix cells are editable text entry areas. Those are showing the background color, although they are surrounded by frame of the default background.
Screen Shot 2021-09-05 at 12 54 53 PM

@JMCanning78
Copy link
Owner Author

This appears to be a problem specific to macOS. Here's how the adjacency matrix appears for Graph.py on Windows:
Screen Shot 2021-09-30 at 12 22 05 PM
There appears to be Python library that fixes this issue:
https://pypi.org/project/tkmacosx/

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

No branches or pull requests

1 participant