PageRenderTime 116ms CodeModel.GetById 112ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/pyjs/tests/test002.py

http://pyjamas.googlecode.com/
Python | 12 lines | 8 code | 4 blank | 0 comment | 0 complexity | 1ef711bcd210ccf87f4dc709414b9b75 MD5 | raw file
 1import DOM
 2
 3class UIObject:
 4
 5    def getElement(self):
 6        return self.element
 7
 8    def setElement(self, element):
 9        self.element = element
10
11    def setStyleName(self, style):
12        DOM.setAttribute(self.element, "className", style)