Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Tk and native controls do not play along on Windows

by nikosv (Hermit)
on Jan 20, 2011 at 10:16 UTC ( #883281=note: print w/ replies, xml ) Need Help??


in reply to Re: Tk and native controls do not play along on Windows
in thread Tk and native controls do not play along on Windows

It would be worth trying invoking the ShBrowseForFolder() api from within a thread

that was one of my intial approaches,which works perfectly painting wise,but the app breaks shortly after since Tk is not thread safe


Comment on Re^2: Tk and native controls do not play along on Windows
Re^3: Tk and native controls do not play along on Windows
by BrowserUk (Pope) on Jan 20, 2011 at 10:47 UTC
    but the app breaks shortly after since Tk is not thread safe

    Then only use Tk from one thread. Really, it works just fine.

    If you'd care to post your working but crashing code, I'll show you how to stop it from crashing.


    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      sure,I will have to trim it down to the essential point since it is part of a large program with unrelated functionality,and send it to you.
Re^3: Tk and native controls do not play along on Windows
by Anonymous Monk on Jan 20, 2011 at 10:48 UTC
    since Tk is not thread safe

    It doesn't matter if you only load Tk in one thread, see BrowserUks replies to Tk + threads and Tk and Threads

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-07-12 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls