def __get_prop(obj, iface, prop):
"""Get object interface properties. Internal use only, dont touch."""
if not dbus:
log.warning("D-Bus module not found or not supported on this OS.")
return # Windows probably.
try:
return obj.Get(iface, prop, dbus_interface=dbus.PROPERTIES_IFACE)
except (dbus.DBusException, dbus.exceptions.DBusException) as err:
print(err)
return
评论列表
文章目录