Open Autimatisch opened 8 months ago
I believe I figured it out! Despite the instructions saying "PIL" shouldn't be in the same directory as Pillow, it turns out it can still work (and the problem you're having disappeared).
I was contantly getting these errors: Exception("Frame not found in figma file or is empty") Exception: Frame not found in figma file or is empty
and im = im.resize((im.size[0] // 2, im.size[1] // 2), Image.ANTIALIAS)
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
So what I did was... I went into my TKDesigner directory and found the "utils.py" file in the "tkdesigner" folder. I opened up the file with notepade and changed this line: "im = im.resize((im.size[0] // 2, im.size[1] // 2), Image.ANTIALIAS)"
to
"im = im.resize((im.size[0] // 2, im.size[1] // 2), Image.LANCZOS)"
I restarted the programs and it went through just fine!
Edit: I may have jumped the gun... While it is functional, the design was absolutely obliterated
Hi X0bi3,
I modified the line in utils.py and accessed gui.py to input my Figma details. However, the results remain unchanged. If you're willing, I can privately share my link and token with you for testing purposes.
Briefly describe the bug Its probably my own fault, but my figma design is not correctly being converted to a tkinter gui
Operating System Tested on Windows 11 newest build and Windows 10 22h2
What is the expected behavior? Please see the attachment Expected/designed![expected](https://github.com/ParthJadhav/Tkinter-Designer/assets/111284547/bea5c74a-4bbb-45b1-a742-4912e6063e2d)
result after using TkinterDesigner (GUI)![results](https://github.com/ParthJadhav/Tkinter-Designer/assets/111284547/75e6b6eb-80bf-4e4e-9252-e764ef5e2824)