tim roberts eqemprobocom tejovathi p wrote 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 use execfile seems odd also use beginthreadex instead native thread module adding threading doesnt really change problem think youd solve without threading creating class using import testpy class handler def run selfi 1 selfj 2 selfk 4 while10000 print print j print k selfi 11 selfj 2 selfk 3 mainpy def funcself import temp selfthread temphandler selfthreadrun rest gui examine selfthreadi selfthreadj selfthreadk locking issues thats left exercise reader thats probably perfect solution gives general direction tim roberts eqemprobocom providenza boekelheide inc _______________________________________________ pythonwin32 mailing list kpitckaew45pythonorg httpmailpythonorgmailmanlistinfopythonwin32 wed 06 aug 2008 095641 0700 pythonwin32 regarding threads locals