diff --git a/README.md b/README.md index ca7a27e..1343c1e 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ setuptools ## Example ``` +import time from win10toast import ToastNotifier toaster = ToastNotifier() toaster.show_toast("Hello World!!!", @@ -37,7 +38,8 @@ toaster.show_toast("Example two", duration=5, threaded=True) # Wait for threaded notification to finish -while toaster.notification_active(): time.sleep(0.1) +while toaster.notification_active(): + time.sleep(0.1) ``` ## Contributors [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/jithurjacob/Windows-10-Toast-Notifications/issues)