Activities/Abacus: Difference between revisions

No edit summary
Line 182: Line 182:
If the changes involve modifying the graphics, then other methods may need to be modified as well.  For instance, in order to introduce a reset button that can be clicked to reset the bead positions to the beginning, the following methods had to be modified -- all in abacus_window.py:
If the changes involve modifying the graphics, then other methods may need to be modified as well.  For instance, in order to introduce a reset button that can be clicked to reset the bead positions to the beginning, the following methods had to be modified -- all in abacus_window.py:


1) in the class Abacus, methods _button_press_cb() to activate reset button,
# in the class Abacus, methods _button_press_cb() to activate reset button;
2) in the class AbacusGeneric, method create() to create the graphics for reset button,
# in the class AbacusGeneric, method create() to create the graphics for reset button;
3) methods hide() and show() to make the button visible
# methods hide() and show() to make the button visible.
 


==Discussion==
==Discussion==