I’m confused by your requirements here.
The idea of the library is to continuously observe AppleInterfaceStyle to run the callback if a user switches the Appearance of their system from Dark to Light or vice versa.
In general KVO observers run on the thread that makes the change.
I was not aware of this. When I run my code from the Python main thread, or as a standalone CLI script, the monitoring works well even if the key change is obviously coming from System Preferences, and therefore not from the same thread.
Topic:
App & System Services
SubTopic:
General
Tags: