-
Notifications
You must be signed in to change notification settings - Fork 308
Shutdown and CancelShutdown
aryan edited this page Jul 25, 2021
·
7 revisions
shutdown(time: int = 20) -> None
This function is used to shutdown the host machine after a given amount of time. Please note that for Windows Distributions the time should be given as SECONDS and for MacOS and Linux based distributions the time should be given as MINUTES.
Example: pywhatkit.shutdown(5)
cancel_shutdown() -> None
This function is used to cancel the scheduled shutdown for Windows, MacOS and Linux based distributions.
Example: pywhatkit.cancel_shutdown()
PyWhatKit Version 5.2