Modules depending on different event loops in the same POE app?

2011-08-21 Thread Gunnar Strand
I'm working on a simple media control system and I am using POE with Tk. I found the RCU (remote control unit) perl module hierachy to use with my infrared remote control. RCU can be event-controlled, but it is using the Event event loop. Preferably I'd like to have everything controlled by the

Re: Modules depending on different event loops in the same POE app?

2011-08-21 Thread Nick Perez
It would probably make sense to run the RCU in a child and have it push events over the pipes of POE::Wheel::Run. Not as monolithic that way, but then you could generalize what kind of interface those two pieces use to chat. At that point you could then replace the RCU part with anything else that

Re: Modules depending on different event loops in the same POE app?

2011-08-21 Thread Gunnar Strand
Yes, I was also thinking along those lines, but I was sort of hoping for possible way to marry the Tk and the Event loops. Since POE can utilize the Tk loop, perhaps Event could have been convinced too. This is really only a one-way communication, so I was thinking about making this a