def METHOD_NAME(self, p, *args):
    if self.picture is None:
        self.generatePicture()
    if getConfigOption('antialias') is True:
        p.setRenderHint(p.RenderHint.Antialiasing)
    self.picture.play(p)