arelle.ViewWinGrid¶
See COPYRIGHT.md for copyright information.
Module Contents¶
Classes¶
API¶
- class arelle.ViewWinGrid.ViewGrid(modelXbrl: arelle.ModelXbrl.ModelXbrl | None, tabWin: tkinter.ttk.Notebook, tabTitle: str, hasToolTip: bool = False, lang: str | None = None)¶
Bases:
arelle.ViewWinPane.ViewPaneInitialization
- motion(*args: Any) None¶
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: str | None, colId: str = '#0') None¶
- contextMenu() tkinter.Menu¶