[pyatspi2] Support id property
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pyatspi2] Support id property
- Date: Thu, 4 Mar 2010 15:26:17 +0000 (UTC)
commit 767c9c239112a2b4aee390f543057a82ba5446de
Author: Mike Gorse <mgorse novell com>
Date: Thu Mar 4 10:29:34 2010 -0500
Support id property
pyatspi/application.py | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/pyatspi/application.py b/pyatspi/application.py
index f65baad..1b608da 100644
--- a/pyatspi/application.py
+++ b/pyatspi/application.py
@@ -43,6 +43,14 @@ class Application(Accessible):
func = self.get_dbus_method("GetLocale", dbus_interface=ATSPI_APPLICATION)
return func(local_type)
+ def get_id(self):
+ return dbus.Int32(self._pgetter(ATSPI_APPLICATION, "Id"))
+ _idDoc = \
+ """
+ The application instance's unique ID as assigned by the registry.
+ """
+ id = property(fget=get_id, doc=_idDoc)
+
def get_toolkitName(self):
return dbus.String(self._pgetter(ATSPI_APPLICATION, "ToolkitName"))
_toolkitNameDoc = \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]