Questions tagged [pysimplegui]

Question about PySimpleGUI. The python package that supports simplified GUI generation using Tkinter.

PySimpleGUI is a python package that supports simplified GUI generation using Tkinter.

You can read more about the package here

1204 questions
2
votes
2 answers

Update a checkbox based on selected values of another checkbox

I want to have a select all checkbox in my PySimpleGUI. When the select all checkbox is selected, all other checkboxes should change to True, and if any other box is unchecked, the select all checkbox should change to false state? I can do it…
Yash Sharma
  • 324
  • 6
  • 25
2
votes
1 answer

Using PySimpleGUI to create a custom progress bar

I have just started learning PySimpleGUI and I wanted to create a custom GUI progress bar that will display what parts of the program are running at different times. For example, I have a video processing program with various components so I want…
2
votes
1 answer

Text not updating in PySimpleGui

In my code, Im trying to make a calculator. So there is a 1 button which when pressed, updates the Question: text by adding 1 to it's text. So when I press 1, the text will convert from Question: to Question: 1. But its not updating. I have faced…
SYCK playz
  • 102
  • 2
  • 8
2
votes
2 answers

pysimplegui table multiline text handling

I am filling a pySimpleGui table from a log file. Most logs are single line but some multiline text are present.Table in layout is defined like this [sg.Table(key="mainTable",values=data, headings=header_list,…
Codename_DJ
  • 553
  • 1
  • 11
  • 40
2
votes
1 answer

Python Error: ValueError: max() arg is an empty sequence in PySimpleGUI

When I run the above code, I get this error in the console: Traceback (most recent call last): File "c:/Users/rdhin/OneDrive/Desktop/Rissistant/cam3.py", line 155, in event, values = window.read() File…
2
votes
1 answer

Zero Margin Layout with PySimpleGUI

I am trying to make a layout with zero top, left and right margin in Python with PySimpleGui. Example code import PySimpleGUI as sg layout = [[sg.Text('Text with background color', background_color='#FF0000')]] window = sg.Window('Title', layout,…
RedHawkDK
  • 119
  • 1
  • 4
  • 9
2
votes
1 answer

PySimpleGUI: How to achieve elements/frames/columns to align to the right (and resize) when resizing window

I haven't found how to achieve the following: In the example-code, when resizing the window, the separator in the middle should go to the right, along with the changing of the window-size. The column on the left-hand - with the table in it - should…
Grisalho S.K.
  • 21
  • 1
  • 4
2
votes
1 answer

How to prettify results in PySimpleGUI

I am currently practicing pandas I am using some pokemon data as a practice https://gist.github.com/armgilles/194bcff35001e7eb53a2a8b441e8b2c6 i want to make a program that allows the user to input their queries and I will return the result that…
kalimdor18
  • 99
  • 13
2
votes
2 answers

Dropdown menus in PysimpleGUI

I am looking for a PysimpleGUI way to create dropdown menus. Currently, I can create ComboBoxes as such: import PySimpleGui as sg sg.Combo(list1, size = params) This creates an Input box and a dropdown list with a slider populated by list1…
sovann
  • 117
  • 1
  • 1
  • 12
2
votes
1 answer

how to disable a button after being clicked once in pysimplegui?

I want to disable the Start update button in my code code : import PySimpleGUI as sg import time mylist = ["Reading files from the internet","downloading new version","writing intents","Training Assistant","Waiting for tensorflow…
Sashank
  • 557
  • 6
  • 20
2
votes
1 answer

Clickable text links using PySimpleGUI

Is it possible to add clickable text links in PySimpleGUI? I've already tried using buttons that then use os.system("start \"\" https://google.com/") or webbrowser.open('www.google.com/', new=0), but, once of the buttons on the window is pressed,…
2
votes
2 answers

Update not changing visibility in PySimpleGUI

I am trying to make a GUI element invisible by using visible=False. It appears that the update function works with every other attribute as well as for values s shown in the code below, except for the visible attribute. Specifically, although the…
Raj
  • 43
  • 1
  • 6
2
votes
1 answer

Python app built by PyInstaller crashes when exit button is clicked

I'm using the codes below in a run.py file from PySimpleGUI cookbook for the GUI of my Python app. The GUI works normally when I started the run.py file from PyCharms. However, when I build this into a one file, windowed app with PyInstaller, I get…
2
votes
1 answer

How to clear a window in PySimpleGUI

I am using PySimpleGUI to build a GUI. How do you clear all the widgets on the window? In tkinter you have the code: widget.destroy() If you attempt this in PySimpleGUI you get the error: NameError: name 'RWG' is not defined if my widget is called…
Thomas
  • 1,214
  • 4
  • 18
  • 45
2
votes
3 answers

Hiding and Unhiding Text, Input and FileBrowse() in PySimpleGUI

I have made a GUI using PYSimpleGUI which looks something like this The code for the same is as below: import PySimpleGUI as sg sg.theme('Light Blue 2') layout = [[sg.Text('Choose files to get started', size=(30, 1), justification='center',…
Umang Bhatia
  • 67
  • 2
  • 3
  • 8