Function cashing and drinking water desktop notification system.
Function cashing and drinking water Desktop notification system.
Code -
---------------------------------------------
import time
from functools import lru_cache
from plyer import notification
@lru_cache(maxsize=5)
def nacho(n):
time.sleep(n)
return n
# if __name__ == '__main__':
# print("Ek run ho hai")
# print(nacho(3))
def water_drinker():
print("This Water notification system.")
while True:
time.sleep(15)
notification.notify(
title="** It's water time **",
message="Drink 1 glass of water from your bottle.... And enjoy programming...",
app_icon="full path.ico",
timeout=10)
water_drinker()
Comments
Post a Comment