def check_button_status(self):
        """Check that the bitcoin address is valid and that something
        is entered in the amount before making the send button clickable."""
        try:
            value = D(str(self.amount_input.text())) * (10**self.actuator.g.decimal_point)
        except decimal.InvalidOperation:
            value = None
        # self.address_input.property(...) returns a qVariant, not a bool.
        # The == is needed to properly invoke a comparison.
        if (self.address_input.property("isValid") == True and
            value is not None and 0 < self.btc_balance <= value):
            self.send_button.setDisabled(False)
        else:
            self.send_button.setDisabled(True)
dataset/ETHPy150Open bitxbay/BitXBay/electru/build/lib/electrum_gui/qt/lite_window.py/MiniWindow.check_button_status/swapped operands of `<=`