Skip to content
htmlPy is a wrapper around PySide's QtWebKit library. It helps with creating beautiful GUIs using HTML5, CSS3 and Javascript for standalone Python applications.
Branch: master
Clone or download
Pull request Compare This branch is 1 commit behind amol-mandhane:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
htmlPy
tests
.gitignore
.travis.yml
CHANGES.txt
LICENSE.txt
MANIFEST
MANIFEST.in
README.md
requirements.txt
setup.py

README.md

htmlPy

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.

Documentation

The documentation is hosted at http://htmlpy.readthedocs.org/. It contains installation instructions, tutorials, reference guide, compatibility details, and more.

Example

Back-end
back_end.py

            
import htmlPy

class BackEnd(htmlPy.Object):

@htmlPy.Slot()
def say_hello_world(self):
    from main import app
    app.html = u"Hello, world"
                </code>

            </pre>
    </td>
    <td>
    <h3>GUI <br> <small class="typewriter">main.py</small></h3>
        <pre>
            <code class="language-python">

import htmlPy from back_end import BackEnd

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

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

if name == "main": app.start()

Front-end
index.html


<html>
<body>
<a
href="BackEnd.say_hello_world"
data-bind="true">
Click to say "Hello, world"
</a>
</body>
</html>

Code

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

You can’t perform that action at this time.