Python TkinterTreectrl drag items Python TkinterTreectrl drag items tkinter tkinter

Python TkinterTreectrl drag items


Ignoring the fact that this question is not the newest one - is there a specific reason why you use self.t.bind instead of self.t.notify_bind?

For me this looks pretty like the point where the Interface to tktreecrtl from Michael is not using the wrapper functionality but attempting to directly bind <Drag-begin> to a Treectrl instance which is based on tkinter.Widget

  • Source Extract:

    class Treectrl(tkinter.Widget):

tkinter.Widget has no possibility to find a '' event as this is generated inside tktreectrl libraries. So you get the

bad event type or keysym "Drag"

Changing to self.t.notify_bind should solve your problem.