Alterative method for deprecating Canvas.events.paint; should catch more cases.
Also rearranged Canvas.__init__ to avoid exception in Canvas.__repr__