Generation

generate functionSun, 30 Jul 2023

Tkinter pandas table el evento doble clip

#https://stackoverflow.com/questions/57132958/double-click-event-on-a-tkinter-pandas-table from tkinter import * import pandas as pd root = Tk() class Cell(): def __init__(self, master, r, c, value): self.master = master self.r = r self.c = c self.value = StringVar() self.value.set(value) self.label = Label(master, textvariable = self.value) self.label.bind('<Button-1>', self.click) self.label.bind('<Double-Button-1>', self.clip) self.label.grid(row=r, column=c) def clip(self, event): print(self.value.get()) self.master.clipboard_clear() self.master.clipboard_append(self.value.get()) def click(self, event): print(

Want to kickstart your project?Use the new AI Studio to create your code