code: def register_frame(self, frame):
          
          self._frame = frame
          self.string_len = wcswidth if self._frame.canvas.unicode_aware else len
docs: Register the Frame that owns this Widget.
  
          :param frame: The owning Frame.