Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Naive listener for macOS #27

Closed
wants to merge 2 commits into from
Closed

Conversation

zwimer
Copy link
Contributor

@zwimer zwimer commented Nov 30, 2022

Add a naive macOS listener.

Small demo, toggling mode after starting thread:

>>> import darkdetect
>>> import threading
>>> t=threading.Thread(target=darkdetect.listener, args=(print,))
>>> t.start()
>>> Dark
Light
>>>
>>> [1]    13336 quit       python3

@zwimer
Copy link
Contributor Author

zwimer commented Nov 30, 2022

Adds naive support for: #25

@albertosottile
Copy link
Owner

Closing this for the reasons mentioned in #25 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants