ParthJadhav / Tkinter-Designer

An easy and fast way to create a Python GUI 🐍
BSD 3-Clause "New" or "Revised" License
9.05k stars 831 forks source link

KeyError: 'document' #250

Open StonePig opened 2 years ago

StonePig commented 2 years ago

E:\git\Tkinter-Designer\gui>python gui.py Exception in Tkinter callback Traceback (most recent call last): File "C:\Users\yaozhong\AppData\Local\Programs\Python\Python39\lib\tkinter__init.py", line 1892, in call__ return self.func(*args) File "E:\git\Tkinter-Designer\gui\gui.py", line 72, in btn_clicked designer.design() File "E:\git\Tkinter-Designer\tkdesigner\designer.py", line 29, in design code = self.to_code() File "E:\git\Tkinter-Designer\tkdesigner\designer.py", line 21, in to_code window_data = self.file_data["document"]["children"][0]["children"][0] KeyError: 'document'

ParthJadhav commented 1 year ago

Check this out @StonePig

https://youtu.be/Qd-jJjduWeQ