TtkBootstrap Tableview sort problem ? #390
AbdoMusk
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Also showing or hiding a column create an error, because the functions show() hide() uses self.view.configure("displaycolumns") and self.view.configure("columns") after changing it to self.view["displaycolumns"] and self.view["columns"] showing or hiding column in Tableview does work great! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm new to Ttkbootstrap, I liked that some of the new features that Ttkbootstrap provides that don't exist on Tkinter; one of those is Tableview, I wanted to display some data on a Tableview it works fine but when I try to sort the data I get an error, here's my working environment:
Ttkbootstrap Version: 1.10.0
Python 3.10.8
Windows 10
Error:
After digging into the error I found out that self.view.configure("displaycolumns") in ttkbootstrap.tableview.py returns None
My code (I tested with plain tuple too):
The solution I found:
is to change cols = self.view.configure("displaycolumns") to cols = self.view["columns"] in ttkbootstrap.tableview.py
I'm not sure if that could be a pull request so I just put it here as a show-and-tell discussion.
Beta Was this translation helpful? Give feedback.
All reactions