in reply to Success!
in thread using the send_im function in Net::OSCAR in Tk outside of a Net::OSCAR callback
In Tk the MainLoop is
So if you can't use Tk::MainLoop in your program to be the controlling event loop, you can place the DoOneEvent in a timer, or a while(1) loop and effectively keep Tk active and responding.sub MainLoop unless ($inMainLoop) { local $inMainLoop = 1; while (Tk::MainWindow->Count) { DoOneEvent(0); } } }
But it sounds like you are on your way with threads, and that is your best option.
|
|---|