[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tkinter treeview widget - bind doubleclick to items only ?

Hello all,

I've create a treeview, and would (ofcourse) want to register some 
mouse-clicking on it, and for that I've found the ".bind()" method.

There is a slight problem with it though: when I click a columns caption 
(for sorting) the events code also gets fired, which causes problems.

I've found that I can connect mouse-click events to the column captions  as 
shown in the second example here in the "self.tree.heading()" call :

I was wondering if something similar is maybe also available for the items 
below it ...

If not, how do I ignore mouseclicks that are not done on one of the items ?

Rudy Wieser