I don't know, and since the code you posted doesn't run I can't find out. >>> self.IMpos =0 Traceback (most recent call last): File "<stdin>", line 1, in ? NameError: name 'self' is not defined Jeff