Hi fellow TD,

Im trying to create a progress bar for my lengthy process.

I had the hope I could make things modular by having a function creating
the progress bar and keep my lengthy process in other functions.

But I'm reaching a dead end here cause I need to pass argument to my heavy
function and the thread object does provide way to pass argument but
apparently only to the target function that's to say the function creating
the progress bar itself.

So anyone knows a way to pass arguments to my function being itself an
argument to the function creating the progress bar.

Im not sure Im very clear here so let me paste a bit of code:

def heavyFunc(path):
    pass

def progressBar(func):

   func()

threading.Thread(None,progressBar,args=(heavyFunc,) ).start()

so Id like to include the path argument in that last line, somewhere...but
where?

Hope someone can help! :)

Or if someone have another way of thinking that would solve the problem?

Cheers

-- 
lucien FOSTIER
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to