|
@ -38,32 +38,30 @@ import queue |
|
|
import asyncio |
|
|
import asyncio |
|
|
from typing import Optional, TYPE_CHECKING, Sequence, List, Union |
|
|
from typing import Optional, TYPE_CHECKING, Sequence, List, Union |
|
|
|
|
|
|
|
|
from PyQt5.QtGui import QPixmap, QKeySequence, QIcon, QCursor, QFont |
|
|
from PyQt5.QtGui import QPixmap, QKeySequence, QIcon, QCursor |
|
|
from PyQt5.QtCore import Qt, QRect, QStringListModel, QSize, pyqtSignal |
|
|
from PyQt5.QtCore import Qt, QRect, QStringListModel, QSize, pyqtSignal |
|
|
from PyQt5.QtWidgets import (QMessageBox, QComboBox, QSystemTrayIcon, QTabWidget, |
|
|
from PyQt5.QtWidgets import (QMessageBox, QComboBox, QSystemTrayIcon, QTabWidget, |
|
|
QSpinBox, QMenuBar, QFileDialog, QCheckBox, QLabel, |
|
|
QMenuBar, QFileDialog, QCheckBox, QLabel, |
|
|
QVBoxLayout, QGridLayout, QLineEdit, QTreeWidgetItem, |
|
|
QVBoxLayout, QGridLayout, QLineEdit, |
|
|
QHBoxLayout, QPushButton, QScrollArea, QTextEdit, |
|
|
QHBoxLayout, QPushButton, QScrollArea, QTextEdit, |
|
|
QShortcut, QMainWindow, QCompleter, QInputDialog, |
|
|
QShortcut, QMainWindow, QCompleter, QInputDialog, |
|
|
QWidget, QMenu, QSizePolicy, QStatusBar) |
|
|
QWidget, QSizePolicy, QStatusBar) |
|
|
|
|
|
|
|
|
import electrum |
|
|
import electrum |
|
|
from electrum import (keystore, simple_config, ecc, constants, util, bitcoin, commands, |
|
|
from electrum import (keystore, ecc, constants, util, bitcoin, commands, |
|
|
coinchooser, paymentrequest) |
|
|
paymentrequest) |
|
|
from electrum.bitcoin import COIN, is_address |
|
|
from electrum.bitcoin import COIN, is_address |
|
|
from electrum.plugin import run_hook |
|
|
from electrum.plugin import run_hook |
|
|
from electrum.i18n import _ |
|
|
from electrum.i18n import _ |
|
|
from electrum.util import (format_time, format_satoshis, format_fee_satoshis, |
|
|
from electrum.util import (format_time, format_satoshis, format_fee_satoshis, |
|
|
format_satoshis_plain, NotEnoughFunds, |
|
|
format_satoshis_plain, |
|
|
UserCancelled, NoDynamicFeeEstimates, profiler, |
|
|
UserCancelled, profiler, |
|
|
export_meta, import_meta, bh2u, bfh, InvalidPassword, |
|
|
export_meta, import_meta, bh2u, bfh, InvalidPassword, |
|
|
base_units, base_units_list, base_unit_name_to_decimal_point, |
|
|
decimal_point_to_base_unit_name, |
|
|
decimal_point_to_base_unit_name, quantize_feerate, |
|
|
|
|
|
UnknownBaseUnit, DECIMAL_POINT_DEFAULT, UserFacingException, |
|
|
UnknownBaseUnit, DECIMAL_POINT_DEFAULT, UserFacingException, |
|
|
get_new_wallet_name, send_exception_to_crash_reporter, |
|
|
get_new_wallet_name, send_exception_to_crash_reporter, |
|
|
InvalidBitcoinURI, InvoiceError) |
|
|
InvalidBitcoinURI) |
|
|
from electrum.util import PR_TYPE_ONCHAIN, PR_TYPE_LN |
|
|
from electrum.util import PR_TYPE_ONCHAIN, PR_TYPE_LN |
|
|
from electrum.lnutil import PaymentFailure, SENT, RECEIVED |
|
|
|
|
|
from electrum.transaction import (Transaction, PartialTxInput, |
|
|
from electrum.transaction import (Transaction, PartialTxInput, |
|
|
PartialTransaction, PartialTxOutput) |
|
|
PartialTransaction, PartialTxOutput) |
|
|
from electrum.address_synchronizer import AddTransactionException |
|
|
from electrum.address_synchronizer import AddTransactionException |
|
@ -74,7 +72,7 @@ from electrum.network import Network, TxBroadcastError, BestEffortRequestFailed |
|
|
from electrum.exchange_rate import FxThread |
|
|
from electrum.exchange_rate import FxThread |
|
|
from electrum.simple_config import SimpleConfig |
|
|
from electrum.simple_config import SimpleConfig |
|
|
from electrum.logging import Logger |
|
|
from electrum.logging import Logger |
|
|
from electrum.util import PR_PAID, PR_UNPAID, PR_INFLIGHT, PR_FAILED |
|
|
from electrum.util import PR_PAID, PR_FAILED |
|
|
from electrum.util import pr_expiration_values |
|
|
from electrum.util import pr_expiration_values |
|
|
from electrum.lnutil import ln_dummy_address |
|
|
from electrum.lnutil import ln_dummy_address |
|
|
|
|
|
|
|
@ -85,12 +83,12 @@ from .qrtextedit import ShowQRTextEdit, ScanQRTextEdit |
|
|
from .transaction_dialog import show_transaction |
|
|
from .transaction_dialog import show_transaction |
|
|
from .fee_slider import FeeSlider |
|
|
from .fee_slider import FeeSlider |
|
|
from .util import (read_QIcon, ColorScheme, text_dialog, icon_path, WaitingDialog, |
|
|
from .util import (read_QIcon, ColorScheme, text_dialog, icon_path, WaitingDialog, |
|
|
WindowModalDialog, ChoicesLayout, HelpLabel, FromList, Buttons, |
|
|
WindowModalDialog, ChoicesLayout, HelpLabel, Buttons, |
|
|
OkButton, InfoButton, WWLabel, TaskThread, CancelButton, |
|
|
OkButton, InfoButton, WWLabel, TaskThread, CancelButton, |
|
|
CloseButton, HelpButton, MessageBoxMixin, EnterButton, |
|
|
CloseButton, HelpButton, MessageBoxMixin, EnterButton, |
|
|
ButtonsLineEdit, CopyCloseButton, import_meta_gui, export_meta_gui, |
|
|
import_meta_gui, export_meta_gui, |
|
|
filename_field, address_field, char_width_in_lineedit, webopen, |
|
|
filename_field, address_field, char_width_in_lineedit, webopen, |
|
|
MONOSPACE_FONT, TRANSACTION_FILE_EXTENSION_FILTER) |
|
|
TRANSACTION_FILE_EXTENSION_FILTER) |
|
|
from .util import ButtonsTextEdit |
|
|
from .util import ButtonsTextEdit |
|
|
from .installwizard import WIF_HELP_TEXT |
|
|
from .installwizard import WIF_HELP_TEXT |
|
|
from .history_list import HistoryList, HistoryModel |
|
|
from .history_list import HistoryList, HistoryModel |
|
|