code: def register_view(self, view):
          
  
          # connects the signals:
          self.view['main_window'].connect('destroy', gtk.main_quit)
          
          # initializes the text of label:
          self.view.set_text("%d" % self.model.counter)
          return
docs: This method is called by the view, that calls it when it is
          ready to register itself. Here we connect the 'pressed' signal
          of the button with a controller's method. Signal 'destroy'
          for the main window is handled as well.