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

ColorByValue #175

Open
vix1one opened this issue Jun 4, 2020 · 9 comments
Open

ColorByValue #175

vix1one opened this issue Jun 4, 2020 · 9 comments

Comments

@vix1one
Copy link

vix1one commented Jun 4, 2020

Hi,
when I set the column colour by value if The table is very long and I need to scroll down with the mouse, the colours are wrongly shown! any idea?

Ps SUPER script, Thanks!!!

@vix1one
Copy link
Author

vix1one commented Jun 4, 2020

Basically the colour cell index doesn't scale with the scroll and remains fixed on the window.
this is the first view.

image

and this is when I scroll
image

I scrolled six elements, but the colours didn't

@vix1one
Copy link
Author

vix1one commented Jun 4, 2020

Probably I have to fix something in core.py. I guess in the mouse_wheel definition. But I cannot fix the problem

def mouse_wheel(self, event):
"""Handle mouse wheel scroll for windows"""
if event.num == 5 or event.delta == -120:
event.widget.yview_scroll(1, UNITS)
self.rowheader.yview_scroll(1, UNITS)
if event.num == 4 or event.delta == 120:
if self.canvasy(0) < 0:
return
event.widget.yview_scroll(-1, UNITS)
self.rowheader.yview_scroll(-1, UNITS)
self.redraw()
self.multiplecollist = [4] #set the selected columns
self.redrawVisible()
return

@dmnfarrell
Copy link
Owner

Is there an error message appearing when you try to scroll.

@vix1one
Copy link
Author

vix1one commented Jun 22, 2020

no error at all

@Rafaelh531
Copy link

I have the same bug when scrolling my table

@dmnfarrell
Copy link
Owner

I can't replicate this. It must be related to the specifics of your table. I'd need more details.

@Rafaelh531
Copy link

Its just a very large dataframe where in a specific column i have some cells painted red, when i scroll down the marked area doesn't scroll with it, just stay in place and marks new cells

@dmnfarrell
Copy link
Owner

how big is very large?

@Rafaelh531
Copy link

4000x150

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

3 participants