Create modern cross-platform apps in HTML and CSS with python

What is Neutron

Neutron will allow developers to build complex python apps while using CSS and HTML for the design. Neutron will give full access to the DOM just as it would be in Javascript and will offer an easy scripting method to bind HTML with Python.

For example:

import Neutron

win = Neutron.Window("Example", css="def.css")

def setName():
    name = win.getElementById("inputName").value
    win.getElementById("title").innerHTML = "Hello: " + name


<!DOCTYPE html>
   <head lang="en">
      <meta charset="UTF-8">
      <h1 id="title">Hello: </h1>
      <input id="inputName">
      <button id="submitName" onclick="{Neutron.event(setName)}">Submit</button>
      <!-- OR-->
      {Neutron.Button(win, content="Submit", onclick=Neutron.event(setName))}

Neutron is still in it’s alpha and phase and many feature are not out yet, but it is important to know that the examples shown in this repo are always working.


As stated before Neutron allows developers to integrate CSS. Simply enter the CSS file’s path in the Neutron.Window() object and then use CSS as you normally would.

Another example:

import Neutron

win = Neutron.Window("Example", css="def.css")

def setName():
    win.getElementById("title").innerHTML = "Hello world!"

Neutron.Header(win, id="title", content="Hello")
Neutron.Button(win, id="submit", content="Submit", onclick=Neutron.event(setName))


Contributions are welcome and in need! You can easily get started contributing by reading


At the moment there is no straight forward installation method. It is always possible to just clone the repo.


View Github