def btnSendClicked(self):
        entries = [self.entries.itemAt(i).widget()
                    for i in xrange(self.entries.count())]
        if not all([entry.isValid() for entry in entries]):
            return
        data = [entry.getData() for entry in entries]
        message = 'Are you sure you want to send'
        for recipient in data:
            asset = wallet.get_asset_definition(recipient['moniker'])
            value = asset.format_value(recipient['value'])
            message += '<br><b>{value} {moniker}</b> to {address}'.format(**{
                'value': value,
                'moniker': 'BTC' if recipient['moniker'] == 'bitcoin' \
                    else recipient['moniker'],
                'address': recipient['address'],
            })
        message += '?'
        retval = QtGui.QMessageBox.question(
            self, 'Confirm send coins',
            message,
            QtGui.QMessageBox.Yes | QtGui.QMessageBox.Cancel,
            QtGui.QMessageBox.Cancel)
        if retval != QtGui.QMessageBox.Yes:
            return
        # check value exceeds balance
        currency = collections.defaultdict(Decimal)
        for recipient in data:
            currency[recipient['moniker']] += recipient['value']
        for moniker, value in currency.items():
            if value > wallet.get_available_balance(moniker):
                QtGui.QMessageBox.warning(
                    self, 'Send coins',
                    'The amount for <b>%s</b> exceeds your available balance.' % moniker,
                    QtGui.QMessageBox.Ok)
                return
        wallet.send_coins(data)
        self.parent().parent().parent().update()
dataset/ETHPy150Open chromaway/ngcccbase/ui/sendcoinspage.py/SendcoinsPage.btnSendClicked/original