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

architecture overview of datatable #6

Open
dotnwat opened this issue Mar 31, 2018 · 1 comment
Open

architecture overview of datatable #6

dotnwat opened this issue Mar 31, 2018 · 1 comment

Comments

@dotnwat
Copy link

dotnwat commented Mar 31, 2018

Hi, this project is awesome. I was looking for a table for urwid and stumbled across this. I've been looking through the code for a little bit, but was still a little uncertain about the basic architecture of the datatable.

That is, what is hierarchy and composition of the urwid components (e.g. list of columns, etc...). Would you mind describing this a little bit? Thanks.

@laixintao
Copy link

I have used this lib, from my view you need:

  1. Define your Columns as list, eg: name, label, how to sort, etc https://github.com/tonycpsu/panwid/blob/master/examples/datatable.py#L62
  2. Implement query(), this defines how do you get your rows: https://github.com/tonycpsu/panwid/blob/master/examples/datatable.py#L126

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