Mag Gam wrote on 2010-09-26 22:25: > Hello, > > I am a newbie to urwid. So far I went thru the tutorial and its really > a nice library. > > I was wondering if there is an example for tailing 2 files on the same screen. > > For example, file 1 will be 20,100 and then file 2 will be 120, 200. > > I would like to see 2 files on the same screen...
The simplest way might be to launch "tail -f" as a subprocess and pass the output file descriptor to loop.event_loop.watch_file(). That function lets you define a callback that will get called when there is input waiting. In the callback you can append the text to the contents of a ListBox. Post some code if you get stuck and I'll see if I can help. Ian _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
