def create_historytab(self):
        historyfile = os.path.join(self.fileops.configdir, "history.txt")

        try:
            with codecs.open(historyfile, encoding="utf-8") as f:
                data = f.read()
        except __HOLE__:
            historyfile = os.path.join(self.basedir, "data/history.txt")
            with codecs.open(historyfile, encoding="utf-8") as f:
                data = f.read()

        self.historymodel = history.HistoryTreeModel(data, self)
        self.historytree.setModel(self.historymodel)
dataset/ETHPy150Open mikar/demimove/demimove/gui.py/DemiMoveGUI.create_historytab