electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit d825578099e257d7b778ad1ebb4902fcf47249ac
parent c24bd3064370c11a5726775fe2366096dad73626
Author: Amir Taaki <genjix@riseup.net>
Date:   Fri, 29 Jun 2012 02:11:29 +0200

Enforce minimum width of address input so it's ~ same size as a bitcoin address.

Diffstat:
Mlib/gui_lite.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/gui_lite.py b/lib/gui_lite.py @@ -67,6 +67,10 @@ class MiniWindow(QDialog): self.address_input.setObjectName("address_input") self.connect(self.address_input, SIGNAL("textChanged(QString)"), self.address_field_changed) + metrics = QFontMetrics(qApp.font()) + self.address_input.setMinimumWidth( + metrics.width("1E4vM9q25xsyDwWwdqHUWnwshdWC9PykmL")) + self.valid_address = QCheckBox() self.valid_address.setObjectName("valid_address") self.valid_address.setEnabled(False)