popup menu in TreeCtrl drop handler
Danny Shevitz
shevitz at lanl.gov
Mon Mar 3 13:43:51 PST 2008
In a TreeCtrl I am trying to display a popup menu when I drag something
onto the TreeCtrl. I have all the events worked out and the menu created.
It's mostly working except that the popup menu flashes instead of staying up.
It is impossible to select an item in the popup menu. The TreeCtrl has a
DropTarget.
I am simply implementing (in the OnData method of the DropTarget):
menu = ...
self.treeCtrl.PopupMenuXY(menu,point[0], point[1])
any ideas what's going on?
thanks,
Danny
More information about the wxpython-users
mailing list