Skip to content

Releases: ragardner/tksheet

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

7.2.21

05 Nov 16:59
Compare
Choose a tag to compare

Version 7.2.21

Fixed:

  • Storing functions in event data using pickle causes error 253

Added:

  • Basic alternate row colors option

7.2.20

31 Oct 19:16
Compare
Choose a tag to compare

Version 7.2.20

Changed:

  • float_formatter() by default will no longer accept inputs that end in "%"
  • percentage_formatter() default format_function renamed: to_float() -> to_percentage()
  • Events no longer emitted for cut, paste or delete if the sheet has not been edited, for example due to read only cells 249
  • __init__() calls now use super()

Added:

  • Options for percentage formatter:
    • format_function option to_percentage()
    • format_function option alt_to_percentage()
    • to_str_function option alt_percentage_to_str()

Improved:

  • Documentation for data formatting

7.2.19

26 Oct 14:51
Compare
Choose a tag to compare

Version 7.2.19

Fixed:

  • Error when pasting into empty sheet
  • Potential error if using percentage formatter with more than just int, float and wrong type hint 250
  • Only show the selection box outline while the mouse is dragged if the control key is down
  • index and header Span parameters were not working with function readonly()

Added:

  • Shift + arrowkey bindings for expanding/contracting a selection box
  • Functions for getting cell properties (options) 249
  • Ability to edit index in treeview mode, if the binding is enabled

Improved:

  • Very slight performance boost to treeview insert, inserting rows when rows are hidden

7.2.18

22 Oct 18:07
Compare
Choose a tag to compare

Version 7.2.18

Fixed:

  • Inserting rows/columns with hidden rows/columns sometimes resulted in incorrect rows/columns being displayed
  • Treeview function insert() when using parameter index sometimes resulted in treeview items being displayed in the wrong locations

Changed:

  • Using function set_currently_selected() or any function/setter which does the same internally will now trigger a select event like creating selection boxes does
  • iids in Treeview mode are now case sensitive
  • Treeview function tree_build() when parameter safety is False will no longer check for missing ids in the iid column
  • Treeview function get_children() now gets item ids from the row index which provides them in the same order as in the treeview
  • Add parameter run_binding to treeview functions selection_add(), selection_set()
  • Slight color change for top left rectangle bars

Added:

  • Initialization parameters default_header and default_row_index can now optionally be set to None to not display anything in empty header cells / row index cells
  • Parameters lower and include_text_column to treeview function tree_build()
  • Treeview function bulk_insert()
  • Treeview function get_nodes() behaves exactly the same as get_children() except it retrieves item ids from the tree nodes dict not the row index.
  • Treeview function descendants() which returns a generator
  • Treeview property tree_selected

7.2.17

07 Oct 14:40
Compare
Choose a tag to compare

Version 7.2.17

Changed:

  • Treeview mode slight appearance change

7.2.16

30 Sep 13:45
Compare
Choose a tag to compare

Version 7.2.16

Added:

  • Treeview mode documentation

7.2.15

29 Aug 07:25
Compare
Choose a tag to compare

Version 7.2.15

Added:

  • New option to address 247