Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with PySimpleGui
#1
Tried to install the PySimpleGui and failed miserably.
First I ran the following code that I copied from the Cookbook
import PySimpleGUI as sg      

layout = [[sg.Text('My one-shot window.')],      
                 [sg.InputText()],      
                 [sg.Submit(), sg.Cancel()]]      

window = sg.Window('Window Title', layout)    

event, values = window.Read()    
window.Close()

text_input = values[0]    
print(text_input)
Running this gave me the following error message
Error:
>>> = RESTART: D:/EDEM626/Assignment 2/Databases/Python Version/Create Tables.py = Traceback (most recent call last): File "D:/EDEM626/Assignment 2/Databases/Python Version/Create Tables.py", line 1, in <module> import PySimpleGUI as sg ImportError: No module named 'PySimpleGUI'
After this I tried to instal PySimpleGui. The Cookbook gave me the code but no instructions as to where to put it. I tried it on the command line as follows
>>> pip install --upgrade PySimpleGUI
This gave me the following errormessage
Error:
SyntaxError: invalid syntax
Any help would be appreciated
Reply


Messages In This Thread
Problem with PySimpleGui - by apowell - Aug-13-2019, 11:07 AM
RE: Problem with PySimpleGui - by buran - Aug-13-2019, 11:17 AM
RE: Problem with PySimpleGui - by metulburr - Aug-13-2019, 11:21 AM
RE: Problem with PySimpleGui - by apowell - Aug-13-2019, 02:08 PM
RE: Problem with PySimpleGui - by buran - Aug-13-2019, 02:17 PM
RE: Problem with PySimpleGui - by snippsat - Aug-13-2019, 02:43 PM
RE: Problem with PySimpleGui - by metulburr - Aug-13-2019, 05:27 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020