biochris has asked for the wisdom of the Perl Monks concerning the following question:
Anyone might know:
Windows 2000 Pro, ActivePerl/Tk v5.8.4
When I try to copy a long string (like a DNA sequence)
in an "entry" widget of Perl/Tk, it just takes too long.
It will do it eventually but it takes a while.
If the sequence is too long (say, 60,000 bases), it takes forever, and I have to cancel the operation.
I have tried to find the answer, but it looks like it's a tough one!
Otherwise Perl/Tk is great for GUI!
Thank you very much
Re: Perl/Tk Entry Widget
by samizdat (Vicar) on Feb 08, 2005 at 17:44 UTC
|
First off, let me state that I'm not a Windows Perl user. With that caveat, let me suggest a thought. I suspect that the buffering of an Entry widget is fairly small compared to that of a filesystem reader. It's a tribute to Perl that it doesn't crash, but you're filling/emptying the Entry widget's buffer from the Paste buffer many, many times. I'd suggest that you paste to Notepad, save it and then read the file in from Perl. I'll betcha that gives much faster response and also frees up your console. :D | [reply] |
Re: Perl/Tk Entry Widget
by zentara (Archbishop) on Feb 09, 2005 at 12:37 UTC
|
Off the top of my head, are you stuck using a Entry widget? If you need to transfer that much text, probably a Text widget would be better. You could simulate a giant Entry box with a Text widget, and some "creative bindings".
I'm not really a human, but I play one on earth.
flash japh
| [reply] |
|
Thanks, it does sound like a good one!
| [reply] |
|