Using the event coordinates to figure out which widget was clicked sounds like a good idea. So, since the user might have moved the window on the screen, how do I figure out the widget's coordinates in order to figure out which of the four widgets the mouse was over when the user clicked a button? this is the first time I am doing this so I am not even sure what I need to search for online. Thanks
On May 1, 2012, at 7:31 PM, Alan Gauld wrote: > On 01/05/12 21:59, Chris Hare wrote: >> ... what I can't figure out is how to detect in the popup menu code > > which image fired the event > > >> def do_popup(self,event): > > > The event argument has various attributes. For a mouse click it should > include the screen coordinates. You can use those to determine which widget > was being clicked. > > HTH > > -- > Alan G > Author of the Learn to Program web site > http://www.alan-g.me.uk/ > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor