I am creating a progress bar in slicer. But when using threads slicer is exiting abnormally.
This the runnable I created
This is the driver code
Why is the slicer exiting? Can I know how to create a progress bar in slicer qt that will get progressed on a thread?
mikebind
(Mike Bindschadler)
October 8, 2020, 4:57pm
2
Do you need a separate thread? Have you tried slicer.util.createProgressDialog()? You might find these examples helpful: Use progress bar from python
pieper
(Steve Pieper (Isomics, Inc.))
October 8, 2020, 7:12pm
3
You need to be very careful with threads in vtk and python. Another alternative is to start processes instead. Here’s a prototype implementation that works well.