def drawComms(self, contactID, msg): if contactID not in self.comms: self.comms[contactID] = msg gobject.timeout_add(750, self.removeComm, contactID) self.window.invalidate_rect(self.allocation, False)