Reference 〉Hook

CpanelAboveParams( GUI gui, str|None bg )

Allows low-level access to either the Tkinter or the Jupyter control panel. Allows the insertion of widgets – either a Tkinter frame (or any subclass of it) or an Ipywidget, as appropriate – above the global parameters panel, as shown by the red stripe.

Required Parameters

  • gui GUI

    The GUI object.

  • bg str|None

    The background color to maintain the alternating striping of the control panel in Tkinter, either '#FFFFFF' or '#EEEEEE'. None if using Jupyter.

Expected Return Value tkinter.Frame|Ipywidgets.DOMWidget

A Tkinter Frame widget attached to gui.parent if using the Tkinter frontend, or a displayable Ipython widget if using Jupyter.

Notes and Examples

  1. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.

History