After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 336561 - Bind AccessibleSelection (needed for GtkNotebook page selection, etc)
Bind AccessibleSelection (needed for GtkNotebook page selection, etc)
Status: RESOLVED FIXED
Product: pyspi
Classification: Deprecated
Component: general
CVS HEAD
Other Linux
: Normal enhancement
: ---
Assigned To: PySPI Maintainers
PySPI Maintainers
Depends on:
Blocks: 336562
 
 
Reported: 2006-03-30 02:22 UTC by Peter Johanson
Modified: 2006-03-31 18:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch binding AccessibleSelection (4.70 KB, patch)
2006-03-30 02:24 UTC, Peter Johanson
committed Details | Review
Enhanced patch to add support to atk selection in dogtail (1.91 KB, patch)
2006-03-30 11:55 UTC, Jose Dapena Paz
none Details | Review

Description Peter Johanson 2006-03-30 02:22:25 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.
Comment 1 Peter Johanson 2006-03-30 02:24:07 UTC
Created attachment 62343 [details] [review]
Patch binding AccessibleSelection

Afore mentioned patch which binds AccessibleSelection.
Comment 2 Jose Dapena Paz 2006-03-30 11:55:27 UTC
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()
Comment 3 Jose Dapena Paz 2006-03-30 11:59:32 UTC
(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 :(.
Comment 4 Zack Cerza 2006-03-31 18:35:05 UTC
The patch looks good, and works. Committed.

Thanks! :)