Here is the python code:
class Button3(ToggleButton): def on_press(self): self.background_color = (0,1,0,1) SecondWindow().selected_item(self)