4
4
from PyQt6 .QtCore import Qt
5
5
from PyQt6 .QtWidgets import QPushButton , QLabel , QVBoxLayout , QWidget , QGridLayout
6
6
7
- from electrum .gui .qt .util import WindowModalDialog , CloseButton , getOpenFileName , getSaveFileName
8
- from electrum .gui .qt .main_window import ElectrumWindow
9
-
10
7
from electrum .i18n import _
11
8
from electrum .plugin import hook
12
9
from electrum .wallet import Multisig_Wallet
13
10
14
- from .coldcard import ColdcardPlugin , xfp2str
15
11
from electrum .hw_wallet .qt import QtHandlerBase , QtPluginBase
16
12
from electrum .hw_wallet .plugin import only_hook_if_libraries_available
13
+
17
14
from electrum .gui .qt .wizard .wallet import WCScriptAndDerivation , WCHWXPub , WCHWUninitialized , WCHWUnlock
15
+ from electrum .gui .qt .util import WindowModalDialog , CloseButton , getOpenFileName , getSaveFileName , RichLabel
16
+ from electrum .gui .qt .main_window import ElectrumWindow
17
+
18
+ from .coldcard import ColdcardPlugin , xfp2str
18
19
19
20
if TYPE_CHECKING :
20
21
from electrum .gui .qt .wizard .wallet import QENewWalletWizard
@@ -177,14 +178,12 @@ def connect_and_doit():
177
178
grid = QGridLayout ()
178
179
grid .setColumnStretch (2 , 1 )
179
180
180
- # see <http://doc.qt.io/archives/qt-4.8/richtext-html-subset.html>
181
- title = QLabel ('''<center>
181
+ title = RichLabel ('''<center>
182
182
<span style="font-size: x-large">Coldcard Wallet</span>
183
183
<br><span style="font-size: medium">from Coinkite Inc.</span>
184
184
<br><a href="https://coldcardwallet.com">coldcardwallet.com</a>''' )
185
- title .setTextInteractionFlags (Qt .TextInteractionFlag .LinksAccessibleByMouse )
186
185
187
- grid .addWidget (title , 0 ,0 , 1 ,2 , Qt .AlignmentFlag .AlignHCenter )
186
+ grid .addWidget (title , 0 , 0 , 1 , 2 , Qt .AlignmentFlag .AlignHCenter )
188
187
y = 3
189
188
190
189
rows = [
@@ -199,7 +198,7 @@ def connect_and_doit():
199
198
widget = QLabel ('<tt>000000000000' )
200
199
widget .setTextInteractionFlags (Qt .TextInteractionFlag .TextSelectableByMouse | Qt .TextInteractionFlag .TextSelectableByKeyboard )
201
200
202
- grid .addWidget (QLabel (label ), y , 0 , 1 ,1 , Qt .AlignmentFlag .AlignRight )
201
+ grid .addWidget (QLabel (label ), y , 0 , 1 , 1 , Qt .AlignmentFlag .AlignRight )
203
202
grid .addWidget (widget , y , 1 , 1 , 1 , Qt .AlignmentFlag .AlignLeft )
204
203
setattr (self , member_name , widget )
205
204
y += 1
0 commit comments