From: Willie Walker Date: Wed, 22 Apr 2009 09:26:44 +0000 (-0400) Subject: Add getActions implementation to pyatspi. X-Git-Tag: AT_SPI2_ATK_2_12_0~526^2~3 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=commitdiff_plain;h=082eb343736e927ba94930715e000be6e69549a7 Add getActions implementation to pyatspi. --- diff --git a/pyatspi/action.py b/pyatspi/action.py index f3489d7..fe230ba 100644 --- a/pyatspi/action.py +++ b/pyatspi/action.py @@ -24,8 +24,6 @@ __all__ = [ #------------------------------------------------------------------------------ -#TODO Perhaps use the 'getActions' method to reduce round-trips. - class Action(Accessible): """ An interface through which a user-actionable user interface component @@ -38,6 +36,16 @@ class Action(Accessible): folders, and others. """ + def getActions(self): + """ + getActions: + Retrieves all the actions at once. + @return : an array of an array of strings in the form + [[name, description, keybinding], ...] + """ + func = self.get_dbus_method("getActions", dbus_interface=ATSPI_ACTION) + return func() + def doAction(self, index): """ doAction: