Skip to content

Releases: ragardner/tksheet

7.4.2

19 Feb 16:03
Compare
Choose a tag to compare

Version 7.4.2

Fixed:

  • Strings that started with numbers not being sorted in the correct order

Changed:

  • Add file paths to sort order using pathlib
  • For better backwards compatibility use the usual "move_rows"/"move_columns" event names for sorting rows/columns events

7.4.1

19 Feb 11:52
Compare
Choose a tag to compare

Version 7.4.1

Fixed:

  • Issues with 7.4.0 sorting
  • #270
  • Only add to index header when user adds rows/columns if index/header is populated

7.4.0

18 Feb 18:25
Compare
Choose a tag to compare

Version 7.4.0

Changed:

  • Text now wraps by character by default, can also disable wrapping or wrap by word
  • Significant changes to how text is rendered
  • Removed mousewheel scrolling lines in header, replaced with vertical axis table scroll
  • Resizing row height to text is now based on the existing column width for the cell/cells, includes double click resizing
  • Treeview mode Node class now uses str for parent and list[str] for children attributes
  • Function get_nodes() renamed -> get_iids()
  • Removed data_indexes parameter from mapping_move... functions
  • Reduce default treeview indent
  • move() function now returns the same as other move rows functions
  • All Sheet() functions with an undo parameter have been set to True by default
  • Using Sheet.set_data() or Spans to set an individual cell's data as None will now do so instead of returning
  • Setting show_top_left during Sheet() initialization will now make the top left rectangle always show

Added:

  • Natural sorting functionality #238
  • Treeview mode now works with all normal tksheet functions, including dragging and dropping rows
  • Cell text overflow allow_cell_overflow: bool = False to adjacent cells for left and right alignments, disabled by default
  • Text wrap for table, header and index
# "" no wrap, "w" word wrap, "c" char wrap
table_wrap: Literal["", "w", "c"] = "c",
index_wrap: Literal["", "w", "c"] = "c",
header_wrap: Literal["", "w", "c"] = "c",
  • tree parameter to insert_rows() function, used internally

Fixed:

  • Index fonts now work correctly
  • Functions column_width() and row_height() work correctly for any parameters
  • Down sizing rows/columns when scrolled to the end of the axis would result in a rapid movement of row height/column width
  • Address #269

Improved:

  • Minor performance improvements for:
    • item_displayed()
    • show_rows() / show_columns()
    • move()
    • Row insertion

7.3.4

31 Jan 15:19
Compare
Choose a tag to compare

Version 7.3.4

Fixed:

  • Error on find within selection without a selection
  • Some canvas z fighting issues

Improved:

  • Refactored redrawing code

Changed:

  • rename Sheet() attr: dropdown_class -> _dropdown_cls

7.3.3

27 Jan 19:15
Compare
Choose a tag to compare

Version 7.3.3

Improved:

  • Find within selection performance + memory
  • Moving rows/columns performance

7.3.2

26 Jan 18:17
Compare
Choose a tag to compare

Version 7.3.2

Added:

  • Built-in find window, use enable_bindings("find") to enable
  • Escape binding which deselects
  • reverse parameter to get_selected_cells() function

Fixed:

  • Not redrawing after Control-space, Shift-space bindings for selecting columns/rows
  • Not redrawing after Home, Control/Command-Home bindings for selecting start of the row and start of the table
  • Dropdown boxes not reseting y scroll
  • Issues with arrow key down
  • Arrow key up wrongly moving scroll at row 0

Changed:

  • Renamed vars.py -> constants.py
  • Add _version.py to .gitignore
  • enable_bindings() with "find" now enables an in-built find window which uses the following bindings:
    • Control/Command-f/F
    • Control/Command-g/G
    • Control/Command-Shift-g/G
    • Escape
    • Return (when the find window has focus)
    • Alt/Option-L to find within selection
  • Added Escape binding when cell selection is enabled. Pressing Escape will now close the find window if its open, if its not open it will close any open text editor/dropdown box and deselect all cells.

7.3.1

06 Jan 09:32
Compare
Choose a tag to compare

Version 7.3.1

Changed:

  • deselect() also closes text editor / dropdown

Added:

  • Mac OS Zoom in/out bindings
  • Control-space, Shift-space bindings for selecting columns/rows if enabled
  • Home, Control/Command-Home bindings for selecting start of the row and start of the table

Documentation:

  • bulk_insert(): wrong example
  • Docstrings: return values for insert(), bulk_insert()

Fixed:

  • Wrong type hinting for Iterator

7.3.0

28 Nov 18:51
Compare
Choose a tag to compare

Version 7.3.0

Changed:

  • "end_edit_cell" events for single cell edits e.g. for cell text editor, dropdown box and checkbox edits now have the value prior to the edit in the event under keys cells.table
  • Variables default values in Sheet() init have changed from "inf" -> float("inf"):
    • max_column_width
    • max_row_height
    • max_index_width
    • max_header_height
  • Moved variables from Sheet.MT -> Sheet.ops:
    • max_column_width
    • max_row_height
    • max_index_width
    • max_header_height

Fixed:

  • Lag on resize index width or header height

Added:

  • Ability to set minimum column width: min_column_width in Sheet() init and set_options()

7.2.23

20 Nov 18:59
Compare
Choose a tag to compare

Version 7.2.23

Changed:

  • Edit validation will now also be triggered for undo and redo 256
  • Cell text editors and dropdowns have their own shared background and foreground colors 255

Fixed:

  • 7.2.22 regression when using cell text editors and normal dropdown boxes
  • 7.2.22 regression "normal" dropdown box with modified_function not being triggered upon non-key release events such as by right clicking in the text editor and pasting
  • Select events will no longer be emitted upon b1 release

Added:

  • Options for changing table, index and header cell editor bg, fg 255
    • Added Sheet() parameters:
      • table_editor_bg
      • table_editor_fg
      • table_editor_select_bg
      • table_editor_select_fg
      • index_editor_bg
      • index_editor_fg
      • index_editor_select_bg
      • index_editor_select_fg
      • header_editor_bg
      • header_editor_fg
      • header_editor_select_bg
      • header_editor_select_fg

7.2.22

16 Nov 18:02
Compare
Choose a tag to compare

Version 7.2.22

Added:

  • Autocomplete for "normal" state dropdown boxes
  • Python 3.13 support badge
  • "disabled" state for dropdown boxes
  • docstrings for enable/disable bindings and extra bindings functions to help with arguments

Fixed:

  • Alternate row colors no longer blend with clear single cell selection box
  • Highlights and alternate row colors not blending with show_selected_cells_border=False
  • Tab key with show_selected_cells_border=False not updating selected colors when using highlights
  • Treeview selection_set()/selection_add() now only use iids that are in the tree, will not generate an error if an iid is missing
  • Error on close text editor

Improved:

  • Code: minor type hinting
  • Code: variable name clarity