def doClose(self, *event):
        """Close the current file and clear the screen"""
        if self.db:
            close_zodb(self.db)
            self.db = None
        if self.root:
            self.db_layout_tree.DeleteAllItems()
        self.txtType.SetLabel('')
        self.txtData.Clear()
Close the current file and clear the screen
recipes/Python/409012_A_Simple_ZODB_viewer_in_wxPython/recipe-409012.py