

def setViewTupleChildMenuItem(self, event=None):
    if ((event is not None) and (self.menu is not None)):
        menuRow = self.treeView.identify_row(event.y)
        modelFact = self.modelXbrl.modelObject(menuRow)
        if ((modelFact is not None) and modelFact.isTuple):
            self.menu.entryconfigure(0, state='normal')
            self.viewedTupleId = menuRow
        else:
            self.menu.entryconfigure(0, state='disabled')
            self.viewedTupleId = None

dataset/ETHPy150Open Arelle/Arelle/arelle/ViewWinFactList.py ViewFactList.setViewTupleChildMenuItem/original