Python GUIs for Humans! PySimpleGUI is the top-rated Python application development environment. Launched in 2018 and actively developed, maintained, and supported in 2024. Transforms tkinter, Qt, WxPython, and Remi into a simple, intuitive, and fun experience for both hobbyists and expert users.
Type of Issues (Enhancement, Error, Bug, Question)
/home/elsys/PycharmProjects/Class_Jn_2020/class_28_12_2019/venv/bin/python /home/elsys/PycharmProjects/Class_Jn_2020/class_28_12_2019/button_pusimple_001.py
Traceback (most recent call last):
File "/home/elsys/PycharmProjects/Class_Jn_2020/class_28_12_2019/button_pusimple_001.py", line 18, in
window.FindElement('2').Update(button_text="RUN")
TypeError: Update() got an unexpected keyword argument 'button_text'
1 {'-IN-': ''}
Process finished with exit code 1
Operating System
ubunut 16.04(I need to check my second computer)
deep in 15.11 64 bit ( Fail for sure)
Python version
3.6 - using Pycharm
PySimpleGUI Port and Version
4.14.1
Your Experience Levels In Months or Years
_____ Python programming experience
2 years, but last two months I speed up my knowledge
_____ Programming experience overall
Must of time last 5 yeas Labview in Linux version (1 year in Windows)
_____ Have used another Python GUI Framework (tkiner, Qt, etc) previously (yes/no is fine)?
Tkinter, but very simple.
You have completed these steps:
Read instructions on how to file an Issue
Searched through main docs http://www.PySimpleGUI.org for your problem
Searched through the readme for your specific port if not PySimpleGUI (Qt, WX, Remi)
Looked for Demo Programs that are similar to your goal http://www.PySimpleGUI.com
Note that there are also Demo Programs under each port on GitHub
Run your program outside of your debugger (from a command line)
Searched through Issues (open and closed) to see if already reported
Code or partial code causing the problem
mport PySimpleGUI as sg
sg.theme('DarkAmber') # Remove line if you want plain gray windows
window = sg.Window('Window that stays open', layout)
while True: # The Event Loop
event, values = window.read()
print(event, values)
if event in (None, 'Exit'):
break
if event == '1':
window.FindElement('2').Update(button_color=('black', '#9c9c98')) # This one Works
window.FindElement('2').Update(button_text="RUN") # This one not Work
Type of Issues (Enhancement, Error, Bug, Question) /home/elsys/PycharmProjects/Class_Jn_2020/class_28_12_2019/venv/bin/python /home/elsys/PycharmProjects/Class_Jn_2020/class_28_12_2019/button_pusimple_001.py Traceback (most recent call last): File "/home/elsys/PycharmProjects/Class_Jn_2020/class_28_12_2019/button_pusimple_001.py", line 18, in
window.FindElement('2').Update(button_text="RUN")
TypeError: Update() got an unexpected keyword argument 'button_text'
1 {'-IN-': ''}
Process finished with exit code 1
Operating System ubunut 16.04(I need to check my second computer)
deep in 15.11 64 bit ( Fail for sure)
Python version 3.6 - using Pycharm
PySimpleGUI Port and Version 4.14.1
Your Experience Levels In Months or Years _____ Python programming experience
2 years, but last two months I speed up my knowledge
_____ Programming experience overall
Must of time last 5 yeas Labview in Linux version (1 year in Windows)
_____ Have used another Python GUI Framework (tkiner, Qt, etc) previously (yes/no is fine)? Tkinter, but very simple.
You have completed these steps: Read instructions on how to file an Issue Searched through main docs http://www.PySimpleGUI.org for your problem Searched through the readme for your specific port if not PySimpleGUI (Qt, WX, Remi) Looked for Demo Programs that are similar to your goal http://www.PySimpleGUI.com Note that there are also Demo Programs under each port on GitHub Run your program outside of your debugger (from a command line) Searched through Issues (open and closed) to see if already reported Code or partial code causing the problem mport PySimpleGUI as sg
sg.theme('DarkAmber') # Remove line if you want plain gray windows
layout = [[sg.Text('Persistent window')], [sg.Input(key='-IN-')], [sg.Button('Read', key='1'), sg.Exit(key='2')]]
window = sg.Window('Window that stays open', layout)
while True: # The Event Loop event, values = window.read() print(event, values) if event in (None, 'Exit'): break if event == '1': window.FindElement('2').Update(button_color=('black', '#9c9c98')) # This one Works window.FindElement('2').Update(button_text="RUN") # This one not Work
window.close()