Releases: ragardner/tksheet
Releases · ragardner/tksheet
7.4.2
7.4.1
7.4.0
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 usesstr
for parent andlist[str]
for children attributes - Function
get_nodes()
renamed ->get_iids()
- Removed
data_indexes
parameter frommapping_move...
functions - Reduce default treeview indent
move()
function now returns the same as other move rows functions- All
Sheet()
functions with anundo
parameter have been set toTrue
by default - Using
Sheet.set_data()
orSpan
s to set an individual cell's data asNone
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 toinsert_rows()
function, used internally
Fixed:
- Index fonts now work correctly
- Functions
column_width()
androw_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
7.3.3
7.3.2
Version 7.3.2
Added:
- Built-in find window, use
enable_bindings("find")
to enable - Escape binding which deselects
reverse
parameter toget_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
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
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 keyscells.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
inSheet()
init andset_options()
7.2.23
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 boxes7.2.22
regression"normal"
dropdown box withmodified_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
- Added
7.2.22
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