pyopticon._system._show_hide_widget module

class pyopticon._system._show_hide_widget.ShowHideWidget(parent_dashboard)

Bases: object

This widget contains buttons to show/hide the console (on PC’s), show/hide all the other widgets’ serial controls, print automation help to the console, and open help/tutorials.

Parameters:

parent (pyopticon.dashboard.Dashboard) – The dashboard to which this widget will be added.

get_frame()

Get the tkinter frame on which this object is drawn.

Returns:

The widget’s tkinter frame

Return type:

tkinter.Frame

_toggle_console()

On a PC, toggles whether the console is visible; on a Mac, opens a message box with instructions to open a console manually.

_toggle_serial_shown()

Toggles whether the serial port dropdowns and serial statuses are visible on all widgets that have them.

_documentation()

Open a more comprehensive document/site for support using this package.

_print_automation_help()

Print a crash course in the syntax for automation scripts, as well as a list of widgets’ nicknames and automatable fields.