Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: endless loops for server and tk

by vkon (Curate)
on Aug 02, 2007 at 15:38 UTC ( [id://630311]=note: print w/replies, xml ) Need Help??


in reply to endless loops for server and tk

this is perfectly possible with Tcl/Tk GUI with Tcl::Tk CPAN module.

Tcl/Tk has fileevent which resolves the problem.

I have written bluetooth COM-keyboard driver this way, which works both for linux and windows. The essential part is

use Tcl::Tk; my $int = new Tcl::Tk; # ..... $int->fileevent($fhbt, readable => \&process_keyboard); # .... $int->MainLoop;
This is what you asked - file operations awake callbacks when in GUI MainLoop.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2024-04-23 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found