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