Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raise Exception("Frame not found in figma file or is empty") Exception: Frame not found in figma file or is empty #436

Open
EVINJSUBIN opened this issue Aug 13, 2024 · 2 comments

Comments

@EVINJSUBIN
Copy link

Traceback (most recent call last):
File "/home/youridertech/Tkinter-Designer-1.0.7/Tkinter-Designer-1.0.7/tkdesigner/designer.py", line 21, in to_code
frame = Frame(f, self.figma_file, self.output_path, self.frameCounter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/youridertech/Tkinter-Designer-1.0.7/Tkinter-Designer-1.0.7/tkdesigner/figma/frame.py", line 29, in init
self.elements = [
^
TypeError: 'NoneType' object is not iterable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.11/tkinter/init.py", line 1948, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "/home/youridertech/Tkinter-Designer-1.0.7/Tkinter-Designer-1.0.7/gui/gui.py", line 72, in btn_clicked
designer.design()
File "/home/youridertech/Tkinter-Designer-1.0.7/Tkinter-Designer-1.0.7/tkdesigner/designer.py", line 32, in design
code = self.to_code()
^^^^^^^^^^^^^^
File "/home/youridertech/Tkinter-Designer-1.0.7/Tkinter-Designer-1.0.7/tkdesigner/designer.py", line 23, in to_code
raise Exception("Frame not found in figma file or is empty")
Exception: Frame not found in figma file or is empty

@ammar26627
Copy link

In Figma, you need to make the base as a frame element. I assume you started with a rectangle

@EVINJSUBIN
Copy link
Author

Yes Bro Thank you

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

No branches or pull requests

2 participants