How to move popup window when scrolling a tkinter treeview?
问题 I have a tkinter treeview with a vertical scrollbar. To make it (look like) editable, I create a popup Entry when the user double-clicks on a cell of the treeview. However, I can't make the popup to move when the treeview is scrolled. import tkinter as tk from tkinter import ttk class EntryPopup(ttk.Entry): def __init__(self, parent, itemId, col, **kw): super().__init__(parent, **kw) self.tv = parent self.iId = itemId self.column = col self['exportselection'] = False self.focus_force() self