code: def refresh_config(self):
          '''
          __NB__ This *must* be called from a *different* thread than the GUI/Gtk thread.
          '''
          if self.config_requested is not None:
              while self.video_view.xid is None:
                  print 'waiting for GUI...'
                  time.sleep(1)
              self.pipeline_manager.set_config(self.video_view.xid,
                                               self.config_requested,
                                               record_path=self.record_path)
              self.config_requested = Nonf refresh_config(self):
          '''
          __NB__ This *must* be called from a *different* thread than the GUI/Gtk thread.
          '''
          if self.config_requested is not None:
              while self.video_view.xid is None:
                  print 'waiting for GUI...'
                  time.sleep(1)
              self.pipeline_manager.set_config(self.video_view.xid,
                                               self.config_requested,
                                               record_path=self.record_path)
              self.config_requested = None
docs: __NB__ This *must* be called from a *different* thread than the GUI/Gtk thread.