|
|
@ -10,7 +10,7 @@ from PyQt5.QtGui import * |
|
|
|
from PyQt5.QtCore import * |
|
|
|
from PyQt5.QtWidgets import * |
|
|
|
|
|
|
|
from electrum.i18n import _ |
|
|
|
from electrum.i18n import _, languages |
|
|
|
from electrum.util import FileImportFailed, FileExportFailed |
|
|
|
from electrum.paymentrequest import PR_UNPAID, PR_PAID, PR_EXPIRED |
|
|
|
|
|
|
@ -812,6 +812,11 @@ class IconCache: |
|
|
|
return self.__cache[file_name] |
|
|
|
|
|
|
|
|
|
|
|
def get_default_language(): |
|
|
|
name = QLocale.system().name() |
|
|
|
return name if name in languages else 'en_UK' |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
app = QApplication([]) |
|
|
|
t = WaitingDialog(None, 'testing ...', lambda: [time.sleep(1)], lambda x: QMessageBox.information(None, 'done', "done")) |
|
|
|