0

When i start this python script:

import PySimpleGUI as sg

layout = [[sg.Text("Hello from PySimpleGUI")], [sg.Button("OK")]]

# Create the window
window = sg.Window("Demo", layout)

# Create an event loop
while True:
    event, values = window.read()
    # End program if user closes window or
    # presses the OK button
    if event == "OK" or event == sg.WIN_CLOSED:
        break

window.close()

I get this GUI instead of a text with button:
enter image description here

Natalie Sumbo
  • 71
  • 1
  • 5

1 Answers1

0

In VSCode I had to update the settings.json of python

"python.defaultInterpreterPath": "/your/venv/bin/python",

Reference: Pylint "unresolved import" error in Visual Studio Code

Natalie Sumbo
  • 71
  • 1
  • 5