class SpotControl(QObject):
    """ Class that allows manual adjustement of the spots. """

    def __init__(self, parent = None):
        super(SpotControl, self).__init__(parent)
        self.m = SpotModel()

	def infoTag(self, name, x, y):
		text = "%s, (%d, %d)" % (name, x, y)
		textItem = QGraphicsSimpleTextItem(self, text)

    def infoDict(names, energy, x, y, radius)
        self.m.update(x
        energy = [energy]
        x = [x]
        y = [y]
        radius = [radius]
        infolist = [energy, x, y, radius]
        infodict = {}
        for name in names:
            infodict[name] = infolist

    def loadSpots(filename)
        for line in 

    def addPoint(self, name, pos, energy, radius):
        ##from mouse click get pos, energy from filename(?), radius
        x = pos.x()
        y = pos.y()
        
        
        self.infodict[name] = 
        


self.worker = Worker(self.scene.items(), self.current_energy, parent=self)

    def counter(spots, i)
        names = []
        for spot in spots:
            names.append(i)
            i+= 1

    def 
             
