Giter Club home page Giter Club logo

terminaltool's Introduction

#TerminalTool ##项目概述 基于python语言开发,表格式终端命令菜单,会在此菜单上添加嵌入式开发中经常用到的工具类方法。目前按业务控制功能、视图、通用包进行分类 ##一、pytable 功能说明:表格类,支持按行增加内容;支持多列;支持缺省列时补空;运行是否显示表格标题 ###1.1 使用方法 1、初始化pytable

a = Pytable("Table Title", 60, [10, 20, 30])

2、显示表标题

a.add_table_header()

3、添加行数据

a.add_row_data(["1 - Home", "2 - Telnet", "3 - SSH"])

4、显示表格

a.show()

##二、pymenu 功能说明:表格菜单类,支持按行增加内容;支持多列;支持缺省列时补空;支持多级子菜单;支持退出确认机制;支持自定义菜单功能实现 ###2.1 使用方法 1、初始化pymenu

main_menu = Pymenu("Main Menu", [20, 20, 20], back_key = "q")

2、添加行数据

main_menu.add_field("1", "Telnet", lambda:fun("Telnet"))
main_menu.add_field("4", "SSH", fun_test)
main_menu.add_field("b", "sub b", None)

3、显示菜单

main_menu.show()

##DEMO界面 pymenu和pytable界面

terminaltool's People

Contributors

muou55555 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.