26
26
print ('Could not import UI files, did you run contrib/generate-ui.sh' )
27
27
exit (- 1 )
28
28
29
- from PySide2 .QtGui import QRegExpValidator
30
- from PySide2 .QtWidgets import QApplication , QDialog , QDialogButtonBox , QFileDialog , QLineEdit , QMessageBox , QMainWindow , QMenu
31
- from PySide2 .QtCore import QCoreApplication , QRegExp , Signal , Slot
29
+ from PySide6 .QtGui import QRegularExpressionValidator
30
+ from PySide6 .QtWidgets import QApplication , QDialog , QDialogButtonBox , QFileDialog , QLineEdit , QMessageBox , QMainWindow , QMenu
31
+ from PySide6 .QtCore import QCoreApplication , QRegularExpression , Signal , Slot
32
32
33
33
def do_command (f , * args , ** kwargs ):
34
34
result = {}
@@ -59,7 +59,7 @@ def __init__(self, client, prompt_pin=True):
59
59
self .setWindowTitle ('Send Pin' )
60
60
self .client = client
61
61
self .ui .pin_lineedit .setFocus ()
62
- self .ui .pin_lineedit .setValidator (QRegExpValidator ( QRegExp ("[1-9]+" ), None ))
62
+ self .ui .pin_lineedit .setValidator (QRegularExpressionValidator ( QRegularExpression ("[1-9]+" ), None ))
63
63
self .ui .pin_lineedit .setEchoMode (QLineEdit .Password )
64
64
65
65
self .ui .p1_button .clicked .connect (self .button_clicked (1 ))
@@ -100,7 +100,7 @@ def __init__(self, client):
100
100
self .setWindowTitle ('Get xpub' )
101
101
self .client = client
102
102
103
- self .ui .path_lineedit .setValidator (QRegExpValidator ( QRegExp ("m(/[0-9]+['Hh]?)+" ), None ))
103
+ self .ui .path_lineedit .setValidator (QRegularExpressionValidator ( QRegularExpression ("m(/[0-9]+['Hh]?)+" ), None ))
104
104
self .ui .path_lineedit .setFocus ()
105
105
self .ui .buttonBox .button (QDialogButtonBox .Close ).setAutoDefault (False )
106
106
@@ -186,7 +186,7 @@ def __init__(self, client):
186
186
self .setWindowTitle ('Sign Message' )
187
187
self .client = client
188
188
189
- self .ui .path_lineedit .setValidator (QRegExpValidator ( QRegExp ("m(/[0-9]+['Hh]?)+" ), None ))
189
+ self .ui .path_lineedit .setValidator (QRegularExpressionValidator ( QRegularExpression ("m(/[0-9]+['Hh]?)+" ), None ))
190
190
self .ui .msg_textedit .setFocus ()
191
191
192
192
self .ui .signmsg_button .clicked .connect (self .signmsg_button_clicked )
@@ -207,7 +207,7 @@ def __init__(self, client):
207
207
self .setWindowTitle ('Display Address' )
208
208
self .client = client
209
209
210
- self .ui .path_lineedit .setValidator (QRegExpValidator ( QRegExp ("m(/[0-9]+['Hh]?)+" ), None ))
210
+ self .ui .path_lineedit .setValidator (QRegularExpressionValidator ( QRegularExpression ("m(/[0-9]+['Hh]?)+" ), None ))
211
211
self .ui .path_lineedit .setFocus ()
212
212
213
213
self .ui .go_button .clicked .connect (self .go_button_clicked )
@@ -239,7 +239,7 @@ def __init__(self, opts):
239
239
self .ui .internal_checkbox .setChecked (opts ['internal' ])
240
240
self .ui .keypool_checkbox .setChecked (opts ['keypool' ])
241
241
self .ui .account_spinbox .setValue (opts ['account' ])
242
- self .ui .path_lineedit .setValidator (QRegExpValidator (QRegExp (r"m(/[0-9]+['Hh]?)+/\*" ), None ))
242
+ self .ui .path_lineedit .setValidator (QRegularExpressionValidator (QRegExp (r"m(/[0-9]+['Hh]?)+/\*" ), None ))
243
243
if opts ['account_used' ]:
244
244
self .ui .account_radio .setChecked (True )
245
245
self .ui .path_radio .setChecked (False )
0 commit comments