Giter Site home page Giter Site logo

Comments (6)

ragardner avatar ragardner commented on May 26, 2024 1

Yes you're right, should be fixed in 4.9.91

from tksheet.

ragardner avatar ragardner commented on May 26, 2024

Hello,

Quick question,

Is this just for after the cell edit is completed? Such as a resize that occurs after pressing the Return key

from tksheet.

PatLechevallier avatar PatLechevallier commented on May 26, 2024

Re,

Yes absolutely.
After pressing Return on the cell itself or a cell of the same Row.

from tksheet.

ragardner avatar ragardner commented on May 26, 2024

I can possibly do your suggestion of cells resized by the user in the future, but in the mean time I have added an option to disable auto resize after editing

Version 4.9.9

  • Attempt to fix Linux mousewheel scrolling
  • Add enable_edit_cell_auto_resize option to startup and set_options default is True

from tksheet.

PatLechevallier avatar PatLechevallier commented on May 26, 2024

Hi!

Thanks for the quick implement 👍
Would it be relevant to add the if statement also here?
At Line 4445

if self.extra_begin_edit_cell_func is None or text is None:
if f"{event.keysym}".lower() == "backspace":
text = ""
elif event.char in all_chars:
text = event.char
else:
text = f"{self.data_ref[y1][x1]}" if self.all_columns_displayed else f"{self.data_ref[y1][self.displayed_columns[x1]]}"
self.RI.set_row_height(y1, only_set_if_too_small = True, displayed_only = True)
self.CH.set_col_width(x1, only_set_if_too_small = True, displayed_only = True)
self.select_cell(r = y1, c = x1, keep_other_selections = True)

So it won't resize at the begin edit cell.

from tksheet.

PatLechevallier avatar PatLechevallier commented on May 26, 2024

Re,

Thanks. It's working well.

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.