Activities/Abacus: Difference between revisions

Line 191: Line 191:


Most changes can be confined to three modules: <code>AbacusActivity.py</code>, <code>abacus.py</code> and <code>abacus_window.py</code>. The former define the Sugar and GNOME toolbars; the latter defines what code is executed by each type of abacus.
Most changes can be confined to three modules: <code>AbacusActivity.py</code>, <code>abacus.py</code> and <code>abacus_window.py</code>. The former define the Sugar and GNOME toolbars; the latter defines what code is executed by each type of abacus.
'''Note: since a recent refactoring, these instructions are deprecated'''


For instance, to add a menu item such as 'Reset' you would do the following in <code>abacus.py</code>:
For instance, to add a menu item such as 'Reset' you would do the following in <code>abacus.py</code>: