work on status bar
[sface.git] / sface / screens / mainscreen.py
index fb0e99d..96ec7ed 100644 (file)
@@ -178,27 +178,27 @@ class SliceWidget(QWidget):
             self.updateView()
 
     def submit(self):
-        self.parent().setStatus("TODO: Submit not implemented yet!")
+        self.parent().setStatus("TODO: Submit not implemented yet!", 3000)
         
     def readSliceRSpec(self):
-        rspec_file = os.path.expanduser("~/.sfi/%s.rspec" % config.getSlice())
+        rspec_file = config.getSliceRSpecFile()
         xml = open(rspec_file).read()
         return xml
 
     def refresh(self, link=None):
         if not config.getSlice():
-            self.parent().setStatus("<font color='red'>Slice not set yet!</font>")
+            self.parent().setStatus("<font color='red'>Slice not set yet!</font>", timeout=None)
             return
 
         self.process = SfiProcess()
         outfile = self.process.getRSpecFromSM()
-        self.parent().setStatus("Updating slice data. This may take some time...")
+        self.parent().setStatus("Updating slice data. This may take some time...", timeout=None)
         
         self.connect(self.process, SIGNAL('finished()'), self.refreshFinished)
 
     def refreshFinished(self):
         del self.process
-        self.parent().setStatus("<font color='green'>Slice data updated.</font>")
+        self.parent().setStatus("<font color='green'>Slice data updated.</font>", timeout=5000)
         self.updateView()
 
     def updateView(self):