diff -r 6bb708a2265f -r 61eb8a9b53a6 mosaic/plugin.py --- a/mosaic/plugin.py Mon Jan 16 22:56:52 2012 +0100 +++ b/mosaic/plugin.py Mon Jan 16 22:58:01 2012 +0100 @@ -59,67 +59,73 @@ positions = [] x = 80 - y = 50 + y = 40 for i in range(1, 10): positions.append([x, y]) x += windowWidth x += ((width - 160) - (windowWidth * 3)) / 2 if (i == 3) or (i == 6): - y = y + windowHeight + 20 + y = y + windowHeight + 40 x = 80 skin = "" - skin += """""" % (width, height) + skin += """""" % (width, height) skin += """""" - skin += """""" % (positions[0][0]-2, positions[0][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[1][0]-2, positions[1][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[2][0]-2, positions[2][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[3][0]-2, positions[3][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[4][0]-2, positions[4][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[5][0]-2, positions[5][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[6][0]-2, positions[6][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[7][0]-2, positions[7][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[8][0]-2, positions[8][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[0][0], positions[0][1]-18, windowWidth-4) - skin += """""" % (positions[1][0], positions[1][1]-18, windowWidth-4) - skin += """""" % (positions[2][0], positions[2][1]-18, windowWidth-4) - skin += """""" % (positions[3][0], positions[3][1]-18, windowWidth-4) - skin += """""" % (positions[4][0], positions[4][1]-18, windowWidth-4) - skin += """""" % (positions[5][0], positions[5][1]-18, windowWidth-4) - skin += """""" % (positions[6][0], positions[6][1]-18, windowWidth-4) - skin += """""" % (positions[7][0], positions[7][1]-18, windowWidth-4) - skin += """""" % (positions[8][0], positions[8][1]-18, windowWidth-4) - skin += """""" % (positions[0][0]-2, positions[0][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[1][0]-2, positions[1][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[2][0]-2, positions[2][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[3][0]-2, positions[3][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[4][0]-2, positions[4][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[5][0]-2, positions[5][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[6][0]-2, positions[6][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[7][0]-2, positions[7][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[8][0]-2, positions[8][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[0][0]-2, positions[0][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[1][0]-2, positions[1][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[2][0]-2, positions[2][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[3][0]-2, positions[3][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[4][0]-2, positions[4][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[5][0]-2, positions[5][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[6][0]-2, positions[6][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[7][0]-2, positions[7][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[8][0]-2, positions[8][1]-1, windowWidth, windowHeight) - skin += """""" % (positions[0][0]-2, positions[0][1]-1, windowWidth) - skin += """""" % (positions[1][0]-2, positions[1][1]-1, windowWidth) - skin += """""" % (positions[2][0]-2, positions[2][1]-1, windowWidth) - skin += """""" % (positions[3][0]-2, positions[3][1]-1, windowWidth) - skin += """""" % (positions[4][0]-2, positions[4][1]-1, windowWidth) - skin += """""" % (positions[5][0]-2, positions[5][1]-1, windowWidth) - skin += """""" % (positions[6][0]-2, positions[6][1]-1, windowWidth) - skin += """""" % (positions[7][0]-2, positions[7][1]-1, windowWidth) - skin += """""" % (positions[8][0]-2, positions[8][1]-1, windowWidth) + skin += """""" % (positions[0][0]-2, positions[0][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[1][0]-2, positions[1][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[2][0]-2, positions[2][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[3][0]-2, positions[3][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[4][0]-2, positions[4][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[5][0]-2, positions[5][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[6][0]-2, positions[6][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[7][0]-2, positions[7][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[8][0]-2, positions[8][1]+1, windowWidth, windowHeight) - skin += """""" % (height-50, windowWidth) - skin += """ - """ % (positions[2][0] ,height-50, windowWidth) + skin += """""" % (positions[0][0]-2, positions[0][1]-18, windowWidth-4) + skin += """""" % (positions[1][0]-2, positions[1][1]-18, windowWidth-4) + skin += """""" % (positions[2][0]-2, positions[2][1]-18, windowWidth-4) + skin += """""" % (positions[3][0]-2, positions[3][1]-18, windowWidth-4) + skin += """""" % (positions[4][0]-2, positions[4][1]-18, windowWidth-4) + skin += """""" % (positions[5][0]-2, positions[5][1]-18, windowWidth-4) + skin += """""" % (positions[6][0]-2, positions[6][1]-18, windowWidth-4) + skin += """""" % (positions[7][0]-2, positions[7][1]-18, windowWidth-4) + skin += """""" % (positions[8][0]-2, positions[8][1]-18, windowWidth-4) + + skin += """""" % (positions[0][0]-2, positions[0][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[1][0]-2, positions[1][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[2][0]-2, positions[2][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[3][0]-2, positions[3][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[4][0]-2, positions[4][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[5][0]-2, positions[5][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[6][0]-2, positions[6][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[7][0]-2, positions[7][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[8][0]-2, positions[8][1]+1, windowWidth, windowHeight) + + # Playing video moving pictures + skin += """""" % (positions[0][0]-2, positions[0][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[1][0]-2, positions[1][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[2][0]-2, positions[2][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[3][0]-2, positions[3][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[4][0]-2, positions[4][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[5][0]-2, positions[5][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[6][0]-2, positions[6][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[7][0]-2, positions[7][1]+1, windowWidth, windowHeight) + skin += """""" % (positions[8][0]-2, positions[8][1]+1, windowWidth, windowHeight) + + # Zweite Zeile Sendung + skin += """""" % (positions[0][0]-2, positions[0][1]-1, windowWidth) + skin += """""" % (positions[1][0]-2, positions[1][1]-1, windowWidth) + skin += """""" % (positions[2][0]-2, positions[2][1]-1, windowWidth) + skin += """""" % (positions[3][0]-2, positions[3][1]-1, windowWidth) + skin += """""" % (positions[4][0]-2, positions[4][1]-1, windowWidth) + skin += """""" % (positions[5][0]-2, positions[5][1]-1, windowWidth) + skin += """""" % (positions[6][0]-2, positions[6][1]-1, windowWidth) + skin += """""" % (positions[7][0]-2, positions[7][1]-1, windowWidth) + skin += """""" % (positions[8][0]-2, positions[8][1]-1, windowWidth) + + skin += """""" % (height-40, windowWidth) + skin += """ + """ % (positions[2][0] ,height-40, windowWidth) def __init__(self, session, services): Screen.__init__(self, session) @@ -252,7 +258,7 @@ # Grab video if not self.Console: self.Console = Console() - self.consoleCmd = "%s -v -r %d -l -j 100 %s" % (grab_binary, self.windowWidth, grab_picture) + self.consoleCmd = "%s -v -r %d -j 100 %s" % (grab_binary, self.windowWidth, grab_picture) self.Console.ePopen(self.consoleCmd, self.showNextScreenshot) def showNextScreenshot(self, result, retval, extra_args):