Skip to content

Releases: ragardner/tksheet

7.1.7

04 Apr 18:58
Compare
Choose a tag to compare

Version 7.1.7

Fixed:

  • Using a cell text editor followed by setting a dropdown box with a text editor would set the previously open cell to the dropdown value

Changed:

  • Selection boxes now have rounded corners
  • Function get_checkbox_points renamed rounded_box_coords

Added:

  • rounded_boxes Sheet option
  • WIP ListBox class

7.1.6

01 Apr 18:44
Compare
Choose a tag to compare

Version 7.1.6

Fixed:

  • Undo error

Added:

  • Function deselect_any() for non specific selection box type deselections

7.1.5

30 Mar 19:43
Compare
Choose a tag to compare

Version 7.1.5

Fixed:

  • set_all_cell_sizes_to_text() not working correctly if table font is different to index font, resulting in dropdown box values not showing properly
  • Dropdown box colors and options not being updated after sheet color change
  • Text editor alignments not working

Improved:

  • Dropdown box alignment now uses cell alignment
  • Minor changes to arrow key cell selection

Changed:

  • When using show_selected_cells_border=False the colors for table_selected_box_cells_fg/table_selected_box_rows_fg/table_selected_box_columns_fg will be used for the currently selected cells background

7.1.4

28 Mar 19:06
Compare
Choose a tag to compare

Version 7.1.4

Fixed:

  • Fixed shift mouse click select rows/columns selecting cells instead of rows/columns
  • Fixed "<<SheetSelect>>" event not being emitted after row/column select events

Added:

  • Add new parameters to cell_selected(), row_selected(), column_selected(), no default behaviour change
  • Functions:
    • event_widget_is_sheet()
    • @property function boxes, the same as get_all_selection_boxes()
    • drow(), dcol() functions the same as displayed_row_to_data()/displayed_column_to_data()

7.1.3

26 Mar 19:10
Compare
Choose a tag to compare

Version 7.1.3

Fixed:

  • Error with get_all_selection_boxes_with_types()

7.1.2

26 Mar 07:56
Compare
Choose a tag to compare

Version 7.1.2

Fixed:

  • Column selected detection bug
  • Tagged cells/rows/columns not taken into account in max index detection, relevant for moving columns/rows

7.1.1

25 Mar 10:42
Compare
Choose a tag to compare

Version 7.1.1

Fixed:

  • Select all error
  • Span widget attribute lost on delete rows/columns and undo
  • Tagged cells/rows/columns lost on delete rows/columns and undo

7.1.0

24 Mar 19:01
Compare
Choose a tag to compare

Version 7.1.0

Changed:

  • Event data key "selected" and function get_currently_selected() values have changed:
    • type_ attribute has been changed from either "cell"/"row"/"column" to "cells"/"rows"/"columns"
    • The attributes in the latter indexes have also changed
    • See the documentation for get_currently_selected for more information

  • Rename class TextEditor_ to TextEditorTkText
  • Rename TextEditor attribute textedit to tktext
  • Rename namedtuple CurrentlySelectedClass to Selected

  • Overhaul how selection boxes are handled internally. Sheet functions dealing with selection boxes should behave the same
  • Changed order of Sheet() init parameters

  • auto_resize_row_index now has a different default value for its old behaviour:
    • auto_resize_row_index: bool | Literal["empty"] = "empty"
      • With "empty" it will only automatically resize if the row index is empty
      • With True it will always automatically resize
      • False it will never automatically resize

  • Scrollbar appearance
  • hide_rows()/hide_columns() functions now endeavour to save the row heights/column widths so that they may be reinserted when using new functions show_rows()/show_columns()
  • Internal Dropdown Box information dicts no longer have the keys "window" and "canvas_id"

Span objects now have an additional two functions which link to the Sheet functions of the same names:

  • span.tag()
  • span.untag()

Removed:

  • Parameters:
    • set_text_editor_value() parameters r and c

Added:

  • Functions:
    • show_rows(), show_columns() which are designed to work alongside their hide_rows()/hide_columns() counterparts
    • set_index_text_editor_value() and set_header_text_editor_value()
    • xview(), yview(), xview_moveto(), yview_moveto()
  • Parameters:
    • data_indexes bool parameters to functions: hide_rows, hide_columns, default value is False meaning there is no behavior change
    • create_selections bool parameters to functions: insert_rows, insert_columns default value is True meaning there is no behavior change
  • New tksheet functionality:
    • Treeview mode (still a work in progress - functions are inside sheet.py under # Treeview Mode)
    • Cell, row and column tagging functions, also added to Spans
    • Ability to change the appearance of both scroll bars
    • New binding "<<SheetSelect>>" which encompasses all select events

Fixed:

  • mapping_move_rows() error
  • Potential issue with using insert_rows while also using an int as the row index to display a specific column in the index
  • Potential error if a selection box ends up outside of rows/columns
  • Pull request #214
  • Issue 215

Improved:

  • Ctrl select now allows overlapping boxes which begin from within another box
  • Ctrl click deselection
  • The currently selected cell will no longer change after edits to individual cells in the main table which are not valid with a different value

7.0.6

01 Mar 20:33
Compare
Choose a tag to compare

Version 7.0.6

Changed:

  • The following MainTable attributes are now simply ints or strs which represent either pixels or number of lines, instead of tuples:
    • default_header_height
    • default_row_height
  • Sheet() init keyword argument default_row_index_width now only accepts ints
  • Simplify internal use of default_header_height, default_row_height, default_column_width, default_row_index_width
  • Move the following attribute locations from MainTable to Sheet.ops:
    • default_header_height
    • default_row_height
    • default_column_width
    • default_row_index_width
  • Removed some protections for setting default row heights, default column widths smaller than minimum heights/widths

Added:

  • Functions to address issue #212:
    • get_text_editor_value
    • close_text_editor

7.0.5

08 Feb 10:17
Compare
Choose a tag to compare

Version 7.0.5

Fixed: