def METHOD_NAME(self):
    try:
        output = subprocess.check_output("swaync-client -c".split()).decode("utf-8")
        GLib.idle_add(self.update_widget, output)
    except Exception as e:
        print(e)