menu and file
henryzhang62 at yahoo.com
Sat Dec 26 18:52:12 CET 2009
> > List,
> > I want to read a file that has a list of data into a
> menu. User can pick
> > up a line of data and execute it. For example, file
> has data like
> > following
> > 1 23 0x4530
> > 2 42 0x8790
> > 3 75 0x7684
> > .....
> > User can select line # and then execute hex data in
> that line. Any
> > sample codes will be appreciated.
> This may help. Be sure to read it all.
I have read the link and get text menu. The question is I want to load a text file and bring it to screen like
1 23 0x4530
2 42 0x8790
3 75 0x7684
Then if I want to select 0x4530, then I simple select 1 and a handler should get 0x4530 as input to process.
More information about the Python-list