Giter Site home page Giter Site logo

on Rpi5, OS debian bookworm, tksheet's sheet defined col-w & row-h of 10x16 cells size has slow/lagging mouse's cursor movement about tksheet HOT 12 CLOSED

SamO6453 avatar SamO6453 commented on July 2, 2024
on Rpi5, OS debian bookworm, tksheet's sheet defined col-w & row-h of 10x16 cells size has slow/lagging mouse's cursor movement

from tksheet.

Comments (12)

ragardner avatar ragardner commented on July 2, 2024

Hello,

Thanks for your report,

I suspect the relevant sections of code are the functions:

def mouse_motion(self, event):
    ...

Which are contained in the files:

  • _tksheet_main_table.py
  • _tksheet_row_index.py
  • _tksheet_column_headers.py

Why they are causing lag under one environment but not another I am not sure

You could try commenting out the code in the functions or commenting out the line that binds those functions:

("<Motion>", self, self.mouse_motion),

which is contained within _tksheet_main_table.py

To see what happens...

But I think what I will do longer term is make it so that mouse motion is no longer bound and instead tksheet relies on <Enter> and <Leave> events. I am not 100% sure I will be able to do this however, I will update you here when I find out

from tksheet.

SamO6453 avatar SamO6453 commented on July 2, 2024

from tksheet.

ragardner avatar ragardner commented on July 2, 2024

Hey,

I've made a change in 6.3.5. In previous versions tksheet would configure the cursor with every mouse motion, in 6.3.5 it checks the current cursor and only configures it if it needs to. However, I was unable to replace the mouse motion function

I also removed code which caused cursor change for header height and index width resizing from inside the main table, it is now slightly harder to align the cursor with their resizing lines

I am wondering if the constant calls to config the cursor were the reason it was ok under one OS and python version and not another

from tksheet.

SamO6453 avatar SamO6453 commented on July 2, 2024

from tksheet.

SamO6453 avatar SamO6453 commented on July 2, 2024

from tksheet.

SamO6453 avatar SamO6453 commented on July 2, 2024

from tksheet.

SamO6453 avatar SamO6453 commented on July 2, 2024

from tksheet.

ragardner avatar ragardner commented on July 2, 2024

Hey,

Sorry, have you push the 6.3.5 version into the piwheels.org yet? Or you can send me the link to the latest changes ver 6.3.5. Thanks!

It seems as though piwheels is automated, I cannot push new releases to it

not sure the intent or functionality of the mouse_motion() call and resizing is for

Basically it just checks the position of the cursor and if it is above a grid line that can be moved then it changes the cursor into an arrow. If it is above a selected row or column then it changes into a hand. The reason I failed to replace this code with "<Enter>" and "<Leave>" events is that they weren't reliable, the cursor wasn't reliably changing back into a normal pointer after entering and leaving a grid line

edit: I realized some of my previous choice of words about resizing grid lines may have been misleading sorry

I’m getting the following error messages when I do “pip install tksheet –upgrade.”

Unfortunately I have no idea what this error means sorry. I don't think it's to do with tksheets setup code though as the only thing that was changed in setup.py was the version number

from tksheet.

SamO6453 avatar SamO6453 commented on July 2, 2024

from tksheet.

SamO6453 avatar SamO6453 commented on July 2, 2024

from tksheet.

SamO6453 avatar SamO6453 commented on July 2, 2024

from tksheet.

ragardner avatar ragardner commented on July 2, 2024

Thanks for letting me know!

Versions 7+ now have the new pyproject.toml file

Cheers

from tksheet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.