Giter Site home page Giter Site logo

Comments (2)

ragardner avatar ragardner commented on August 23, 2024

Hello,

Thanks very much for bringing this to my attention,

There's a few things going on here,

After examining the code which deals with inserting columns and rows I found that it was indeed an issue that it wasn't inserting header/row index cells upon inserting columns/rows

After making the necessary modifications and testing them a bit I found other issues that needed fixing involving similar functionality

Edit 2: The error indicates I need to pass in a c (probably column) but even if I do so, nothing gets printed

If you saw an empty line when printing that is probably intended. if either the header (sheet.MT._headers) wasn't long enough to cover the index you're printing or if it's an empty cell then in this case it would only print an empty string

To test this out you can do print(self.sheet.get_header_data(0, get_displayed=True)) which should print whatever the header is displaying instead of the underlying cell data

Of course there is the possibility that a silent error was being produced and blocking the printing, and you saw no new empty line, this may or may not be fixed now in 7.1.24

Anyway thanks again and here are the release notes:

Version 7.1.24

Fixed:

  • Error on paste into empty sheet with expand_sheet_if_paste_too_big
  • Data shape not being correct upon inserting a single column or row into an empty sheet
  • Potential for insert_columns() to cause issues if provided columns are longer than current number of sheet rows
  • 225 Insert columns and insert rows not inserting blank cells into header/row index, issue seen with either:
    • Right clicking and using the in-built insert functionality
    • Using the Sheet() functions with an int for first parameter
  • Wrong sheet dimensions caused by a paste which expands the sheet
  • Wrong new selection box dimensions after paste which expands the sheet
  • set_options() with table_font= not working

Changed:

  • expand_sheet_if_paste_too_big replaced by paste_can_expand_x and paste_can_expand_y. To avoid compatibility issues using expand_sheet_if_paste_too_big will set both new options

Improved:

  • Additional protection against issue 224 but with auto_resize_row_index="empty" which is the default setting

from tksheet.

MagnificentCreature avatar MagnificentCreature commented on August 23, 2024

Works now, thanks!

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.