Skip to content

Fix: parse nested Figma frames recursively#14

Open
okjazim wants to merge 1 commit intoAxorax:mainfrom
okjazim:fix/recursive-frame-parsing
Open

Fix: parse nested Figma frames recursively#14
okjazim wants to merge 1 commit intoAxorax:mainfrom
okjazim:fix/recursive-frame-parsing

Conversation

@okjazim
Copy link

@okjazim okjazim commented Feb 1, 2026

This PR fixes an issue where tkforge only parsed the top-level Figma frames, ignoring frames nested within other frames. The parse_file function has been updated to handle nested frames recursively, ensuring that all UI elements inside child frames are correctly parsed while preserving their relative positions. The threading behavior for top-level frames remains unchanged, and existing functionality is fully preserved. This improvement allows tkforge to reliably generate Python/Tkinter code from more complex Figma designs with multiple layers of nested frames.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant