Git Product home page Git Product logo

pratheeraja / htmlpy Goto Github PK

View Code? Open in Web Editor NEW

This project forked from amol-mandhane/htmlpy

0.0 2.0 0.0 105 KB

htmlPy is a wrapper around PySide's QtWebKit library. It helps with creating beautiful GUIs using HTML5, CSS3 and Javascript for standalone Python applications.

Home Page: http://amol-mandhane.github.io/htmlPy/

License: MIT License

Python 90.91% JavaScript 5.51% HTML 3.58%

htmlpy's Introduction

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.

htmlpy's People

Contributors

amol-mandhane avatar

Watchers

James Cloos avatar Pratheesh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.