title: TypeError: object of type 'NoneType' has no len() | PySimpleGUI | MacOS
body: <p>I am coding a PySimple GUI script and I keep getting this:</p>
  <blockquote>
  <p>TypeError: object of type 'NoneType' has no len()</p>
  </blockquote>
  <p>(clipping of code)</p>
  <pre><code>window = sg.Window('Pico Ducky Script Manager', layout, size=(950, 350)) #950, 170
  
  while True:
    event, values = window.read()
  </code></pre>
  <p>full code here:
  <a href="https://github.com/p-i-c-o/Pico-Ducky-Script-Manager/blob/main/new.py" rel="nofollow noreferrer">https://github.com/p-i-c-o/Pico-Ducky-Script-Manager/blob/main/new.py</a></p>
  <p>I did some research and it seems the Window var. is empty so it gives me the error, but I've got no clue on how to fix it</p>
  <p>When it runs, it starts in my app bar, then it dissapears.</p>