self["arrowup"] = MovingPixmap()
self["arrowup2"] = MovingPixmap()
+ config.misc.rcused = ConfigInteger(default = 1)
+
self.rcheight = 500
self.rcheighthalf = 250
self.onShown.append(self.initRc)
def initRc(self):
- self["rc"].setPixmapNum(config.misc.rcused.value)
-
+ self["rc"].setPixmapNum(config.misc.rcused.value)
def readPositions(self):
tree = ElementTree(file = resolveFilename(SCOPE_SKIN, "rcpositions.xml"))
for rc in rcs:
id = int(rc.attrib["id"])
self.rcs[id] = {}
- print "id:", id
for key in rc:
name = key.attrib["name"]
pos = key.attrib["pos"].split(",")
- print "name:", name
- print "pos:", pos
self.rcs[id][name] = (int(pos[0]), int(pos[1]))
def getSelectPic(self, pos):
for selectPic in self.selectpics:
if pos[1] <= selectPic[0]:
- print "pos[1]:", pos[1]
- print "selectPic[0]:", selectPic[0]
return (selectPic[1], selectPic[2])
return None
break
if selectPic is not None:
print "selectPic:", selectPic
- self[selectPic].show()
self[selectPic].moveTo(rcpos[0] + pos[0] + selectPics[1][0], rcpos[1] + pos[1] + selectPics[1][1], 1)
self[selectPic].startMoving()
+ self[selectPic].show()
self.selectedKeys.append(selectPic)
def clearSelectedKeys(self):
for selectPic in self.selectpics:
for pic in selectPic[1]:
self[pic].hide()
-
\ No newline at end of file