tEnforce minimum width of address input so it's ~ same size as a bitcoin address. - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d825578099e257d7b778ad1ebb4902fcf47249ac DIR parent c24bd3064370c11a5726775fe2366096dad73626 HTML 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: M lib/gui_lite.py | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/lib/gui_lite.py b/lib/gui_lite.py t@@ -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)