Description
Neutron is a Python framework for building cross-platform GUI applications with HTML and CSS. It is built on PyQt6 and uses QtWebEngine to render the interface, so you write the layout in HTML and CSS and the logic in Python. The author describes it as an intuitive way to create GUI apps. Its API is designed to resemble the JavaScript DOM API, with the Window class playing the role of the document object, although the README says it still lacks a lot of features. You parse your HTML from a file or from a string, and pass a list of Python functions that the page can call directly. A Python function can be turned into a JavaScript bridge function for event listeners or for methods that need a callable. The API also covers evaluating JavaScript from Python, creating a window, and showing and closing it. The README links a template project and a to-do app example, and it has a Build section. Contributions are welcome through the CONTRIBUTING file. The source is public on GitHub.…
Highlights
- Desktop GUIs written with HTML and CSS
- Python functions callable from the page
- DOM-like Window API
- Built on PyQt6 and QtWebEngine
- Template project and to-do example
Ratings & Reviews
No ratings yet
Be the first to rate Neutron.
People also visit
Neutron FAQ
What is Neutron?
A Python framework for making GUI applications with HTML and CSS.
What is the window built on?
PyQt6, using QtWebEngine to show the HTML interface.
How do I start?
Follow the Installation section, then use the template project or the to-do app example from the README.
How does Python talk to the page?
You pass a list of Python functions when parsing the HTML, and the page can call them directly. Functions can also be wrapped as JavaScript bridge functions.
Is the API like the browser DOM?
The README says it is designed to be similar to the JavaScript DOM API, with some differences.
What are the best Neutron alternatives?
Popular alternatives to Neutron include Web2Executable, PyWebIO and Photon. See all Neutron alternatives


