__all__ = [
"AccessibleObjectNoLongerExists",
+ "AccessibleObjectNotAvailable",
"Enum",
"BaseProxy",
]
class AccessibleObjectNoLongerExists(Exception):
pass
+class AccessibleObjectNotAvailable(Exception):
+ pass
+
#------------------------------------------------------------------------------
-class Enum(int):
+class Enum(uint):
def __str__(self):
return self._enum_lookup[int(self)]
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)