def METHOD_NAME(self, pin, data = None):
    if pin.get() == 0:
        return
    print('cycle pin')
    if self.active:
        nb = self.builder.get_object('tabs1')
        print('current tab', nb.get_current_page())
        tab = nb.get_nth_page(nb.get_current_page())
        for c in tab.get_children():
            if c.name.partition('.')[2] == 'action':
                self.cmd.abort()
                self.cmd.mode(linuxcnc.MODE_MANUAL)
                self.cmd.wait_complete()
                c.emit('clicked')