GNOME Bugzilla – Bug 336561
Bind AccessibleSelection (needed for GtkNotebook page selection, etc)
Last modified: 2006-03-31 18:35:05 UTC
Currently, AccessibleSelection is not bound, so dogtail, etc don't offer API for selecting pages on a notebook, etc. Patch to follow which binds this for pyspi.
Created attachment 62343 [details] [review] Patch binding AccessibleSelection Afore mentioned patch which binds AccessibleSelection.
Created attachment 62380 [details] [review] Enhanced patch to add support to atk selection in dogtail I got Peter's patch, and added some functions to make it more confortable to use. * Added a "selectedChildren" attribute to Node, enabling you to recover the set of selected accessibles. * Added a "select()" method to Node. It gets the parent and selects the node in the parent. It should fix #333887 (navigation through tabs in dogtail). As an example of how to select a tab would be: focus.application('gedit') focus.widget(roleName='page tab', name='My tab') focus.widget.node.select()
(In reply to comment #2) > Created an attachment (id=62380) [edit] > Enhanced patch to add support to atk selection in dogtail Urg, this patch shouldn't be here. I've just added it to #336562. Sorry :(.
The patch looks good, and works. Committed. Thanks! :)