def layout(arg_string=''): ret_layout = os.linesep + layout_oneline.layout(arg_string=arg_string, arg_style=STYLE.BRIGHT, arg_fore=COLOR_FORE.RED, arg_padding=2) return ret_layout
def layout(arg_prefix=''): ret_layout = arg_prefix + '$ ' ret_layout = layout_oneline.layout(arg_string=ret_layout, arg_style=STYLE.BRIGHT, arg_fore=COLOR_FORE.YELLOW) return ret_layout
def layout(arg_string=''): ret_layout = "" lst_string = arg_string.split(os.linesep) for string in lst_string: ret_layout += layout_oneline.layout(arg_string=string, arg_style=STYLE.BRIGHT, arg_fore=COLOR_FORE.RED, arg_padding=4) + os.linesep return ret_layout
def layout(arg_format='', arg_name='', arg_help=''): ret_layout = os.linesep ret_layout += arg_format.format(arg_name) + os.linesep ret_layout += os.linesep lst_string = arg_help.split(os.linesep) for string in lst_string: ret_layout += layout_oneline.layout(arg_string=string, arg_padding=2) + os.linesep return ret_layout
def layout(arg_name='', arg_version='', arg_copyright=''): width = terminal.get_width() ret_layout = ('*' * width) + os.linesep ret_layout += '*' + (' ' * (width - 2)) + '*' + os.linesep app_title = "%s %s, %s" % (arg_name, arg_version, arg_copyright) ret_layout += layout_oneline.layout(arg_string=app_title, arg_align=ALIGN.CENTER, arg_padding=1, arg_padchar='*') + os.linesep ret_layout += '*' + (' ' * (width - 2)) + '*' + os.linesep ret_layout += '*' * width return ret_layout
def layout(arg_format='', arg_plugin=[]): # head line ret_layout = res.get_string("plugin_head").format( res.get_string("plugin_name"), res.get_string("plugin_version"), res.get_string("plugin_update"), res.get_string("plugin_autoexec"), res.get_string("plugin_summary")) + os.linesep ret_layout = layout_oneline.layout( arg_string=ret_layout, arg_style=STYLE.BRIGHT) for plugin in arg_plugin: ret_layout += res.get_string("plugin_item").format( plugin[0], plugin[1], plugin[3], plugin[4], plugin[2]) + os.linesep return ret_layout
def layout(arg_format='', arg_reader=''): out_msg = arg_format.format(arg_reader) ret_layout = layout_oneline.layout(arg_string=out_msg) return ret_layout
def layout(arg_msg=''): ret_layout = layout_oneline.layout(arg_string=arg_msg) return ret_layout
def layout(arg_format='', arg_count=''): out_msg = arg_format.format(arg_count) ret_layout = layout_oneline.layout(arg_string=out_msg) + os.linesep return ret_layout