|
37 | 37 | SE_SEED_FRAME = 'Seed Extra Randomness' |
38 | 38 | SS_SEED_FRAME = 'Seed Secret & SLIP-39 Recovery Groups' |
39 | 39 |
|
| 40 | + |
40 | 41 | def theme_color( thing, theme=None ): |
41 | 42 | """Get the currency configured PySimpleGUI Theme color for thing == eg. "TEXT", "BACKGROUND. |
42 | 43 | """ |
43 | 44 | if theme is None: |
44 | 45 | theme = sg.CURRENT_LOOK_AND_FEEL |
45 | 46 | return sg.LOOK_AND_FEEL_TABLE[theme][thing] |
46 | 47 |
|
| 48 | + |
47 | 49 | # Try to pick a font; Use something like this to see what's available (ya, this sucks): |
48 | | -# |
| 50 | +# |
49 | 51 | # from tkinter import Tk, font |
50 | 52 | # root = Tk() |
51 | 53 | # font_tuple = font.families() |
@@ -286,8 +288,8 @@ def groups_layout( |
286 | 288 | default=True, **B_kwds ), |
287 | 289 | sg.Radio( "Hex", "SE", key='-SE-HEX-', visible=LO_PRO, **B_kwds ), |
288 | 290 | sg.Radio( "Die rolls, ... (SHA-512)", "SE", key='-SE-SHA-', visible=LO_REC, **B_kwds ), |
289 | | - sg.Checkbox( 'Ignore Bad Entropy', key='-SE-SIGS-C-', visible=LO_REC or LO_PRO, |
290 | | - disabled=False, **T_hue( B_kwds, 3/20 )), |
| 291 | + sg.Checkbox( 'Ignore Bad Entropy', key='-SE-SIGS-C-', visible=LO_REC or LO_PRO, |
| 292 | + disabled=False, **T_hue( B_kwds, 3/20 )), |
291 | 293 | ], |
292 | 294 | [ |
293 | 295 | sg.Frame( 'Entropy', [ |
@@ -600,11 +602,11 @@ def update_seed_data( event, window, values ): |
600 | 602 | as_entropy = 'BIP-SEED' not in update_seed_data.src |
601 | 603 | if as_entropy: |
602 | 604 | if pswd: |
603 | | - log.warning( f"BIP-39 Seed Passphrase (decrypt) ignored; using Seed Phrase Entropy, not decrypted Seed!" ) |
| 605 | + log.warning( "BIP-39 Seed Passphrase (decrypt) ignored; using Seed Phrase Entropy, not decrypted Seed!" ) |
604 | 606 | passphrase = b"" |
605 | 607 | else: |
606 | 608 | if pswd.strip() != pswd: |
607 | | - log.warning( f"BIP-39 Seed Passphrase (decrypt) contains leading/trailing whitespace; are you certain this is correct?" ) |
| 609 | + log.warning( "BIP-39 Seed Passphrase (decrypt) contains leading/trailing whitespace; are you certain this is correct?" ) |
608 | 610 | passphrase = pswd.encode( 'UTF-8' ) |
609 | 611 | seed = recover_bip39( |
610 | 612 | mnemonic = data.strip(), |
|
0 commit comments