• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

amol-mandhane/htmlPy: htmlPy is a wrapper around PySide's QtWebKit library. ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

amol-mandhane/htmlPy

开源软件地址:

https://github.com/amol-mandhane/htmlPy

开源编程语言:

Python 90.9%

开源软件介绍:

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):

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>

Code

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




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap