Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Perl/Tk Entry Widget

by biochris (Beadle)
on Feb 08, 2005 at 17:14 UTC ( [id://429138]=perlquestion: print w/replies, xml ) Need Help??

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

Replies are listed 'Best First'.
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
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
      Thanks, it does sound like a good one!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://429138]
Approved by Tanktalus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (1)
As of 2024-04-19 00:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found