Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: perl tk mainwindow hangs

by bulk88 (Priest)
on Sep 24, 2013 at 03:37 UTC ( #1055428=note: print w/ replies, xml ) Need Help??


in reply to perl tk mainwindow hangs

Since you say you cant use ithreads, you have to break the CPU heavy (I hope the reason your blocking is CPU, and not IO, since IO can be made async with a medium amount of work) workload into chunks, or during the work, every 100 ms poll to the GUI event loop for the event loop to service pending GUI events.


Comment on Re: perl tk mainwindow hangs
Re^2: perl tk mainwindow hangs
by simonz (Acolyte) on Sep 24, 2013 at 04:01 UTC

    Hi ,
    Can you please give some coding hints of how to poll the GUI event loop to serve the pending GUI events ?

      $widget->update;
      لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2014-08-01 06:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (257 votes), past polls