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

Generation not Working #431

Open
yassocoder12 opened this issue Jul 16, 2024 · 1 comment
Open

Generation not Working #431

yassocoder12 opened this issue Jul 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@yassocoder12
Copy link

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Dell\Downloads\Tkinter-Designer-master\Tkinter-Designer-master\tkdesigner\designer.py", line 21, in to_code
frame = Frame(f, self.figma_file, self.output_path, self.frameCounter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Dell\Downloads\Tkinter-Designer-master\Tkinter-Designer-master\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 "C:\Program Files\Python312\Lib\tkinter_init_.py", line 1968, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "C:\Users\Dell\Downloads\Tkinter-Designer-master\Tkinter-Designer-master\gui\gui.py", line 72, in btn_clicked
designer.design()
File "C:\Users\Dell\Downloads\Tkinter-Designer-master\Tkinter-Designer-master\tkdesigner\designer.py", line 32, in design
code = self.to_code()
^^^^^^^^^^^^^^
File "C:\Users\Dell\Downloads\Tkinter-Designer-master\Tkinter-Designer-master\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

I Get this error when i press "Generate"

@yassocoder12 yassocoder12 added the bug Something isn't working label Jul 16, 2024
@ammar26627
Copy link

Tkinter Designer detects the frame element in figma as a base. You need to first create a frame and then add other elements like buttons, texts in it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants