tonycpsu / panwid

A collection of widgets for urwid.
GNU Lesser General Public License v2.1
116 stars 8 forks source link

Example not working #10

Open laixintao opened 5 years ago

laixintao commented 5 years ago

Hi, I tried example/datatable.py and it shows like below on my mac:

image

What did you have been working on? I would like to help with this project.

tonycpsu commented 5 years ago

Aside from some unicode weirdness there (the ????s at the top should be a horizontal line, the ? in the scrollbar should be ⊖) that's pretty much what it looks like here. The example code for datatable is a bit weird right now because I'm using it to test out some new features. What you see there is a datatable nested inside of another, which is functionality I'm using in streamglob.

Taking all that junk out of the example and making it more of a demo like it used to be is on my list, so I'll keep this issue open to remind me to do that.

laixintao commented 5 years ago

OK thanks for reply, I will try to make it work by myself. Maybe I will open a PR when it's done.

I am working on a top like tool here: https://github.com/laixintao/pingtop and your datatable is exactly what I need! 👍

laixintao commented 5 years ago

Hi, I can print unicode, but in example.py it's still ?

python -c 'print("\N{UPWARDS ARROW}")'
―

Can you show your pip freeze of your panwid env? Thanks.

laixintao commented 5 years ago

Look like it's an issue with urwid https://github.com/urwid/urwid/issues/286

Is unicode looks good in your enviroment?

tonycpsu commented 5 years ago

Yeah, it looks fine.

image

If there is a bug in urwid, I'm a maintainer over there now so I should be able to fix it. Just not sure what the bug would be.