Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do selected rows highlight? #19

Open
world9781 opened this issue Apr 25, 2021 · 5 comments
Open

How do selected rows highlight? #19

world9781 opened this issue Apr 25, 2021 · 5 comments

Comments

@world9781
Copy link

How do selected rows highlight? Thank you!

@tonycpsu
Copy link
Owner

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

@world9781
Copy link
Author

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?

@tonycpsu
Copy link
Owner

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

@world9781
Copy link
Author

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?

@tonycpsu
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants