created docstring for set_button_amount()

This commit is contained in:
Jimbo77 2012-08-22 17:45:19 -07:00
parent fac2bc7387
commit 9f4f7ee3c6
1 changed files with 2 additions and 0 deletions

View File

@ -318,6 +318,8 @@ class MiniWindow(QDialog):
self.amount_input.setText("")
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."""
if (self.address_input.property("isValid") == True and
len(self.amount_input.text()) > 0):
self.send_button.setDisabled(False)