The last time Hackerfall tried to access this page, it returned a not found error. A cached version of the page is below, or click here to continue anyway

htmlPy · HTML5-CSS3-Javascript based GUI library in Python


HTML5-CSS3-Javascript based GUI library in Python

htmlPy is a wrapper around PySide's QtWebKit library. It helps with creating beautiful GUIs using HTML5, CSS3 and Javascript for standalone Python applications. It is built on Qt which makes it highly customizable and cross-platform. htmlPy is compatible with both Python2 and Python3. It can be used with any python library or environment like django, flask, scipy, virtualenv etc. You can use front-end libraries and frameworks like bootstrap, jQuery, jQuery UI etc. and create GUIs for your applications in no time.


The documentation is hosted at It contains installation instructions, tutorials, reference guide, compatibility details, and more.



import htmlPy

class BackEnd(htmlPy.Object):

    def __init__(self, app):
        super(BackEnd, self).__init__() = app

    def say_hello_world(self): = u"Hello, world"


import htmlPy
from back_end import BackEnd

app = htmlPy.AppGUI(
    title=u"Sample application")
app.maximized = True
app.template_path = "."

app.template = ("index.html", {})

if __name__ == "__main__":

Front-end index.html

      Click to say "Hello, world"


htmlPy source code is hosted on GitHub, tested on Travis CI and released on PyPI.

Published with GitHub Pages

Continue reading on