creating a popup menu
Janos Blazi
jblazi at hotmail.com
Sat Oct 6 04:17:54 EDT 2001
I am trying to create a popup menu:
First I have
button.bind('<Button-3>',x_menu)
and then
def x_menu(event):
global menu
menu=Menu(root,tearoff=0)
menu.add_command('Edit',command=test)
menu.add_command('Delete')
menu.post(event.x_root,event.y_root,command=test)
As far as I see this is the same code as in the example by Mr. Lundh (but
for the canvas that I do not need). And it does not work, I get some weird
Tkinter error messages instead (in "Tkinter.py line 960").
J.B.
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
Check out our new Unlimited Server. No Download or Time Limits!
-----== Over 80,000 Newsgroups - 19 Different Servers! ==-----
More information about the Python-list
mailing list