0

how you doing? I'm fairly new to python, so please bear with me.

I have been working on GUI application using TKinter, and have implemented Threads already, so here is the part where i am stuck, i want to use progress bar to show the progress of work that is being done within a thread, so how can i calculate that how much that thread has executed? like in percentage? or anything.

any help or pointers will be highly appreciated, Thank you

Rob Murray
  • 1,773
  • 6
  • 20
  • 32
Talha Abrar
  • 880
  • 8
  • 22
  • use `time` or `datetime` module - but to calculate percentage you have to know time when thread will end its job - and it can be problem. – furas Dec 12 '16 at 01:39
  • The thing is, i'm creating new threads dynamically, so i have no idea how much each thread will take, so even if i want, i can really know time it will take. – Talha Abrar Dec 12 '16 at 18:05
  • 1
    than you can't calculate percentage. You can only use `mode="indeterminate"` and progressbar will display bar as first bar on image at http://stackoverflow.com/a/24770800/1832058 – furas Dec 12 '16 at 18:12

0 Answers0