From 8fabad4b51667e8ed3bdeee2225dfb2c8d4186f0 Mon Sep 17 00:00:00 2001 From: f321x Date: Tue, 4 Nov 2025 10:21:09 +0100 Subject: [PATCH] qt: send tab: show "pay to many" label This changes the "Pay to" label to "Pay to many" if the user enables the "Pay to many" option and aligns it at the top of the payto_e instead of moving ot to the center when the payto_e expands. --- electrum/gui/qt/send_tab.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/electrum/gui/qt/send_tab.py b/electrum/gui/qt/send_tab.py index 1eda3c64b..96264c3ae 100644 --- a/electrum/gui/qt/send_tab.py +++ b/electrum/gui/qt/send_tab.py @@ -84,8 +84,8 @@ class SendTab(QWidget, MessageBoxMixin, Logger): + _("To set the amount to 'max', use the '!' special character.") + "\n" + _("Integers weights can also be used in conjunction with '!', " "e.g. set one amount to '2!' and another to '3!' to split your coins 40-60.")) - payto_label = HelpLabel(_('Pay to'), msg) - grid.addWidget(payto_label, 0, 0) + self.payto_label = HelpLabel(_('Pay to'), msg) + grid.addWidget(self.payto_label, 0, 0, Qt.AlignmentFlag.AlignLeft) grid.addWidget(self.payto_e, 0, 1, 1, 4) #completer = QCompleter() @@ -822,6 +822,11 @@ class SendTab(QWidget, MessageBoxMixin, Logger): _('You may load a CSV file using the file icon.') ]) self.window.show_tooltip_after_delay(message) + self.payto_label.setAlignment(Qt.AlignmentFlag.AlignTop) + self.payto_label.setText(_('Pay to many')) + else: + self.payto_label.setAlignment(Qt.AlignmentFlag.AlignLeft) + self.payto_label.setText(_('Pay to')) def payto_contacts(self, labels): paytos = [self.window.get_contact_payto(label) for label in labels]