def METHOD_NAME(self, event):
    button = event["button"]
    if button == self.button_open:
        self.py3.command_run(f"xdg-open {self.project}")
    if button != self.button_refresh:
        self.py3.prevent_refresh()