panwid icon indicating copy to clipboard operation
panwid copied to clipboard

How do selected rows highlight?

Open world9781 opened this issue 3 years ago • 5 comments

How do selected rows highlight? Thank you!

world9781 avatar Apr 25 '21 06:04 world9781

I don't understand the question. Are you asking how to do something using panwid? If so, what are you trying to do?

tonycpsu avatar Apr 25 '21 15:04 tonycpsu

I don't understand the question. Are you asking how to do something using panwid? If so, what are you trying to do? How to highlight a line when a line is selected?

world9781 avatar Apr 26 '21 15:04 world9781

The default behavior in the examples is to highlight the focused line. This is done by setting the focus_map attribute of the urwid.AttrMap as described here

tonycpsu avatar Apr 26 '21 16:04 tonycpsu

The default behavior in the examples is to highlight the focused line. This is done by setting the focus_map attribute of the urwid.AttrMap as described here

Does the default setting of datatable class support this function? Don't you need to set other parameters? Or do you need to set a parameter?

world9781 avatar Apr 29 '21 08:04 world9781

You need to initialize the program with the correct palette entries from the DataTable class, as shown here. There are some extra unused palette entries defined in there that you can safely ignore.

tonycpsu avatar Apr 29 '21 12:04 tonycpsu