Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: Do I need threading for my GUI?

by shmem (Chancellor)
on Feb 19, 2008 at 16:45 UTC ( [id://668837]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Do I need threading for my GUI?
in thread Do I need threading for my GUI?

Because that is the logical equivalent of your advice!

No. A construed analogy is not a logical equivalent.

My advice is to go with the framework, and try to use features of the framework rather than bending it, or mix in stuff which might lead to problems.

It just so happens that Tk can be used together with threads, but it wasn't written using threads - has it even been designed with threads in mind?

The OP was about a Tk problem, so I have posted a solution which works making use of Tk and its features. It was not me who was reaching for something entirely different, but you!

My solution might induce the wish to get a deeper understanding of how Tk works, and how to use it's lesser known internals directly - your solution of using threads just avoids a black spot which isn't in the toolkit, but in the knowledge of its user, and places on him the intellectual weight of understanding how's that thread stuff works and how to avoid pitfalls combining both... I remember you wrote something along that lines in a fine post elsewhere... ;-)

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-24 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found