Re: Text Selection Bug in ActiveState W32 Perl?
Vadim Konovalov <[email protected]>
| Newsgroups | gmane.comp.lang.perl.tk |
|---|---|
| Message-ID | <1128476180.2227.4.camel@mdk10> |
> I've tried inserting updates at various places, and nothing > seems to matter. It seems that the following is true: > > -If the state of the text widget is 'disabled' before > going into mainloop, you'll experience the bug. > > -If you change the state to 'normal' after going into > mainloop, everything works as expected. > > -If you change the state back to 'disabled' after > going into mainloop, everything works as expected. > > Any more pointers/suggestions are appreciated. My feeling (I didn't inspected internals for this) is that selection is wrongfully unseen at first because that was overlooked by author of perl/Tk module, but then widget restores to its normal behavior. I think you should "simulate" switching forth and back to enabled/disabled before actual work. Such tricks, when do not work with suggested "update", they usually work with "afterIdle" call. HTH. Vadim. -++**==--++**==--++**==--++**==--++**==--++**==--++**== This message was posted through the Stanford campus mailing list server. If you wish to unsubscribe from this mailing list, send the message body of "unsubscribe ptk" to [email protected]