|
|
@ -85,7 +85,7 @@ from .util import (read_QIcon, ColorScheme, text_dialog, icon_path, WaitingDialo |
|
|
|
OkButton, InfoButton, WWLabel, TaskThread, CancelButton, |
|
|
|
CloseButton, HelpButton, MessageBoxMixin, EnterButton, expiration_values, |
|
|
|
ButtonsLineEdit, CopyCloseButton, import_meta_gui, export_meta_gui, |
|
|
|
filename_field, address_field) |
|
|
|
filename_field, address_field, char_width_in_lineedit) |
|
|
|
from .installwizard import WIF_HELP_TEXT |
|
|
|
from .history_list import HistoryList, HistoryModel |
|
|
|
from .update_checker import UpdateCheck, UpdateCheckThread |
|
|
@ -1216,7 +1216,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): |
|
|
|
lambda: self.fiat_send_e.setFrozen(self.amount_e.isReadOnly())) |
|
|
|
|
|
|
|
self.max_button = EnterButton(_("Max"), self.spend_max) |
|
|
|
self.max_button.setFixedWidth(140) |
|
|
|
self.max_button.setFixedWidth(self.amount_e.width()) |
|
|
|
self.max_button.setCheckable(True) |
|
|
|
grid.addWidget(self.max_button, 4, 3) |
|
|
|
hbox = QHBoxLayout() |
|
|
@ -1248,7 +1248,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): |
|
|
|
self.spend_max() if self.max_button.isChecked() else self.update_fee() |
|
|
|
|
|
|
|
self.fee_slider = FeeSlider(self, self.config, fee_cb) |
|
|
|
self.fee_slider.setFixedWidth(140) |
|
|
|
self.fee_slider.setFixedWidth(self.amount_e.width()) |
|
|
|
|
|
|
|
def on_fee_or_feerate(edit_changed, editing_finished): |
|
|
|
edit_other = self.feerate_e if edit_changed == self.fee_e else self.fee_e |
|
|
@ -1271,7 +1271,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): |
|
|
|
self.size_e = TxSizeLabel() |
|
|
|
self.size_e.setAlignment(Qt.AlignCenter) |
|
|
|
self.size_e.setAmount(0) |
|
|
|
self.size_e.setFixedWidth(140) |
|
|
|
self.size_e.setFixedWidth(self.amount_e.width()) |
|
|
|
self.size_e.setStyleSheet(ColorScheme.DEFAULT.as_stylesheet()) |
|
|
|
|
|
|
|
self.feerate_e = FeerateEdit(lambda: 0) |
|
|
@ -1293,7 +1293,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): |
|
|
|
self.show_message(title=_('Fee rounding'), msg=text) |
|
|
|
|
|
|
|
self.feerounding_icon = QPushButton(read_QIcon('info.png'), '') |
|
|
|
self.feerounding_icon.setFixedWidth(20) |
|
|
|
self.feerounding_icon.setFixedWidth(round(2.2 * char_width_in_lineedit())) |
|
|
|
self.feerounding_icon.setFlat(True) |
|
|
|
self.feerounding_icon.clicked.connect(feerounding_onclick) |
|
|
|
self.feerounding_icon.setVisible(False) |
|
|
@ -2198,9 +2198,9 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): |
|
|
|
vbox.addWidget(QLabel(_('New Contact') + ':')) |
|
|
|
grid = QGridLayout() |
|
|
|
line1 = QLineEdit() |
|
|
|
line1.setFixedWidth(280) |
|
|
|
line1.setFixedWidth(32 * char_width_in_lineedit()) |
|
|
|
line2 = QLineEdit() |
|
|
|
line2.setFixedWidth(280) |
|
|
|
line2.setFixedWidth(32 * char_width_in_lineedit()) |
|
|
|
grid.addWidget(QLabel(_("Address")), 1, 0) |
|
|
|
grid.addWidget(line1, 1, 1) |
|
|
|
grid.addWidget(QLabel(_("Name")), 2, 0) |
|
|
|