coalispr.tk_gui.gui_widgets.menu_main

Attributes

Classes

Cli_menu

Create a common menu in line with CLI-parser.

Main_frame

Ttk Notebook widget manages a collection of windows and displays

Command_frames

Module Contents

coalispr.tk_gui.gui_widgets.menu_main.logger
class coalispr.tk_gui.gui_widgets.menu_main.Cli_menu(parent)

Bases: ttkbootstrap.Frame

Create a common menu in line with CLI-parser.

selected_item
Type:

tk.StringVa

parent
Type:

ttk.Frame

selected_item
parent
load_command(set_command=None)

Set contents of Main_frame instance via parent by means of selected radio button (formatted as a ttkbootstrap outline.Toolbutton).

Parameters:

set_command (str) – From tk.StringVar

class coalispr.tk_gui.gui_widgets.menu_main.Main_frame(master, style='lefttab.TNotebook')

Bases: ttkbootstrap.Notebook

Ttk Notebook widget manages a collection of windows and displays a single one at a time. Each child window is associated with a tab, which the user may select to change the currently-displayed window.

TAB_LABELS = ['run', 'help']
DESCRIPTION = ''
USAGE = ''
HELP = ''
h_tab
r_tab
create_helpframe()

Show command info from ‘description’, ‘usage’ and ‘help’ from COMMAND_DESCRIPTIONS.

Return type:

A ttk.Frame with labels and text boxes with information.

set_help_fields(key)

For set command: add associated ‘description’, ‘usage’ and ‘help’ texts to the designated areas.

Parameters:

key (str) – String denoting the picked command.

create_runframe()

Compose commands using parameters loaded from COMMAND_DESCRIPTIONS. store frames and bring to the top when needed.

set_run_fields(key)

Pick frame from run_frames_dict to be shown.

Parameters:

key (str) – String denoting the picked command.

class coalispr.tk_gui.gui_widgets.menu_main.Command_frames(master)
master
command_frames
rest_commands
create_prog_frame()