-
Notifications
You must be signed in to change notification settings - Fork 437
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
Changed the icon set in Button2D from Dictionary to List of Tuples #1547
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a good solution to the problem.
Thanks for fixing this @karandeepSJ :) |
@Garyfallidis @dmreagan @karandeepSJ This PR was modified (fixing a bug) after it got merged. Master is failing the tests at the moment. |
I did not push anything to this branch. Master is failing because of some error in the latest version of scipy. |
Yep. See #1565 |
Oh no - I am wrong. One of the failures does seem to be because of this branch: |
Now in #1573 |
Fixed |
Changed the icon set in Button2D from Dictionary to List of Tuples
Fixed Bug in PR dipy#1547
The
Button2D
class used a dictionary to store icons. The random ordering of dictionaries in Python was causing problems when a particular order was required for the button icons.This PR changes the dictionary to a list of tuples of the form
((icon_name, icon), (icon_name, icon), ....)