URI: 
       tlock icon in password dialog - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit f22c55f426e84da96927c7cae8926d5d8afb30a6
   DIR parent dcedb2d74fcd3babf7c7b23ab06268ff8823be7d
  HTML Author: thomasv <thomasv@gitorious>
       Date:   Fri, 13 Sep 2013 14:16:13 +0200
       
       lock icon in password dialog
       
       Diffstat:
         M gui/gui_classic/password_dialog.py  |      33 ++++++++++++++++++++++---------
       
       1 file changed, 24 insertions(+), 9 deletions(-)
       ---
   DIR diff --git a/gui/gui_classic/password_dialog.py b/gui/gui_classic/password_dialog.py
       t@@ -33,22 +33,37 @@ def make_password_dialog(self, wallet, msg):
            self.conf_pw.setEchoMode(2)
            
            vbox = QVBoxLayout()
       -    vbox.addWidget(QLabel(msg))
       +    label = QLabel(msg)
       +    label.setWordWrap(True)
        
            grid = QGridLayout()
            grid.setSpacing(8)
       -    grid.setColumnMinimumWidth(0,300)
       +    grid.setColumnMinimumWidth(0, 70)
            grid.setColumnStretch(1,1)
        
       +    logo = QLabel()
       +    lockfile = ":icons/lock.png" if wallet.use_encryption else ":icons/unlock.png"
       +    logo.setPixmap(QPixmap(lockfile).scaledToWidth(36))
       +    logo.setAlignment(Qt.AlignCenter)
       +
       +    grid.addWidget(logo,  0, 0)
       +    grid.addWidget(label, 0, 1, 1, 2)
       +    vbox.addLayout(grid)
       +
       +    grid = QGridLayout()
       +    grid.setSpacing(8)
       +    grid.setColumnMinimumWidth(0, 250)
       +    grid.setColumnStretch(1,1)
       +    
            if wallet.use_encryption:
       -        grid.addWidget(QLabel(_('Password')), 1, 0)
       -        grid.addWidget(self.pw, 1, 1)
       +        grid.addWidget(QLabel(_('Password')), 0, 0)
       +        grid.addWidget(self.pw, 0, 1)
                
       -    grid.addWidget(QLabel(_('New Password')), 2, 0)
       -    grid.addWidget(self.new_pw, 2, 1)
       +    grid.addWidget(QLabel(_('New Password')), 1, 0)
       +    grid.addWidget(self.new_pw, 1, 1)
        
       -    grid.addWidget(QLabel(_('Confirm Password')), 3, 0)
       -    grid.addWidget(self.conf_pw, 3, 1)
       +    grid.addWidget(QLabel(_('Confirm Password')), 2, 0)
       +    grid.addWidget(self.conf_pw, 2, 1)
            vbox.addLayout(grid)
        
            vbox.addStretch(1)
       t@@ -99,7 +114,7 @@ class PasswordDialog(QDialog):
                self.setModal(1)
                self.wallet = wallet
                self.parent = parent
       -        msg = (_('Your wallet is encrypted. Use this dialog to change your password.')+'\n'\
       +        msg = (_('Your wallet is encrypted. Use this dialog to change your password.') + ' '\
                       +_('To disable wallet encryption, enter an empty new password.')) \
                       if wallet.use_encryption else _('Your wallet keys are not encrypted')
                make_password_dialog(self, wallet, msg)