Python ncurses template, table -
i'm writing state machine based python program prints console state of machines. useful log, not user friendly interface.
i'm interested know if there examples of using ncurses in python, preferably in oop presents changing information (eg: state information) in table.
the have tried curses
package in python, not oo want.
this stream looks like:
manager: st_machine_01 state initialise manager: st_machine_01 state get_list_pages manager: st_machine_02 state exit manager: st_machine_03 state initialise manager: st_machine_03 state get_list_pages manager: st_machine_04 state exit manager: st_machine_05 state initialise manager: st_machine_05 state get_list_pages manager: st_machine_01 state get_list_pages manager: st_machine_05 state get_list_pages manager: st_machine_05 state exit manager: st_machine_01 state get_list_pages manager: st_machine_06 state initialise manager: st_machine_06 state get_list_pages manager: st_machine_01 state get_list_pages manager: st_machine_06 state get_list_pages manager: st_machine_01 state exit manager: st_machine_06 state get_list_pages manager: st_machine_07 state initialise manager: st_machine_07 state get_list_pages manager: st_machine_06 state get_list_pages manager: st_machine_06 state exit
whereas ncurses "table" rendered @ last point of above stream like:
manager: st_machine_01 state exit manager: st_machine_02 state exit manager: st_machine_03 state get_list_pages manager: st_machine_04 state exit manager: st_machine_05 state exit manager: st_machine_06 state exit manager: st_machine_07 state get_list_pages
i'm seeking on python 2.7 64bit, windows 7 64bit.
you can use standard curses
module. can find documentation here.
Comments
Post a Comment