Commit 8ccf8897 authored by sumpfralle's avatar sumpfralle

disable menubar during toolpath generation


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@457 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 423b35c8
...@@ -1850,12 +1850,14 @@ class ProjectGui: ...@@ -1850,12 +1850,14 @@ class ProjectGui:
def toggle_progress_bar(self, status): def toggle_progress_bar(self, status):
if status: if status:
self.menubar.set_sensitive(False)
self.task_pane.set_sensitive(False) self.task_pane.set_sensitive(False)
self.update_progress_bar("", 0) self.update_progress_bar("", 0)
self.progress_widget.show() self.progress_widget.show()
else: else:
self.progress_widget.hide() self.progress_widget.hide()
self.task_pane.set_sensitive(True) self.task_pane.set_sensitive(True)
self.menubar.set_sensitive(True)
def update_progress_bar(self, text=None, percent=None): def update_progress_bar(self, text=None, percent=None):
if not percent is None: if not percent is 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