added missing argument to recursive call in readLevel#2
added missing argument to recursive call in readLevel#2adamerose wants to merge 1 commit intoWinand:masterfrom adamerose:column-boundaries-fix
Conversation
|
Yep.. Had this same issue and using xe worked for me |
|
Do you know how to resize the header columns if text is too long??? I've got this right now... |
Honestly I spent many hours trying to get this code working well for myself and ended up deciding that QHeaderViews were just too complicated and limited to make it work. Over the past year I worked on a new project that uses QTableViews for each individual MultiIndex header, you can see it here: Doing what you want might be easier if you start with my pandasgui/pandasgui/widgets/dataframe_viewer.py because then you can just align and resize all cells in the body and headers as simply as you would any normal QTableView. |
|
Thanks Adam
…On Fri, Aug 9, 2019 at 1:52 PM Adam ***@***.***> wrote:
Do you know how to resize the header columns if text is too long???
<http://url> I've got this right now...
[image: image]
<https://user-images.githubusercontent.com/17577815/62739260-02b6ae80-b9fa-11e9-9531-5c1aa0e4e6b8.png>
And i would like for the left most column in the header data to be aligned
right and the width of the header data columns to be the width of the
largest cell in the column
Honestly I spent many hours trying to get this code working well for
myself and ended up deciding that QHeaderViews were just too complicated
and limited to make it work. Over the past year I worked on a new project
that uses QTableViews for each individual MultiIndex header, you can see it
here:
https://github.com/adamerose/pandasgui
Doing what you want might be easier if you start with my
pandasgui/pandasgui/widgets/dataframe_viewer.py because then you can just
align and resize all cells in the body and headers as simply as you would
any normal QTableView.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=AEGDOV62MEBJFYEJ253CVZDQDW4GJA5CNFSM4GI7CUBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD37PUTA#issuecomment-520026700>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEGDOV7IQ5EOF7RGIDCL4F3QDW4GJANCNFSM4GI7CUBA>
.
|

Added some more test cases and fixed the bug, here's what it looks like before and after.
Something else I noticed is I think headerData() does nothing, because everything still works if I make it return None. I think the header values come only from data() using the HeaderDataRole roles.