[pyatspi2] Add getLocalizedName for actions
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2] Add getLocalizedName for actions
- Date: Mon, 30 Jul 2012 17:04:22 +0000 (UTC)
commit 9b254dc0da4ba86a8cc2960720822c8f35570986
Author: Mike Gorse <mgorse suse com>
Date: Mon Jul 30 12:04:32 2012 -0500
Add getLocalizedName for actions
https://bugzilla.gnome.org/show_bug.cgi?id=680598
pyatspi/action.py | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
---
diff --git a/pyatspi/action.py b/pyatspi/action.py
index 8ee0b0b..1c80e70 100644
--- a/pyatspi/action.py
+++ b/pyatspi/action.py
@@ -84,13 +84,25 @@ class Action(interface):
getName:
@param : index
the index of the action whose name is requested.
- Get the name of the specified action. Action names generally
- describe the user action, i.e. "click" or "press", rather then
- the result of invoking the action.
+ Get the unlocalized name of the specified action. Action names
+ generally describe the user action, i.e. "click" or "press",
+ rather than the result of invoking the action.
@return : a string containing the name of the specified action.
"""
return Atspi.Action.get_name(self.obj, index)
+ def getLocalizedName(self, index):
+ """
+ getLocalizedName:
+ @param : index
+ the index of the action whose name is requested.
+ Get the localized name of the specified action. Action names
+ generally describe the user action, i.e. "click" or "press",
+ rather than the result of invoking the action.
+ @return : a string containing the name of the specified action.
+ """
+ return Atspi.Action.get_localized_name(self.obj, index)
+
def get_nActions(self):
return Atspi.Action.get_n_actions(self.obj)
_nActionsDoc = \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]