tft: picture, crop, progress bar, checkbox, radio; page RAM header fix; README sub-goals
- five more Basic types in tft_types (default variants; others refused) - the page RAM image starts with 4 x FF + one FF per component (padded to 4) - README: .tft status split into sub-goals with a stated basis each - sample generator: display direction and gradient pictures; regression test walks sub-folders (84 Editor samples reproduced) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
a8622e7462
commit
0287cf21e4
8 files changed
+101
-10
No files matched your search
@@ -138,7 +138,7 @@ class Build(unittest.TestCase):
|
||||
def test_against_editor_samples(self):
|
||||
from nxhmi.container import HMIFile
|
||||
done = 0
|
||||
for ref in sorted(glob.glob(os.path.join(SAMPLES, "*.tft"))):
|
||||
for ref in sorted(glob.glob(os.path.join(SAMPLES, "**", "*.tft"), recursive=True)):
|
||||
hmi = ref[:-4] + ".HMI"
|
||||
if not os.path.exists(hmi):
|
||||
continue
|
||||
@@ -149,6 +149,7 @@ class Build(unittest.TestCase):
|
||||
with open(ref, "rb") as fh:
|
||||
self.assertEqual(out, fh.read(), os.path.basename(ref))
|
||||
done += 1
|
||||
print("%d samples reproduced byte for byte" % done, end=" ")
|
||||
self.assertGreater(done, 0)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user