Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tableview bug fixes and feature upgrades #124

Merged
merged 4 commits into from
Jan 8, 2022

Conversation

israel-dryer
Copy link
Owner

Lots of new exciting new features and minor bug fixes for the Tableview widget

Bug fixes

  • entering a page less than 1 or greater than the max in the page entry no longer returns an empty or invalid page
  • the +/- column options in the right-click menu now update when columns are deleted or inserted into the table
  • Other miscellaneous not worthy of a write-up

New features

  • Default stripe colors are added for all themes
  • The stripecolor parameter is enhanced so that passing in a tuple with None for background and foreground colors will now cause that element to use a default color. For example: stripecolor=(None, None) will cause a default foreground and background color while stripecolor=('yellow', None) will cause a yellow background and default foreground color. The default setting of stripecolor=None will disabled stripecolors altogether.
  • Bulk delete and insert is now available via the Tableview.purge_table_data and Tableview.build_table_data methods. Along with the existing insert methods, delete methods have been added for columns and rows to make the data handling full-featured.
  • New command in the right-click cell menu
    • delete selected rows
  • New commands in the right-click header menu
    • delete column
    • hide column
    • show all columns

New properties

  • TableColumn.tableindex
  • TableColumn.displayindex
  • Tablerow.values
  • Tableview.tablerows
  • Tableview.tablerows_filtered
  • Tableview.tablerows_visible
  • Tableview.tablecolumns
  • Tableview.tablecolumns_visible
  • Tableview.is_filtered
  • Tableview.searchcriteria
  • Tableview.pagesize
  • Tableview.iidmap
  • Tableview.cidmap

New methods

  • TableColumn.delete
  • Tablerow.delete
  • Tablerow.refresh
  • Tableview.purge_table_data
  • Tableview.build_table_data
  • Tableview.insert_rows
  • Tableview.delete_column
  • Tableview.delete_columns
  • Tableview.delete_row
  • Tableview.delete_rows
  • Tableview.reset_row_filters
  • Tableview.reset_row_sort
  • Tableview.reset_column_filters
  • Tableview.reset_column_sort

New class

  • TableEvent

@israel-dryer israel-dryer added bug Something isn't working enhancement New feature or request labels Jan 8, 2022
@israel-dryer israel-dryer merged commit 37b93c2 into master Jan 8, 2022
@israel-dryer israel-dryer deleted the bulk-change-tableview-functionality branch January 8, 2022 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some considerations about the tableview Add methods to batch insert and delete records from Tableview
1 participant