text_combined: mike driscoll szgupvesgcomarshalliaus message 6 date thu 20 mar 2008 160715 0530 tejovathi p subject pythonwin32 regarding threads locals kpitckaew45pythonorg zi9rpyfcecqlistssourceforgenet messageid contenttype textplain charsetiso88591 hi gui applicaionalong threads run button pressed gui separate thread starts thread created using beginthreadex required activity thread executed want locals present inside threads run function avaialbe gui class thread class created eg mainpy class workerthreadthreadingthread def __init__self threadingthread__init__self start thread invoke run method selfstart def runself start thread executed selffunc separate thread selfworkerthread tid win32processbeginthreadexnone 0 selffunc 1 def funcself execfiletemppy class guiwxframe def __init__self def createthreadself selfworkerthread workerthread name _main_ temppy 1 j 2 k 4 while10000 print print j print k 11 j j2 k k 3 thread executin func printing j k main gui thread get values j k tried sysmodules sys_current_frames vars nothing worked ideally locals func passed gui thread one recommended ways thread write information file either send event gui theres data use timer gui event loop looks file im actually messing tim goldens watch_directorypy file vpn project im working wxpython gui app watches file changes reads check goldens work httptgoldenscsabrencompythonwin32_how_do_iwatch_directory_for_cha ngeshtml python docs talk using threading modules event object basic communication talking httpdocspythonorglibeventobjectshtml wxpython wait threading event use wxpostevent let gui know thread event im sure similar methods tkinter pygtk whatever youre using mike _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 wed 06 aug 2008 113341 0500 pythonwin32 regarding threads locals