iXBRLViewerPlugin.ui¶
Module Contents¶
Classes¶
Base class for shared dialog configuration between settings and save dialogs |
|
Dialog for saving a viewer instance. Initializes with (but doesn’t overwrite) default settings configured in the settings dialog. |
|
Dialog for saving default viewer settings. |
Data¶
API¶
- iXBRLViewerPlugin.ui._: arelle.typing.TypeGetText¶
None
- iXBRLViewerPlugin.ui.UNSET_SCRIPT_URL = <Multiline-String>¶
- class iXBRLViewerPlugin.ui.BaseViewerDialog(cntlr: arelle.CntlrWinMain.CntlrWinMain)¶
Bases:
tkinter.ToplevelBase class for shared dialog configuration between settings and save dialogs
Initialization
Construct a toplevel widget with the parent MASTER.
Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, menu, relief, screen, takefocus, use, visual, width.
- property _cntlrConfig: dict[str, Any]¶
- addButtons(frame: tkinter.ttk.Frame, x: int, y: int) int¶
Adds base buttons (OK, Cancel) to
framestarting at columnxon rowy. Can be extended to add buttons before or after base buttons.- Parameters:
frame – Frame to add buttons to
x – Grid column to start at
y – Grid row to add buttons on
- Returns:
Column
xthat the last button was added on
- addFields(frame: tkinter.ttk.Frame, y: int) int¶
Adds base fields to
framestarting on rowy. Can be extended to add fields before or after base fields.- Parameters:
frame – Frame to add fields to
y – Grid row to add buttons on
- Returns:
Row
ythat the last field was added on
- close(event: tkinter.Event[tkinter.Misc] | None = None) None¶
Closes the dialog.
- confirm(event: tkinter.Event[tkinter.Misc] | None = None) None¶
Closes the dialog after calling
onConfirm.
- abstractmethod getTitle() str¶
- Returns:
Title of dialog window
- onConfirm() None¶
Actions to confirm when “OK” button or “Enter” key are pressed. Window is closed immediately after.
- render() None¶
Performs the arrangement and rendering if dialog fields and buttons. Process control is held here via
wait_windowuntil the dialog is closed.
- copyScript() bool¶
- features() list[str]¶
- scriptUrl() str¶
- class iXBRLViewerPlugin.ui.SaveViewerDialog(cntlr: arelle.CntlrWinMain.CntlrWinMain)¶
Bases:
iXBRLViewerPlugin.ui.BaseViewerDialogDialog for saving a viewer instance. Initializes with (but doesn’t overwrite) default settings configured in the settings dialog.
Initialization
Construct a toplevel widget with the parent MASTER.
Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, menu, relief, screen, takefocus, use, visual, width.
- addFields(frame: tkinter.ttk.Frame, y: int) int¶
Adds filename and zip output fields before other settings.
- browseForFile() None¶
- getTitle() str¶
- onConfirm() None¶
Saves output-specific config values before triggering instance to be saved.
- filename() str¶
- zipViewerOutput() bool¶
- class iXBRLViewerPlugin.ui.SettingsDialog(cntlr: arelle.CntlrWinMain.CntlrWinMain)¶
Bases:
iXBRLViewerPlugin.ui.BaseViewerDialogDialog for saving default viewer settings.
Initialization
Construct a toplevel widget with the parent MASTER.
Valid resource names: background, bd, bg, borderwidth, class, colormap, container, cursor, height, highlightbackground, highlightcolor, highlightthickness, menu, relief, screen, takefocus, use, visual, width.
- addButtons(frame: tkinter.ttk.Frame, x: int, y: int) int¶
Adds reset button before OK button
- addFields(frame: tkinter.ttk.Frame, y: int) int¶
Adds launch-on-load checkbox above other settings
- getTitle() str¶
- onConfirm() None¶
Saves configuration values for saving viewers as well as global viewer behavior settings
- reset(event: tkinter.Event[tkinter.Misc] | None = None) None¶
Resets dialog variable values to default values