--- AppInstall/AppInstall.py.ORI 2006-05-30 12:56:03.000000000 +0200 +++ AppInstall/AppInstall.py 2006-05-30 14:06:53.000000000 +0200 @@ -150,6 +150,9 @@ # this holds the filenames of the generated html pages self.info_pages = {} + # generate blank page + self.blank_page = self.generateBlank() + # sensitive stuff self.button_apply.set_sensitive(False) @@ -993,6 +996,7 @@ # *and* they shouldn't be created on the FS at all! for file in self.info_pages.values(): os.remove(file) + os.remove(self.blank_page) os.remove(self.intro_page) os.remove(self.failedSearchPage) gtk.main_quit() @@ -1179,6 +1183,8 @@ iter = treeview.get_model().get_iter(path) (type, name, item) = treeview.get_model()[iter] self.treeview_packages.set_model(item.applications) + #self.browser.loadUri('about:blank') + self.browser.loadUri("file://" + self.blank_page) self.menu._refilter() def on_treeview_packages_cursor_changed(self, treeview): @@ -1268,9 +1274,27 @@ file.flush() return filename + def generateBlank(self): + text = """ + + + + + + + + +""" + filename = tempfile.NamedTemporaryFile().name + file = open(filename, 'w') + file.write(text) + file.flush() + return filename - - # Entry point for testing in source tree if __name__ == '__main__':