in reply to Use of break in Tkx

ok I did
sub cb_entry { my $win=$_[0]; $mw->g_wm_title("this is $win m8"); Tkx::break(); }
and the error message pops up. I can see that the second entry never gets reached but am not sure if this is because of the error or whether the error is harmless. Back to activestate I think. I came here from there but they just said read the TK docs.

Replies are listed 'Best First'.
Re^2: Use of break in Tkx
by Anonymous Monk on Oct 03, 2015 at 10:23 UTC
      Yes I'm slowly seeing that... I just modified the callback to subdue the error and break in the forms I've tried isn't "doing" it. Thanks for the advice
      sub custom_error_handler {} #just supresses error sub cb_entry { my $win=$_[0]; eval { $mw->g_wm_title("this is $win m8"); #this works ok #NONE OF THESE DO ANYTHING Tkx::break(); $win->break; Tkx::break(".e"); }; custom_error_handler($@) if $@; }
        Try next;