From 89953895f8daa60ef83f62492d0df878078f2909 Mon Sep 17 00:00:00 2001 From: Amir Taaki Date: Thu, 23 Aug 2012 10:09:54 +0100 Subject: [PATCH] Added explanation to line returning qVariant for future eyes. --- lib/gui_lite.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/gui_lite.py b/lib/gui_lite.py index d27e50a0..b8dc90e3 100644 --- a/lib/gui_lite.py +++ b/lib/gui_lite.py @@ -322,6 +322,8 @@ class MiniWindow(QDialog): 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.""" + # 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 len(self.amount_input.text()) > 0): self.send_button.setDisabled(False)