tshow number of inputs/outputs - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit dfb3d7b119ab43f6936d130c98a8cc20d90ca8e3 DIR parent 2af670ea2b92e835919b745d94afcb8b4ec32fda HTML Author: ThomasV <thomasv@gitorious> Date: Tue, 18 Aug 2015 18:35:52 +0200 show number of inputs/outputs Diffstat: M gui/qt/transaction_dialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py t@@ -234,7 +234,7 @@ class TxDialog(QDialog): if self.tx.locktime > 0: vbox.addWidget(QLabel("LockTime: %d\n" % self.tx.locktime)) - vbox.addWidget(QLabel(_("Inputs"))) + vbox.addWidget(QLabel(_("Inputs") + ' (%d)'%len(self.tx.inputs))) ext = QTextCharFormat() rec = QTextCharFormat() t@@ -273,7 +273,7 @@ class TxDialog(QDialog): cursor.insertBlock() vbox.addWidget(i_text) - vbox.addWidget(QLabel(_("Outputs"))) + vbox.addWidget(QLabel(_("Outputs") + ' (%d)'%len(self.tx.outputs))) o_text = QTextEdit() o_text.setFont(QFont(MONOSPACE_FONT)) o_text.setReadOnly(True)