Loading repository data…
Loading repository data…
amol-mandhane / repository
htmlPy is a wrapper around PySide's QtWebKit library. It helps with creating beautiful GUIs using HTML5, CSS3 and Javascript for standalone Python applications.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
class 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"
</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))
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>