code: def update_looks(self):
          
          if self.state == 'active':
              style = {'color': 'red', 'linestyle': 'solid', 'fill': False}
          else:
              style = {'color': 'black', 'fill': False}
          self.poly.update(style)
docs: Updates the looks of the gate depending on state.