Skip to content

tukaramhankare/Python-IDE-Script-Builder-and-Emulator-Program-

Repository files navigation

AI Python IDE - Project Summary

This document summarizes the discussion about converting the AI Python IDE project into a working desktop application (.exe) and web version.

Project Overview

  • Original code: A full-featured Tkinter-based Python IDE with AI code generation
  • Developed by: Tukaram Hankare (v1.1.0)
  • Features: Syntax highlighting, multi-tab editor, themes, AI prompt panel, run code, etc.

Problem Faced

  • The original Tkinter code does NOT run in PyEmulate (Skulpt) because:
    • import os, import tkinter, subprocess, threading, pathlib, etc. are not supported.
    • Skulpt is a limited JavaScript-based Python interpreter for browsers.

User Requirements

  • Wanted to run the IDE on Android as a website
  • Wanted to host it on GitHub as .html
  • Later asked to convert 3 web files (.html, .css, .js) into Python and then into .exe

Final Recommended Solution

Instead of forcing the heavy Tkinter code to run in browser, we decided to:

→ Wrap the existing HTML + CSS + JS frontend using pywebview → Convert it into a standalone Windows .exe file

This approach:

  • Keeps your original web design intact
  • Creates a real desktop application
  • Works offline
  • Much lighter than Electron

Files Needed

In the same folder, you should have:

  1. index.html (or your main HTML file)
  2. styles.css (or your CSS file)
  3. script.js (or your JavaScript file)
  4. app.py ← Python wrapper (created below)
  5. (Optional) icon.ico

app.py Content

import webview
import os

html_path = os.path.abspath("index.html")   # Change filename if different

def main():
    window = webview.create_window(
        title="AI Python IDE",
        url=html_path,
        width=1400,
        height=860,
        min_size=(900, 600),
        text_select=True,
        background_color="#1e1e1e"
    )
    webview.start()

if __name__ == "__main__":
    main()

About

.py builder and emulator program for /python users.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors