一个不错的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"

你可能感兴趣的:(JavaScript,框架,Web,python,idea)