PageRenderTime 82ms CodeModel.GetById 19ms 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
Possible License(s): LGPL-2.1, Apache-2.0
  1. import DOM
  2. class UIObject:
  3. def getElement(self):
  4. return self.element
  5. def setElement(self, element):
  6. self.element = element
  7. def setStyleName(self, style):
  8. DOM.setAttribute(self.element, "className", style)