Skip to content

RabbanAli1122/system-control-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Shutdown-GUI-App

License: MIT
Python

βœ… Features

  1. Simple and custom-built GUI for system control operations.
  2. One-click buttons to:
    • Shutdown the system
    • Restart the system
    • Restart with a 20-second delay
    • Log out / suspend the system
  3. Works instantly without confirmation prompts or warnings.
  4. Built using Python's tkinter and os modules.
  5. Lightweight and easy to use – acts like a standalone software tool.

πŸ› οΈ How It Works

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.

πŸ“‹ Requirements

  • Python 3.7+
  • tkinter (standard library)
  • os (standard library)
  • Windows OS (required for shutdown, restart, and log-out commands to work)

πŸš€ How to Run

# 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

⚠️ Note: Make sure to save all your work before clicking any action button – the app executes the command immediately.

🧠 Lessons Learned

  • 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.

πŸ“„ License

This project is licensed under the MIT License. See the LICENSE file for full details.

About

Python GUI app for managing system tasks and process control.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages