From: Dave R. <dav...@ma...> - 2002-05-21 20:32:40
|
the (obvious) solution is to use a different ID, which I am able to do without a problem. /dave On Tuesday, May 21, 2002, at 12:56 , Dave Roe wrote: > I have been playing with creating GUIs on the fly with wxPerl and > installing events with dynamic Perl code. for example, I might take the > scalar '{ print "hello world\n" }', eval it into an anonymous > subroutine and install it as an event handler for a button using > EVT_BUTTON(). > > however, what I have found is that if you destroy that window, > re-create another window (with the same ID) and install a different > anonymous subroutine, say '{ print "hello again\n" }', the event still > triggers "hello world" to be printed. > > any thoughts on why this might be happening and/or a work-around? > > rgds, > /dave > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users > > -------------------------------- 8< -------------------------------- pls note - new contact details: email: dav...@ma... phone: (650) 906 3497 dav...@em... is still a valid email address |