A powerful, zero-dependency Python tool that instantly transforms your Command-Line Interface (CLI) scripts into clean, functional Graphical User Interfaces (GUI).
Tired of running your scripts in a boring black terminal? This tool acts as an Automated Wrapper. It takes any standard Python script and generates a new file featuring a modern "Dark Mode" GUI.
Unlike other wrappers, this one handles input() prompts by converting them into interactive pop-up dialogs and ensures your UI never freezes during heavy tasks.
- Zero External Dependencies: Built entirely on
tkinter. The output file runs on any machine with Python installedβnopip installrequired for the GUI. - Smart Input Handling: Automatically detects
input()calls and replaces them with GUI-based input dialogs. - Real-time Logging: Redirects all
print()outputs to a sleek, terminal-style text area within the window. - Multi-Threaded Execution: Runs your original script logic in a background thread to keep the interface responsive.
- Hacker Aesthetic: Features a "Dark Grey & Lime Green" theme for a professional, technical look.
- Source Parsing: It reads your source code and injects an indentation wrapper.
- Dynamic Replacement: It replaces standard CLI
input()with a custom GUI function. - Stream Redirection: It "hijacks"
sys.stdoutto capture text and display it in the GUI's console area. - Code Generation: It outputs a standalone
.pyfile ready for use or conversion to.exe.
git clone (https://github.com/NULL200OK/PyScript-to-GUI.git)
cd PyScript-to-GUI
2. Run the Converter
Pass your terminal script as the input:
Bash
python converter.py --input my_script.py --output my_new_app.py
3. Run your New GUI!
Bash
python my_new_app.py
###π Requirements
Python 3.x
No external libraries needed! (Uses built-in tkinter, threading, and argparse).
###π€ Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the [issues page].
Generated with β€οΈ to make Python tools more accessible.