def setattr(self, info, object, name, value):
     """Called when any attribute is set."""
     #The parent class actually sets the value
     Handler.setattr(self, info, object, name, value)
     self.changed_point(object)
     #Choosing another reflection, or a different detector,
     # or switching to arbitrary mode
     if name in ["hkl", "detector", "brute_search", 
                 "arbitrary_bool", "arbitrary_xyz", "arbitrary_width"]:
         #Make sure the plot detector points to the right one
         self.frame.detectorPlot.set_detector(self.frame.placer.get_detector())
         #Make the map recalculate
         self.frame.map_thread.reset()
Exemplo n.º 2
0
    def setattr(self, info, object, name, value):
        # if object._manphasing and name != 'ph_man_btn':
        #    print name, value
        #    return

        Handler.setattr(self, info, object, name, value)
        # if name == 'ph_man_btn':
        #    if not object._manphasing:
        #        info.ph_man_btn.label = 'Manual'
        #    elif object._manphasing:
        #        info.ph_man_btn.label = 'Manual*'

        if name == "ft_btn":
            if object.fid._flags["ft"]:
                info.ft_btn.label = "FT*"
Exemplo n.º 3
0
 def setattr(self, info, object, name, value):
     Handler.setattr(self, info, object, name, value)
     info.object._updated = True
 def setattr(self, info, object, name, value):
     Handler.setattr(self, info, object, name, value)
Exemplo n.º 5
0
 def setattr(self, info, object, name, value):
     """Called when any attribute is set."""
     #The parent class actually sets the value
     Handler.setattr(self, info, object, name, value)
     #Do other checks
     self.check_validity()
Exemplo n.º 6
0
 def setattr(self, info, object, name, value):
     """Called when any attribute is set."""
     Handler.setattr(self, info, object, name, value)
     self.check_validity()
Exemplo n.º 7
0
 def setattr(self, info, object, name ,value):
     Handler.setattr(self, info, object, name, value)
     info.object._updated = True
Exemplo n.º 8
0
 def setattr(self, info, object, name, value):
     """Called when any attribute is set."""
     #The parent class actually sets the value
     Handler.setattr(self, info, object, name, value)
     #Do other checks
     self.check_validity()
Exemplo n.º 9
0
 def setattr(self, info, object, name, value):
     """Called when any attribute is set."""
     Handler.setattr(self, info, object, name, value)
     self.check_validity()
Exemplo n.º 10
0
 def setattr(self, info, object, name, value):
     Handler.setattr(self, info, object, name, value)