title: How to modify a textview from a different process ?
body: <p>So I am making a GUI to get tweets. I have made an event box which would take the signal and change the textview.
  I am using multiprocessing to change the textview, but it just doesn't change. I even tried changing the size of the window. But nothing changes. I can get textbuffer of the textview but can not change it.</p>
  
  <pre><code>import pygtk
  pygtk.require('2.0')
  import gtk
  from multiprocessing import Process
  
  class multi:
      def __init__(self):
          self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
          self.window.set_size_request(800,400)
          self.window.set_title("Twitter Box")
          self.window.set_border_width(4)
          self.window.connect("destroy", self.close_application)
  
          self.vbox1 = gtk.EventBox()
          self.vbox1.set_size_request(750,450)
          self.vbox1.connect('leave_notify_event',self.go_multi)
          self.window.add(self.vbox1)
          self.vbox1.show()
  
          self.tweetview = gtk.TextView()
          self.tweetbuffer = self.tweetview.get_buffer()
          self.tweetbuffer.set_text('Why not working?')
          self.vbox1.add(self.tweetview)
          self.tweetview.show()
  
          self.window.show()
  
      def close_application(self, widget):
          gtk.main_quit()
  
      def go_multi(self, widget, data=None):
          p = Process(target = self.change_textview)
          p.start()
          p.join()
  
      def change_textview(self):
          print 'changing text'
          startiter = self.tweetbuffer.get_start_iter()
          enditer = self.tweetbuffer.get_end_iter()
          text = self.tweetbuffer.get_text(startiter, enditer)
          print text
          if text:
              self.tweetbuffer.set_text('Changed....')
          else:
              self.tweetbuffer.set_text('')
          return 
  
  def main():
      multi()
      gtk.main()
  
  if __name__ == '__main__':
      main()
  </code></pre>
  
  <p>I am making GUI to get tweets. Sometimes it takes really long to retrieve timeline due to slow connectivity and the GUI freezes. So, I wanted to make it such that, it would create a process and it will fetch the timeline and set tweetbuffer. But I am unable to set text in tweetbuffer.</p>