Commits

Ronny Pfannschmidt committed 703feb5

file fail views shouldnt destroy on close

Comments (0)

Files changed (1)

pytest_gui/gtkui/filefails.py

 '''
 detailed information on thefailures within a file
 '''
-
+import gtk
 from pygtkhelpers.ui.objectlist import ObjectList, Column
 from pygtkhelpers.delegates import WindowView
 
         self.collection = ObjectList([
             Column('nodeid', data_func=lambda x:x.split('::', 1)[-1]),
         ])
+        self.collection.show()
+        #XXX: a paned
+        self.widget.add(self.collection)
+        
+        self.widget.connect('delete_event', gtk.Widget.hide_on_delete)
 
     def set_entry(self, fileentry):
         if self.fileentry:
         if fileentry:
             fileentry.view = self
             self.collection.extend(fileentry.reports)
+