projects
/
platform
/
core
/
uifw
/
at-spi2-atk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2009-04-16 Mike Gorse <mgorse@novell.com>
[platform/core/uifw/at-spi2-atk.git]
/
pyatspi
/
base.py
diff --git
a/pyatspi/base.py
b/pyatspi/base.py
index
7adafbb
..
438f9e5
100644
(file)
--- a/
pyatspi/base.py
+++ b/
pyatspi/base.py
@@
-33,7
+33,7
@@
class AccessibleObjectNotAvailable(Exception):
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------
-class Enum(int):
+class Enum(
u
int):
def __str__(self):
return self._enum_lookup[int(self)]
def __str__(self):
return self._enum_lookup[int(self)]
@@
-131,6
+131,9
@@
class BaseProxy(object):
def __ne__(self, other):
return not self.__eq__(other)
def __ne__(self, other):
return not self.__eq__(other)
+ def __hash__(self):
+ return hash(self._app_name + self._acc_path)
+
def get_dbus_method(self, *args, **kwargs):
method = self._dbus_object.get_dbus_method(*args, **kwargs)
def get_dbus_method(self, *args, **kwargs):
method = self._dbus_object.get_dbus_method(*args, **kwargs)