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): ...@@ -75,11 +75,13 @@ class ModelPolygons(pycam.Plugins.PluginBase):
if not models: if not models:
return return
self.core.emit_event("model-change-before") self.core.emit_event("model-change-before")
self.core.get("update_progress")("Reversing directions of contour model") progress = self.core.get("progress")
# TODO: main/sub progress bar for multiple models progress.update(text="Reversing directions of contour model")
progress.set_multiple(len(models), "Model")
for model in models: for model in models:
model.model.reverse_directions( model.model.reverse_directions(callback=progress.update)
callback=self.core.get("update_progress")) progress.update_multiple()
progress.finish()
self.core.emit_event("model-change-after") self.core.emit_event("model-change-after")
def _revise_directions(self, widget=None): 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