引用:
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"
4606




被折叠的 条评论
为什么被折叠?



