Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://amol-mandhane.github.io/htmlPy
htmlPy is a wrapper around PySide's QtWebKit library. It helps with creating beautiful GUIs using HTML5, CSS3 and Javascript for standalone Python applications.
https://amol-mandhane.github.io/htmlPy
css gui html javascript python
Last synced: 11 days ago
JSON representation
htmlPy is a wrapper around PySide's QtWebKit library. It helps with creating beautiful GUIs using HTML5, CSS3 and Javascript for standalone Python applications.
- Host: GitHub
- URL: https://amol-mandhane.github.io/htmlPy
- Owner: amol-mandhane
- License: mit
- Archived: true
- Created: 2013-06-13T16:17:07.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-06-15T11:51:19.000Z (over 6 years ago)
- Last Synced: 2024-12-06T19:12:33.793Z (17 days ago)
- Topics: css, gui, html, javascript, python
- Language: Python
- Homepage:
- Size: 51.8 KB
- Stars: 468
- Watchers: 31
- Forks: 86
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE.txt
Awesome Lists containing this project
- awesomecode - Examples and documentation.
README
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 htmlPyclass BackEnd(htmlPy.Object):
def __init__(self, app):
super(BackEnd, self).__init__()
self.app = app@htmlPy.Slot()
def say_hello_world(self):
self.app.html = u"Hello, world"
GUI
main.py
import htmlPy
from back_end import BackEndapp = htmlPy.AppGUI(
title=u"Sample application")
app.maximized = True
app.template_path = "."
app.bind(BackEnd(app))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.