Closed broshv closed 1 year ago
@broshv Please refer this example:
import customtkinter
from CTkTable import *
root = customtkinter.CTk()
def show(cell):
table.edit_column(1, value="****")
for i in range(len(value)):
table.deselect_row(i)
password = value[cell["row"]][1]
table.insert(cell["row"], 1, value=password)
table.select_row(cell["row"])
value = [["A", "password1"], ["B", "password2"], ["C", "password3"], ["D", "password4"], ["E", "password5"]]
table = CTkTable(master=root, row=5, column=2, values=value, command=show)
table.pack(expand=True, fill="both", padx=20, pady=20)
table.edit_column(1, text="****")
root.mainloop()
I tried your method out and it works, the only problem is that in my "value" table, the first and last values are both ["Name","Email","Password"] (to show the user the names of the columns), and this method also makes the "Password" label become "****", is there any way to stop this from happening?
Ah, nevermind! I used the table.insert method to change those values. Thank you!
Hello, I'm attempting to make an password manager using CustomTkinter and CTkTable. I made a successful selector for the table, but now I want to make it so when you select a row, the "password" column will go from showing "****" to the actual password (password column is the 3rd column, 2nd in python syntax). How would I go about doing this?
My code so far: