一个不错的web开发组合

Twisted + Nevow  在python web开发上具有一定的优势,Nevow是一种比较新的CGI框架,而最近又有nufox( nevow+xul=nufox)出现,它是基于Nevow的技术,更加新颖,打算抽空学习一下。

引用:

Nufox is a python, XUL toolkit written ontop of the Twisted Networking Framework and Nevow.

The idea is that you should be able to write server-side cross platform XUL applications without writing XUL markup, with little javascript, all from the comfort of python. Nufox is 0.1 at the moment and is rapidly evolving. If you're interested in helping out join the Mailing List and checkout the source.


from nufox import xul
class MyPage(xul.XULPage):

def setup(self):
self.window = xul.Window(title="nufox!", width=400, height=400)
self.button = xul.Button(label="Push Me")
self.button.addHandler('oncommand', self.pushed)
self.window.append(self.button)

def pushed(self):
print "You pushed me"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值