Commit b62bd6ea authored by sumpfralle's avatar sumpfralle

fixed the last remaining piece of the "progress manager" transition


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@1221 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 67305a12
......@@ -75,11 +75,13 @@ class ModelPolygons(pycam.Plugins.PluginBase):
if not models:
return
self.core.emit_event("model-change-before")
self.core.get("update_progress")("Reversing directions of contour model")
# TODO: main/sub progress bar for multiple models
progress = self.core.get("progress")
progress.update(text="Reversing directions of contour model")
progress.set_multiple(len(models), "Model")
for model in models:
model.model.reverse_directions(
callback=self.core.get("update_progress"))
model.model.reverse_directions(callback=progress.update)
progress.update_multiple()
progress.finish()
self.core.emit_event("model-change-after")
def _revise_directions(self, widget=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment