Setting accessible name for SpinButton and ComboButton in pygtk2



Hello,


I'm trying to learn a bit about GTK/GNOME accessibility development.
Recently I began dipping my toes into amateur radio, and while the Chirp
radio programming software is highly accessible, there are some rough
edges. The biggest of these is that programatically-created radio
settings screens don't associate labels with their widgets.


Chirp uses pygtk2. After it creates the widget, I use the following:


                print("Setting name", element.get_shortname(), widget)
                widget.get_accessible().set_name(element.get_shortname())


And this correctly sets the accessible name for checkboxes, text areas,
everything but SpinBoxes and ComboBoxes.


Am I on the right track with this? How do I associate a label with a
Combo/Spin box such that tabbing onto it speaks the associated label?
This works with checkboxes/text areas, so I don't know if I'm doing
something incorrectly, or if this is an Orca issue.


Thanks.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]