coalispr.tk_gui.gui_widgets.cli

Classes

Cli_menu

Create a common menu in line with CLI-parser.

Main_frame

Presents panels for setting command and help info

Command_frames

Organizer for building sub-frames with options for each command.

Module Contents

class coalispr.tk_gui.gui_widgets.cli.Cli_menu(parent, main)

Bases: ttkbootstrap.Frame

Create a common menu in line with CLI-parser.

selected_item
main
load_command()
class coalispr.tk_gui.gui_widgets.cli.Main_frame(master, style='lefttab.TNotebook')

Bases: ttkbootstrap.Notebook

Presents panels for setting command and help info

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

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

set_help_fields(key)
create_runframe()

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

set_run_fields(key)
class coalispr.tk_gui.gui_widgets.cli.Command_frames(master)

Organizer for building sub-frames with options for each command.

command

name of command to build

Type:

str

descriptions

information also used for building CLI commands parser.

Type:

dict

init_frame

specific frama for dealing with ‘init’ command

Type:

ttk.Frame

prog_frame

specific frama for dealing with program command

Type:

ttk.Frame

master
command_frames
rest_commands
create_init_frame()
create_prog_frame()