- Simple and custom-built GUI for system control operations.
- One-click buttons to:
- Shutdown the system
- Restart the system
- Restart with a 20-second delay
- Log out / suspend the system
- Works instantly without confirmation prompts or warnings.
- Built using Python's
tkinterandosmodules. - Lightweight and easy to use β acts like a standalone software tool.
from tkinter import *
import os
def shutdown():
os.system("shutdown /s /t 1")The app uses os.system() to execute system-level shutdown and restart commands on Windows OS. The interface is created using tkinter, providing clickable buttons for each operation.
- Python 3.7+
- tkinter (standard library)
- os (standard library)
- Windows OS (required for shutdown, restart, and log-out commands to work)
# Clone the repository
git clone https://github.com/your-username/Shutdown-GUI-App.git
cd Shutdown-GUI-App
# Run the script (Windows only)
python shutdown_app.py
- How to use tkinter for building Python GUIs.
- How to perform system-level operations using os.system() in Python.
- How to create a functional app with shutdown/restart capabilities.
This project is licensed under the MIT License. See the LICENSE file for full details.