Test Syntax Highlighting Pluggin

Just a test post to see if Python code highlighting works on this server. Yep! For more information on the syntax highlighting pluggin jump on over to Scott Yang’s Playground and have fun.

Here is some code from the NuFox home page that shows how simple it is to create a XUL window.


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

    def __init__(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"

Now I’ll try to get my webhost to agree to set up a test area for me with Twisted, Nevow and NuFox installed. Wish me luck.

Leave a Reply