示例#1
0
文件: Imager.py 项目: hiuwo/acq4
 def quit(self):
     if self.img is not None:# clear the image ovelay if it exists
         self.cameraModule.window().removeItem(self.img)
         self.img = None
     for obj in self.objectiveROImap: # remove the ROI's for all objectives.
         try:
             self.cameraModule.window().removeItem(self.objectiveROImap[obj])
         except:
             pass
     Module.quit(self)
示例#2
0
文件: Imager.py 项目: song9206/acq4
 def quit(self):
     self.abortTask()
     # if self.imageItem is not None and self.imageItem.scene() is not None:
     #     self.imageItem.scene().removeItem(self.imageItem)
     # for obj,item in self.objectiveROImap.items(): # remove the ROI's for all objectives.
     #     try:
     #         if item.scene() is not None:
     #             item.scene().removeItem(item)
     #     except:
     #         pass
     # if self.tileRoi is not None:
     #     if self.tileRoi.scene() is not None:
     #         self.tileRoi.scene().removeItem(self.tileRoi)
     #     self.tileRoi = None
     self.camModInterface.quit()
     self.imagingCtrl.quit()
     self.imageItem = None
     Module.quit(self)
示例#3
0
 def quit(self):
     self.startBtn.setChecked(False)
     Module.quit(self)