Skip to content

There is a bug in Tk Treeview in CTK. #2765

@GusKung

Description

@GusKung

I'm using Treeview in CTK and I got a red dot bug because I hid my User ID data.

Image

style = ttk.Style(account_gui)
style.configure("Treeview", font=("Arial", 12), rowheight=40,borderwidth=0, highlightthickness=0)
style.configure("Treeview.Heading", font=("Arial Bold", 12))

table_account = ttk.Treeview(FRight,columns=("ID_EM","ID","Username","Level","Employee","First_Name","Last_Name","Password","Address","Contact"),show="headings")

scrollbar = ttk.Scrollbar(FRight, orient="vertical", command=table_account.yview)
table_account.configure(yscrollcommand=scrollbar.set)
scrollbar.pack(side="right", fill=Y)

table_account.heading("ID",text="ID")
table_account.heading("Username",text="Username")
table_account.heading("Level",text="Level")
table_account.heading("Employee",text="Employee")

table_account.column("ID_EM",width=0,stretch=False)
table_account.column("ID",width=30,anchor=CENTER)
table_account.column("Username",width=100,anchor=CENTER)
table_account.column("Level",width=30,anchor=CENTER)
table_account.column("Employee",width=100,anchor=CENTER)

table_account.column("First_Name",width=0,stretch=False)
table_account.column("Last_Name",width=0,stretch=False)
table_account.column("Password",width=0,stretch=False)
table_account.column("Address",width=0,stretch=False)
table_account.column("Contact",width=0,stretch=False)

table_account.pack(fill=BOTH,expand=True,pady=20,padx=20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions