From b9c4111bf0968d4b1b8b23b85e3662abda65dce7 Mon Sep 17 00:00:00 2001 From: kdmukai <934746+kdmukai@users.noreply.github.com> Date: Sat, 13 Dec 2025 11:53:10 -0600 Subject: [PATCH] Light updates to make v0.0.1 runnable --- requirements.txt | 2 ++ seedsigner.py | 20 ++++++++++---------- 2 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 00000000..e8aee974 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +embit==0.8.0 +Pillow==9.5.0 \ No newline at end of file diff --git a/seedsigner.py b/seedsigner.py index 68ff6468..ef656157 100644 --- a/seedsigner.py +++ b/seedsigner.py @@ -10,8 +10,8 @@ from PIL import Image from PIL import ImageDraw from PIL import ImageFont -from embit.src.embit.bip39 import mnemonic_to_bytes -from embit.src.embit.bip39 import mnemonic_from_bytes +from embit.bip39 import mnemonic_to_bytes +from embit.bip39 import mnemonic_from_bytes #alphabet reference alphabet = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"] @@ -89,11 +89,11 @@ height = 240 image = Image.new('RGB', (width, height)) #initialize fonts -myfont = ImageFont.truetype('/usr/share/fonts/truetype/msttcorefonts/Impact.ttf', 25) -titlefont = ImageFont.truetype('/usr/share/fonts/truetype/msttcorefonts/Impact.ttf', 18) -singleletterfont = ImageFont.truetype('/usr/share/fonts/truetype/msttcorefonts/Impact.ttf', 35) -displayphrasefont = ImageFont.truetype('/usr/share/fonts/truetype/msttcorefonts/Impact.ttf', 23) -finalwordfont = ImageFont.truetype('/usr/share/fonts/truetype/msttcorefonts/Impact.ttf', 50) +myfont = ImageFont.truetype('impact.ttf', 25) +titlefont = ImageFont.truetype('impact.ttf', 18) +singleletterfont = ImageFont.truetype('impact.ttf', 35) +displayphrasefont = ImageFont.truetype('impact.ttf', 23) +finalwordfont = ImageFont.truetype('impact.ttf', 50) # Get drawing object to draw on image. draw = ImageDraw.Draw(image) @@ -632,7 +632,7 @@ def main24wordprogram(): def iotestmethod(): #initialize fonts - iotestfont = ImageFont.truetype('/usr/share/fonts/truetype/msttcorefonts/Impact.ttf', 18) + iotestfont = ImageFont.truetype('impact.ttf', 18) # Get drawing object to draw on image. draw = ImageDraw.Draw(image) @@ -706,8 +706,8 @@ def iotestmethod(): ## MAIN MENU MODULE ## MAIN MENU MODULE ## MAIN MENU MODULE ## MAIN MENU MODULE ## MAIN MENU MODULE ## mainrunstate = 1 -mainmenufont = ImageFont.truetype('/usr/share/fonts/truetype/msttcorefonts/Impact.ttf', 20) -versionfont = ImageFont.truetype('/usr/share/fonts/truetype/msttcorefonts/Impact.ttf', 16) +mainmenufont = ImageFont.truetype('impact.ttf', 20) +versionfont = ImageFont.truetype('impact.ttf', 16) def option1(): draw.rectangle((0, 0, width, height), outline=0, fill=0)