mirror of
https://github.com/kittywitch/konawall-py.git
synced 2026-02-09 04:19:19 -08:00
Add a systray based GUI o:
This commit is contained in:
parent
d894d7176c
commit
96f1ee3583
8 changed files with 198 additions and 12 deletions
|
|
@ -3,6 +3,7 @@ import os
|
|||
import re
|
||||
import inspect
|
||||
import logging
|
||||
from custom_print import kv_print
|
||||
|
||||
global environment_handlers
|
||||
global source_handlers
|
||||
|
|
@ -49,7 +50,7 @@ def add_environment(environment: str) -> callable:
|
|||
path = frame[0].f_code.co_filename
|
||||
def wrapper(function):
|
||||
environment_handlers[environment] = function
|
||||
logging.debug(f"Loaded environment handler {environment} from {path}")
|
||||
kv_print(f"Loaded environment handler {environment} from", path, level="debug")
|
||||
return wrapper
|
||||
|
||||
"""
|
||||
|
|
@ -65,5 +66,5 @@ def add_source(source: str) -> callable:
|
|||
path = frame[0].f_code.co_filename
|
||||
def wrapper(function):
|
||||
source_handlers[source] = function
|
||||
logging.debug(f"Loaded wallpaper source {source} from {path}")
|
||||
kv_print(f"Loaded wallpaper source {source} from", path, level="debug")
|
||||
return wrapper
|
||||
Loading…
Add table
Add a link
Reference in a new issue