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
1 answer

Python threading and PySimpleGUI

--REVISED WITH SOLUTION FROM MikeyB-- Thanks to Mikey for pointing out a simple solution. I feel sometimes too much thought is put into a solution, and its a simple overhead solution that resolves the issue. I have added in a small function that…
Adam
  • 35
  • 1
  • 5
2
votes
2 answers

How do remove the "Ok" button in popup (PySimpleGUI)

Typical popup: sg.Popup("This is a simple popup") This will show an "Ok" button with my text which I don't want. How can I remove this button?
Yogesh Aggarwal
  • 1,071
  • 2
  • 12
  • 30
2
votes
1 answer

Zoom +/- capable matplotlib window embedded in a PySimpleGUI window tab

I have the following code (based on Matplotlib plot zooming with scroll wheel). I have tried to embed it into a PySimpleGUI window tab, so far I have not been able to do so. I managed to make it work with a Tkinter window, but my main GUI is mainly…
MBV
  • 591
  • 3
  • 17
2
votes
1 answer

How to update a GUI window in Python?

My goal is to have a window with the latest quote of a stock updating during the day. I chose alpha_vantage as a quote source, pysimplegui to create the window and twisted to run a loop to update the window every minute. The code works as written,…
John
  • 435
  • 6
  • 15
2
votes
1 answer

Changing the volume when moving the slider

I have a code and this is part of it: import PySimpleGUI as sg import pygame class Music: def __init__(self, file): self.sound = file def play(self): pygame.init() pygame.mixer.init() …
Cous
  • 198
  • 1
  • 7
2
votes
2 answers

PySimpleGUI Freezes

I wrote a code for a hack in a game cold Boxing Simulator 2 in python 3.8.1 with PySimpleGui 4.15.1, and if I try to Click the start/stop button, the gui Freezes but the script connected with the Start/Stop button still runs. But if i change the…
user10763624
2
votes
1 answer

How can I get Calendar Button's value using its key inside the while loop, PySimpleGUI?

I am very new to PySimpleGUI. I am building a GUI for a desktop application and wanted to use a calendar. But there came a problem with retrieving the value of Calendar Button events in the while loop without timeouts in window.read() when I chose…
hkam
  • 77
  • 2
  • 8
2
votes
0 answers

Why my PySimpleGUI crash on Mac OS X 10.15.1, but works fine on Mac OS X 10.13

Crash logs: Process: Test6 [1858] Path: /Users/USER/Desktop/*/App-1.1.app/Contents/MacOS/Test6 Identifier: App-1.1 Version: 0 Code Type: X86-64 (Native) Parent Process: ???…
thecr0w
  • 2,148
  • 4
  • 33
  • 59
2
votes
2 answers

How Do I Implement Checkbox Functionality in PySimpleGUIQt?

I'm trying to create a simple GUI program in Python that I'd use when creating new projects. I'd like a tickbox functionality for what type of project it is (python, web, etc) and then an input box for the project name (what the directory name would…
2
votes
4 answers

Pysimplegui text element variable and fixed text

In Layout: sg.Txt('', size=(12,1), font=('Helvetica', 15), key='Text1', justification='left', text_color='green'), Example: parm = 123 window.Element('Text1').Update("%.2f" % parm) I would like to understand how to add a fixed text before and…
Agarest
  • 29
  • 5
2
votes
0 answers

How do you update SetOptions in PySimpleGUI?

I have a gui that has a button on it with a table of values. I would like it to change the background color of table values when I press the button. Does anyone know how? Here is my layout code: layout: list = [ sg.Table( …
Bob
  • 51
  • 4
2
votes
2 answers

pysimplegui, show selected part of a table

I have a small database with ~9000 rows. Every time I start my program the table starts with the 1:st row. Is it possible to programatically show a specific part of the table, like show last records or show records adjacent to for examle row…
2
votes
1 answer

How to select a cell within a table?

I'm displaying a Pandas dataframe with PysimpleGUI and the user has to check wether the displayed Data is actually Correct. And If not he can change the value. I found this code as starting Point: https://repl.it/@PySimpleGUI/Table-Element…
Hirschdude
  • 127
  • 3
  • 10
2
votes
1 answer

Is there a decimal range for PySimpleGUI sliders?

I need some way to display a decimal value above my slider in PySimpleGUI. I have already tried putting decimal values, but it throws an error when I do that. import PySimpleGUI as sg layout = [sg.Slider(range=(850,999), default_value=997,…
Robert B
  • 23
  • 1
  • 3
2
votes
0 answers

Load multiple folder with PySimpleGui

Can there a one line for selecting multiple foldes path at once with PySimpleGUI import PySimpleGUI as sg layout = [ [sg.Text('choose multiple folders and print at the console', size=(35, 1))], [sg.Text('Your Folders',…