Instead of dealing with complex event loops, you simply add controls and wait for events.
If you can write a list or a print statement, you can build a form. You define the layout—a button, a textbox, a dropdown—and Pglet handles the rest. 2. Native Look and Feel Pglet E01mp4
Write your script on Windows, run it on Linux. The UI runs in the browser, making it ideal for automation tools that need user interaction. How It Works: A Simple Example (Python) Instead of dealing with complex event loops, you
Are you already using Pglet for your projects? Let me know in the comments! If you’d like, I can: Add a specific example Draft a use-case scenario (like a file converter tool) Include a comparison table with Tkinter or Electron Let me know how you'd like to tailor this! pig-dot-dev/piglet How It Works: A Simple Example (Python) Are
Have you ever needed a quick, custom GUI for a PowerShell script or Python automation, only to spend three hours wrestling with Tkinter, WPF, or Electron?
import pglet from pglet import Textbox, Button, Text # Define the UI p = pglet.page("my-app") p.add(Textbox(id="name", label="Your Name")) p.add(Button("Say Hello", onclick=lambda e: p.add(Text(f"Hello, {p.controls['name'].value}!")))) # Keep the app running p.wait_for_close() Use code with caution. Copied to clipboard When to Use Pglet Quick GUIs for HR, IT, or DevOps tasks.
Pglet is proof that you don't need a full frontend stack to create professional, usable applications. If you are tired of complex UI frameworks and just want to get the job done, give Pglet a try.