]> code.delx.au - notipod/blobdiff - notipod_gui.py
Reordered tags
[notipod] / notipod_gui.py
index 39d911ffcc1c62457b54a22f562e079b84241e9a..f4c6dde72d74e0a651019f6f916fc13538f876db 100644 (file)
@@ -116,6 +116,7 @@ class NotiPodController(NSObject):
        folderModel = objc.IBOutlet()
        loadingSheet = objc.IBOutlet()
        loadingLabel = objc.IBOutlet()
+       loadingIndicator = objc.IBOutlet()
 
        def awakeFromNib(self):
                self.runningGenerator = False
@@ -141,6 +142,7 @@ class NotiPodController(NSObject):
        def runGenerator(self, func, finish):
                assert not self.runningGenerator
                self.runningGenerator = True
+               self.loadingIndicator.startAnimation_(self)
                NSApp.beginSheet_modalForWindow_modalDelegate_didEndSelector_contextInfo_(self.loadingSheet, self.window, None, None, None)
                arg = (func(), finish)
                self.performSelectorInBackground_withObject_(self.runGeneratorThread, arg)
@@ -161,6 +163,7 @@ class NotiPodController(NSObject):
                self.runningGenerator = False
                NSApp.endSheet_(self.loadingSheet)
                self.loadingSheet.orderOut_(self)
+               self.loadingIndicator.stopAnimation_(self)
                finish()
 
        @objc.IBAction