(self, slot, right=False)
return self.send_click(windows.SingleClick(slot, button))
Left-click or right-click the slot.

        Args:
            slot (Slot): The clicked slot. Can be ``Slot`` instance or integer.
                         Set to ``inventory.cursor_slot``
                         for clicking outside the window.
Left-click or right-click the slot.
Left - click or right - click the slot .
def click_slot(self, slot, right=False):
        """
        Left-click or right-click the slot.

        Args:
            slot (Slot): The clicked slot. Can be ``Slot`` instance or integer.
                         Set to ``inventory.cursor_slot``
                         for clicking outside the window.
        """
        if isinstance(slot, int):
            slot = self.window.slots[slot]
        button = constants.INV_BUTTON_RIGHT \
            if right else constants.INV_BUTTON_LEFT
        return self.send_click(windows.SingleClick(slot, button))
def click_slot ( self , slot , right = False ) : if isinstance ( slot , int ) : slot = self . window . slots [ slot ] button = constants . INV_BUTTON_RIGHT if right else constants . INV_BUTTON_LEFT return self . send_click ( windows . SingleClick ( slot , button ) )