Python Indicator stops updating after 3 times on Ubuntu
问题 i am writing an Indicator in Python which should update every 5 minutes. Unfortunately the label is updated only 3 times, but then the label stays the same, although the thread still runs. For demonstration purpose, I replaced the data with the current time. #!/usr/bin/env python3 import signal import gi import threading gi.require_version('Gtk', '3.0') gi.require_version('AppIndicator3', '0.1') from gi.repository import Gtk, AppIndicator3, GObject import time class Indicator(): def __init__