Difference between revisions of "Accessibility"
m |
m |
||
Line 1: | Line 1: | ||
=Accessibility support= | =Accessibility support= | ||
+ | |||
+ | ==Links== | ||
+ | |||
+ | * [http://projects.gnome.org/accessibility/ GNOME Accessibility] provides some guidances: | ||
+ | ** http://library.gnome.org/users/gnome-help/stable/a11y.html | ||
+ | ** http://library.gnome.org/users/gnome-access-guide/stable/ | ||
+ | |||
+ | * KDE: | ||
Revision as of 09:16, 19 October 2011
Contents
Accessibility support
Links
- GNOME Accessibility provides some guidances:
- KDE:
Into Glade
- Gtk label
GtkLabel automaticaly generates accessibility keys on next GtkEntry and UndoableEntry fields. Remember that Gramps also uses custom widgets like StyledTextEditor and ValidatableMaskedEntry, which do not provide relation with a GtkLabel.
- Toggle buttons and Icons on toolbar
Gramps often uses toogle buttons and alone image (no label), this excludes blind people and generates a poor interface for accessibility.
Think on accessibility support when you use widgets without relation with a Gtk label or alone image on a toggle button, by adding:
<property name="AtkObject::accessible-name" translatable="yes" comments="">Name access</property> ... <accessibility> <relation type="labelled-by" target="label209"/> </accessibility>
Into python
Sample
# mark the root of this window with its PID so we can easily identify it # as this app root_atk = atk.get_root() root_atk.set_description(str(os.getpid()))
label_acc = label_widget.get_accessible() entry_acc = entry.get_accessible() label_acc.add_relationship(atk.RelationType.LABEL_FOR, entry_acc) entry_acc.add_relationship(atk.RelationType.LABELLED_BY, label_acc)