Commit 36bdc3c7768afc926d9b34be7057bd97bfa54def
1 parent
b27b4dad
Exists in
master
and in
6 other branches
ENH: Busy cursor in save project
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
invesalius/control.py
@@ -195,6 +195,7 @@ class Controller(): | @@ -195,6 +195,7 @@ class Controller(): | ||
195 | session.OpenProject(filepath) | 195 | session.OpenProject(filepath) |
196 | 196 | ||
197 | def SaveProject(self, path=None): | 197 | def SaveProject(self, path=None): |
198 | + ps.Publisher().sendMessage('Begin busy cursor') | ||
198 | session = ses.Session() | 199 | session = ses.Session() |
199 | if path: | 200 | if path: |
200 | dirpath, filename = os.path.split(path) | 201 | dirpath, filename = os.path.split(path) |
@@ -206,7 +207,8 @@ class Controller(): | @@ -206,7 +207,8 @@ class Controller(): | ||
206 | prj.Project().SavePlistProject(dirpath, filename) | 207 | prj.Project().SavePlistProject(dirpath, filename) |
207 | 208 | ||
208 | session.SaveProject() | 209 | session.SaveProject() |
209 | - | 210 | + ps.Publisher().sendMessage('End busy cursor') |
211 | + | ||
210 | def CloseProject(self): | 212 | def CloseProject(self): |
211 | proj = prj.Project() | 213 | proj = prj.Project() |
212 | proj.Close() | 214 | proj.Close() |