Tksheet

Latest version: v7.3.0

Safety actively analyzes 688365 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 8 of 16

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 `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()` 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 `Span`s
- 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](https://github.com/ragardner/tksheet/pull/214)
- Issue [215](https://github.com/ragardner/tksheet/issues/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

Changed:
- The following `MainTable` attributes are now simply `int`s or `str`s which represent either pixels or number of lines, instead of `tuple`s:
- `default_header_height`
- `default_row_height`
- `Sheet()` init keyword argument `default_row_index_width` now only accepts `int`s
- 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](https://github.com/ragardner/tksheet/issues/212):
- `get_text_editor_value`
- `close_text_editor`

7.0.5

Fixed:
- Issue 210

7.0.4

Fixed:
- Additional header cells being created when using `set_data()` or data setting using spans under certain circumstances
- Additional index cells being created when using `set_data()` or data setting using spans under certain circumstances

Added:
- `Sheet.reset()` function

7.0.3

Fixed:
- Some classifiers in `pyproject.toml`

Added:
- Parameter `emit_event` to the functions:
- `span`
- `set_data`
- `clear`
- `insert_row`
- `insert_column`
- `insert_rows`
- `insert_columns`
- `del_row`
- `del_column`
- `del_rows`
- `del_columns`
- `move_rows`
- `move_columns`
- `mapping_move_rows`
- `mapping_move_columns`

- Attribute `emit_event` to Span objects, default value is `False`
- Functions `mapping_move_rows` and `mapping_move_columns` to docs

Changed:
- Functions renamed:
- `move_rows_using_mapping` -> `mapping_move_rows`
- `move_columns_using_mapping` -> `mapping_move_columns`
- Order of parameters for functions:
- `mapping_move_rows`
- `mapping_move_columns`

7.0.2

Changed:
- `Sheet()` initialization parameter `row_index_width` renamed `default_row_index_width`
- `set_options()` keyword argument `row_index_width` renamed `default_row_index_width`
- Move doc files to new docs folder
- Delete `version.py` file, move `__version__` variable to `__init__.py`
- Add backwards compatibility for `Sheet()` initialization parameters:
- `column_width`
- `header_height`
- `row_height`
- `row_index_width`

Page 8 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.