#!/usr/bin/env python import xbmc, xbmcgui from time import sleep from Animation import linear,bezier ACTION_SELECT_ITEM = 7 ACTION_PARENT_DIR = 9 ACTION_PREVIOUS_MENU = 10 class myWindow(xbmcgui.Window): def __init__(self): self.pic = xbmcgui.ControlImage(50,50,32,26,"Q:\\scripts\\animation\\vader.png") self.addControl(self.pic) def onAction(self, action): if action == ACTION_PREVIOUS_MENU: self.close() if action == ACTION_SELECT_ITEM: linear(self.pic,50,50,200,200,6) if action == ACTION_PARENT_DIR: bezier(self.pic,50,50,50,200,200,50,200,200,10) a = myWindow() a.doModal() del a