1
0

restore bip32 accounts

This commit is contained in:
ThomasV
2013-08-29 16:07:55 +02:00
parent 9d00a072fe
commit 10c805b3e7
4 changed files with 72 additions and 51 deletions

View File

@@ -147,29 +147,6 @@ class UpdateLabel(QLabel):
class Timer(QtCore.QThread):
def run(self):
while True:
self.emit(QtCore.SIGNAL('timersignal'))
time.sleep(0.5)
class HelpButton(QPushButton):
def __init__(self, text):
QPushButton.__init__(self, '?')
self.setFocusPolicy(Qt.NoFocus)
self.setFixedWidth(20)
self.clicked.connect(lambda: QMessageBox.information(self, 'Help', text, 'OK') )
class EnterButton(QPushButton):
def __init__(self, text, func):
QPushButton.__init__(self, text)
self.func = func
self.clicked.connect(func)
def keyPressEvent(self, e):
if e.key() == QtCore.Qt.Key_Return:
apply(self.func,())
class MyTreeWidget(QTreeWidget):
def __init__(self, parent):
@@ -208,26 +185,6 @@ class StatusBarButton(QPushButton):
def waiting_dialog(f):
s = Timer()
s.start()
w = QDialog()
w.resize(200, 70)
w.setWindowTitle('Electrum')
l = QLabel('')
vbox = QVBoxLayout()
vbox.addWidget(l)
w.setLayout(vbox)
w.show()
def ff():
s = f()
if s: l.setText(s)
else: w.close()
w.connect(s, QtCore.SIGNAL('timersignal'), ff)
w.exec_()
w.destroy()