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

REQUEST : Add a sort function #238

Closed
AnonymousVibrate opened this issue Jun 19, 2024 · 0 comments
Closed

REQUEST : Add a sort function #238

AnonymousVibrate opened this issue Jun 19, 2024 · 0 comments

Comments

@AnonymousVibrate
Copy link

AnonymousVibrate commented Jun 19, 2024

Can we add a functionality that sort the column when you clicked the header ?

import pandas as pd
from tksheet import Sheet
from customtkinter import CTk
from tkinter import TOP, BOTH, X

data = pd.DataFrame(['Banana', 'Apple', 'Carrots', 'Pumpkin', 'Watermelon', 'Coconut', 'Strawberry'])

def custom_sheet():
    sheet = Sheet(app, data=data.values.tolist())
    sheet.pack(side=TOP, fill=BOTH, expand=True)
    sheet.enable_bindings()
    sheet.headers(['Sort this column']) #add additional settings to enable header clickable right side arrow to sort values.

app = CTk()
custom_sheet()
app.mainloop()
@AnonymousVibrate AnonymousVibrate closed this as not planned Won't fix, can't repro, duplicate, stale Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant