def del_service_type(self, interface, protocol, type, domain):
service = (interface, protocol, type, domain)
if service not in self.service_browsers:
return
sb = self.service_browsers[service]
try:
sb.Free()
except dbus.DBusException:
pass
del self.service_browsers[service]
# delete the sub menu of service_type
if type in self.zc_types:
self.service_menu.remove(self.zc_types[type].get_attach_widget())
del self.zc_types[type]
if len(self.zc_types) == 0:
self.add_no_services_menuitem()
评论列表
文章目录