mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 07:23:25 +00:00
qt swap_dialog: clean-up imports
This commit is contained in:
parent
2be2a510ff
commit
a98fd14f8d
1 changed files with 10 additions and 17 deletions
|
@ -1,26 +1,18 @@
|
||||||
from PyQt5 import QtCore, QtGui
|
from typing import TYPE_CHECKING
|
||||||
from PyQt5.QtCore import Qt
|
|
||||||
from PyQt5.QtWidgets import (QMenu, QHBoxLayout, QLabel, QVBoxLayout, QGridLayout, QLineEdit,
|
from PyQt5.QtWidgets import QLabel, QVBoxLayout, QGridLayout, QPushButton
|
||||||
QPushButton, QAbstractItemView, QComboBox)
|
|
||||||
from PyQt5.QtGui import QFont, QStandardItem, QBrush
|
|
||||||
|
|
||||||
from electrum.util import bh2u, NotEnoughFunds, NoDynamicFeeEstimates
|
|
||||||
from electrum.i18n import _
|
from electrum.i18n import _
|
||||||
from electrum.lnchannel import AbstractChannel, PeerState
|
|
||||||
from electrum.wallet import Abstract_Wallet
|
|
||||||
from electrum.lnutil import LOCAL, REMOTE, format_short_channel_id, LN_MAX_FUNDING_SAT
|
|
||||||
from electrum.lnutil import ln_dummy_address
|
from electrum.lnutil import ln_dummy_address
|
||||||
from electrum.lnworker import LNWallet
|
|
||||||
from electrum.transaction import PartialTxOutput
|
from electrum.transaction import PartialTxOutput
|
||||||
|
|
||||||
from .util import (MyTreeView, WindowModalDialog, Buttons, OkButton, CancelButton,
|
from .util import (WindowModalDialog, Buttons, OkButton, CancelButton,
|
||||||
EnterButton, WaitingDialog, MONOSPACE_FONT, ColorScheme)
|
EnterButton, ColorScheme, WWLabel, read_QIcon)
|
||||||
from .amountedit import BTCAmountEdit, FreezableLineEdit
|
from .amountedit import BTCAmountEdit
|
||||||
from .util import WWLabel
|
|
||||||
from .fee_slider import FeeSlider, FeeComboBox
|
from .fee_slider import FeeSlider, FeeComboBox
|
||||||
|
|
||||||
import asyncio
|
if TYPE_CHECKING:
|
||||||
from .util import read_QIcon
|
from .main_window import ElectrumWindow
|
||||||
|
|
||||||
CANNOT_RECEIVE_WARNING = """
|
CANNOT_RECEIVE_WARNING = """
|
||||||
The requested amount is higher than what you can receive in your currently open channels.
|
The requested amount is higher than what you can receive in your currently open channels.
|
||||||
|
@ -29,9 +21,10 @@ If the swap cannot be performed after 24h, you will be refunded.
|
||||||
Do you want to continue?
|
Do you want to continue?
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
class SwapDialog(WindowModalDialog):
|
class SwapDialog(WindowModalDialog):
|
||||||
|
|
||||||
def __init__(self, window):
|
def __init__(self, window: 'ElectrumWindow'):
|
||||||
WindowModalDialog.__init__(self, window, _('Submarine Swap'))
|
WindowModalDialog.__init__(self, window, _('Submarine Swap'))
|
||||||
self.window = window
|
self.window = window
|
||||||
self.config = window.config
|
self.config = window.config
|
||||||
|
|
Loading…
Add table
Reference in a new issue