Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Tk progressive search

by IB2017 (Pilgrim)
on Jun 29, 2018 at 16:16 UTC ( [id://1217617]=note: print w/replies, xml ) Need Help??


in reply to Tk progressive search

Probably breaking out of the subrutines is the best solution. However I am not an expert in this. You could solve it delaying a little bit the search operations, so to say "waiting" to see if the user is typing the next character or not. For example:

$EntryQuery->bind("<Key>", sub { if ($Timer){$Timer->cancel();} $Timer = $EntryQuery->after(100, sub { my $ResultsFinal=Query($QueryInput); DeleteAllRowsInTable(); PrintingResultsInTable($ResultsFinal); }); }

Monks with more experience may tell you if this is a reasonable approach.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-16 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found