def setWidgetPosition(self, widget, left, top):
        self.checkWidgetParent(widget)

        h = widget.getElement()
        if (left == -1) and (top == -1):
            DOM.setStyleAttribute(h, "left", "")
            DOM.setStyleAttribute(h, "top", "")
            DOM.setStyleAttribute(h, "position", "static")
        else:
            DOM.setStyleAttribute(h, "position", "absolute")
            DOM.setStyleAttribute(h, "left", "%dpx" % left)
            DOM.setStyleAttribute(h, "top", "%dpx" % top)
dataset/ETHPy150Open anandology/pyjamas/library/gwt/ui/AbsolutePanel.py/AbsolutePanel.setWidgetPosition/original