coalispr.tk_gui.tk_coalispr

Attributes

Classes

Coalispr_app

Present gui to run program.

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.

Functions

main()

Module Contents

coalispr.tk_gui.tk_coalispr.logger
coalispr.tk_gui.tk_coalispr.thisfile = ''
coalispr.tk_gui.tk_coalispr.p
class coalispr.tk_gui.tk_coalispr.Coalispr_app(title=PROG_DESCRIPTION, size=(TKWIDTH, TKHEIGHT))

Bases: ttkbootstrap.Window

Present gui to run program.

title

Window title

Type:

str

size

with, height

Type:

tuple

custom_theme
resizable = (True, True)
main
menu
sizegrip
set_fonts()
set_style()

Set some specific font sizes. Only effective when called after an instance of this app has been created; calling from __init__() has been tried, did not work.

class coalispr.tk_gui.tk_coalispr.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.tk_coalispr.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.tk_coalispr.Command_frames(master)

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

call

function to run with list of arguments generated

Type:

function object

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

command_frames
rest_commands
master
descriptions
create_options_frame(command)
create_init_frame()
create_prog_frame()
create_command_args()

Something like:

args = argparse.Namespace(
    command='groupcompare', fromgroup=1, nt5end='T',
    trimsampleset=1, lengthsdistrib=1, average=1, readlengths=1,
    strands=1, mapper=0, kind=1, notitles=1,
    func=<function groupcompare at 0x7f52c33e9b20>
    )
return args

## or bypass Namespace; coalispr funcs would need to be rewriten.

#input = { # vars(args)
    #'command': 'groupcompare', 'fromgroup': 1, 'nt5end': 'T',
    #'trimsampleset': 1, 'lengthsdistrib': 1, 'average': 1,
    #'readlengths': 1, 'strands': 1, 'mapper': 0, 'kind': 1,
    #'notitles': 1, 'func': <function groupcompare at 0x7f1fe08059e0>
    #}
##and then
#call(input) #?
coalispr.tk_gui.tk_coalispr.main()