def applySkin(self): posX = 0 posY = 0 width = 400; height = 240; dsize = self.desktop.size() if self.desktop is not None: offset = 50 posX = dsize.width() - (width+offset) posY = 15 self.skinAttributes.append(("position", "%s,%s"%(posX, posY))) Screen.applySkin(self)
def applySkin(self): attribs = [ ] if self.skinAttributes is not None: for (attrib, value) in self.skinAttributes: if attrib == "padding": self.padding = int(value) elif attrib == "spacing": self.spacing = int(value) else: attribs.append((attrib, value)) self.skinAttributes = attribs return Screen.applySkin(self)
def applySkin(self): attribs = [] if self.skinAttributes is not None: for (attrib, value) in self.skinAttributes: if attrib == "padding": self.padding = int(value) elif attrib == "spacing": self.spacing = int(value) else: attribs.append((attrib, value)) self.skinAttributes = attribs return Screen.applySkin(self)