Tkinter-Designer icon indicating copy to clipboard operation
Tkinter-Designer copied to clipboard

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

Open EVINJSUBIN opened this issue 1 year ago • 2 comments

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

EVINJSUBIN avatar Aug 13 '24 12:08 EVINJSUBIN

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

ammar26627 avatar Sep 02 '24 04:09 ammar26627

Yes Bro Thank you

EVINJSUBIN avatar Sep 09 '24 17:09 EVINJSUBIN