title: How to use the same widget twice in pygtk?
body: <p>This doesn't work well:</p>
  
  <pre><code>    image_log = gtk.Image()
      image_log.set_from_file("test.png")
  
      self.out_button = gtk.Button()
      self.out_button.add(image_log)
  
      self.err_button = gtk.Button()
      self.err_button.add(image_log)
  
      another_box.pack_start(self.out_button, False)
      another_box.pack_start(self.err_button, False)
  </code></pre>
  
  <p>The problem is, image_log is used twice and GTK doesn't like it. Is there some .copy() method? Or should I just use plain vanilla deepcopy?</p>
  
  <p><strong>EDIT:</strong> Looks like there is no default way to clone objects in GTK. Factory will do the trick in this case.</p>
  
  <p>GTK warning:</p>
  
  <pre><code>app/gui.py:248: GtkWarning: gtk_box_pack: assertion `child-&gt;parent == NULL' failed
  hbox_errlog.pack_start(image_log)
  </code></pre>