7.1.0
Version 7.1.0
Changed:
- Event data key
"selected"
and functionget_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_
toTextEditorTkText
- Rename
TextEditor
attributetextedit
totktext
- Rename
namedtuple
CurrentlySelectedClass
toSelected
- 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
- With
- 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 functionsshow_rows()
/show_columns()
- Internal Dropdown Box information
dict
s 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()
parametersr
andc
Added:
- Functions:
show_rows()
,show_columns()
which are designed to work alongside theirhide_rows()
/hide_columns()
counterpartsset_index_text_editor_value()
andset_header_text_editor_value()
xview()
,yview()
,xview_moveto()
,yview_moveto()
- Parameters:
data_indexes
bool
parameters to functions:hide_rows
,hide_columns
, default value isFalse
meaning there is no behavior changecreate_selections
bool
parameters to functions:insert_rows
,insert_columns
default value isTrue
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
Span
s - Ability to change the appearance of both scroll bars
- New binding
"<<SheetSelect>>"
which encompasses all select events
- Treeview mode (still a work in progress - functions are inside
Fixed:
mapping_move_rows()
error- Potential issue with using
insert_rows
while also using anint
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