arelle.ViewWinGrid
¶
See COPYRIGHT.md for copyright information.
Module Contents¶
Classes¶
API¶
- class arelle.ViewWinGrid.ViewGrid(modelXbrl, tabWin, tabTitle, hasToolTip=False, lang=None)¶
Bases:
arelle.ViewWinPane.ViewPane
Initialization
- motion(*args)¶
tvColId = self.gridBody.identify_column(args[0].x) tvRowId = self.gridBody.identify_row(args[0].y) if tvColId != self.toolTipColId or tvRowId != self.toolTipRowId: self.toolTipColId = tvColId self.toolTipRowId = tvRowId newValue = None if tvRowId and len(tvRowId) > 0: try: col = int(tvColId[1:]) if col == 0: newValue = self.gridBody.item(tvRowId,”text”) else: values = self.gridBody.item(tvRowId,”values”) if col <= len(values): newValue = values[col - 1] except ValueError: pass self.setToolTip(newValue, tvColId)
- setToolTip(text, colId='#0')¶
- contextMenu()¶