Skip to content

How to reset the row number (row=0) in tkinter.treeview? #1

Description

@godisreal

When I open the first csv data file, the row number starts from zero, and everything seems to be OK. However, when I open the second csv file, and row number accumulates, but does not restart from zero. Why? Anyone knows the solution to this problem in tkinter.treeview ?

column= treeviewA.identify_column(event.x)# column
row = treeviewA.identify_row(event.y)  # row

cn = int(str(column).replace('#',''))
rn = int(str(row).replace('I',''), base=16)

print("cn:", column, cn)
print("rn:", row, rn)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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