<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_widget(self, canvas_w):
 """Call this method with the widget that will be used for the display. """

        self.logger.debug("set widget canvas_w=%s" % canvas_w)
        self.pgcanvas = canvas_w