> From: bodge...@gmail.com > Date: Tue, 28 Oct 2014 02:06:04 +0000 > To: emc-users@lists.sourceforge.net > Subject: Re: [Emc-users] Numeric entry with touchscreen and Glade > > On 28 October 2014 01:58, Chris Morley <chrisinnana...@hotmail.com> wrote: > > > Probably the easiest is to add a ignore flag to your handlers. > > > > Then set the ignore flag, call the handler then unset the flag, > > ready for the next real entry. > > Hmm. What I didn't mention is that there are 4 boxes in practice (mm > and inch CP too) so I was hoping to use the same handler for all of > them, and just decide who was the new-one on entry. > > Maybe I just have to re-think the GUI design. > > -- > atp > If you can't fix it, you don't own it. > http://www.ifixit.com/Manifesto >
The caller sends a reference of the widget. So you can check what called the handler. I am not sure what style of handler you are using.. def my_handler(self,widget): if widget == SOME WIDGET REFERENCE and flag: return True again hard to suggest without code in front of me. Chris M ------------------------------------------------------------------------------ _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users