def _combo_changed_clients(self, widget):
ind = widget.get_active()
if ind == -1:
return
else:
dev = self.chromecasts[ind]
if not dev:
return
self.connect_to_chromecast(dev)
if self.cast:
self.cast.wait()
else:
self.clients_combo.set_active(-1)
message = ("Cannot connect to chromecast. You sure you are still connected to the same network?")
win = Gtk.Window(type=Gtk.WindowType.TOPLEVEL)
dialog = Gtk.MessageDialog(win, None, Gtk.MessageType.ERROR,
Gtk.ButtonsType.OK, message)
dialog.run()
dialog.destroy()
评论列表
文章目录