Esempio n. 1
0
File: fan.py Progetto: hiyoku/ccd10
 def set_fan_on(self):
     self.lock.set_acquire()
     try:
         SbigDriver.start_fan()
     except Exception as e:
         self.console.raise_text("Error off/on the Fan.\n{}".format(e))
     finally:
         self.lock.set_release()
         self.fanField.setText(self.fan_status())
Esempio n. 2
0
 def set_fan_on(self):
     self.lock.set_acquire()
     try:
         SbigDriver.start_fan()
     except Exception as e:
         self.console.raise_text("Error off/on the Fan.\n{}".format(e))
     finally:
         self.lock.set_release()
         self.fanField.setText(self.fan_status())
Esempio n. 3
0
File: fan.py Progetto: hiyoku/ccd10
 def s_fan(self):
     self.lock.set_acquire()
     try:
         if SbigDriver.is_fanning():
             SbigDriver.stop_fan()
             self.fanField.setText('Fan Off')
         else:
             SbigDriver.start_fan()
             self.fanField.setText('Fan On')
     except Exception as e:
         self.console.raise_text("Error off/on the Fan.\n{}".format(e))
     finally:
         self.lock.set_release()
         self.fanField.setText(self.fan_status())
Esempio n. 4
0
 def s_fan(self):
     self.lock.set_acquire()
     try:
         if SbigDriver.is_fanning():
             SbigDriver.stop_fan()
             self.fanField.setText('Fan Off')
         else:
             SbigDriver.start_fan()
             self.fanField.setText('Fan On')
     except Exception as e:
         self.console.raise_text("Error off/on the Fan.\n{}".format(e))
     finally:
         self.lock.set_release()
         self.fanField.setText(self.fan_status())