Dear Sir
Muhammad Ammar wrote:
> Hi bino
>
> Use Frame.
>
> We will have header and body only. header will contain the "Dynamic
> TextDisplay here" field(urwid.Text) and "Header-ROW (static txt)"
> field(urwid.Text) and body will contain the listbox.
>
> Use Pile for your header like this
>
> txt_display_dynamic = urwid.Text("Dynamic TextDisplay here")
> txt_display_static = urwid.Text("Header-ROW (static text)")
>
> header = urwid.Pile([urwid.Divider("="),
> txt_display_dynamic,
> urwid.Divider("-"),
> txt_display_static,
> urwid.Divider("-")
> ])
>
> and you body will be like the following
> myList = ['This is 1st Line', 'This is 2nd line', 'This is 3rd line', 'This
> is 4th line']
>
> body = urwid.ListBox(urwid.SimpleListWalker(myList))
>
> top = urwid.Frame(body, header)
>
>
> Regards
I really appreciate your very prompt response.
But ... because of my lame brain ..... could you please write a full
version of the script ?
I realy new about urwid
Sincerely
-bino-
_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid