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
3
votes
3 answers

Making exe-file from python with PySimpleGUI and pysimplegui-exemaker

I made a simple Python3-program which uses PySimpleGUI to create a Windows-GUI-programm. This program contains also a picture CAESAR.png, which is in the same folder as my python-code. Here is the portion of the code for the layout: import…
Kurt
  • 264
  • 1
  • 7
  • 23
3
votes
3 answers

How can pysimplegui give a popup message if the script has crashed?

I'm setting up a program using the pysimplegui Interface. The program is based on user input. If the input is in a wrong format, or misspelled, the script will crash. By now, when the script crashes, the GUI stays open with no indications that…
3
votes
1 answer

Updating Popup.Animated to play gif until external task is completed (PYSimpleGUI)

I am looking to create a UI that displays an animated popup while another task is being carried out. That will exit upon completion. I am using PYSimpleGUI and am using the example listed here to base my work off. I can get a single frame of the…
Overture
  • 83
  • 1
  • 10
3
votes
1 answer

PySimpleGui Output Title Bar Name Problem

I want to print an output something like this by using pysimplegui import PySimpleGUI as sg print("The age of the universe is", age_of_universe, "Gyr") print("The age of universe at z = ", z, "is", age_of_universe_at_z,) print("Lookback time is",…
Layla
  • 117
  • 2
  • 7
3
votes
0 answers

How to access plotted data values from GUI with mouse click in PySimpleGUI?

How to extract data point at mouse click in PySimpleGUI? I have a collection of 2D (x,y) data points. I have plotted the 2D data using PySimpleGUI graph element and drawCircle function. Now, when I click on one circle (which represents one data…
Vandana Rajan
  • 161
  • 1
  • 12
3
votes
1 answer

How to remove time from date in PySimpleGUI

I do not wish to have the time recorded in either the input box nor the db. I am new to PySimpleGUI, this is my first app using it actually. import PySimpleGUI as sg import datetime main_name_list = ['Joe', 'Billy', …
RobE
  • 93
  • 2
  • 11
3
votes
1 answer

Graphing code using PySimpleGUI, MatPlotLib and tkinter crashing on selecting function

Hello lovely clever people. I came across this beautiful piece of code that in theory should help me with a project I'm working on. However, each time I run it and select an option from the list, it crashes. The original piece of code was over 900…
3
votes
2 answers

can somebody show me an example of using pysimplegui not in a loop - maybe as a definition setup that I can update manually

I am looking for a way to use a PYSimpleGUI progress bar... without a loop I have looked for several days on the internet with no luck to find an example. seems everybody does their example with a loop, or on a timer. I'd like to do something more…
soundtechscott
  • 109
  • 2
  • 12
3
votes
5 answers

unable to import PySimpleGUI

I am trying to explore PySimpleGUI. Following this link PySimpleGUI But when I do, import PySimpleGUI getting error as, Traceback (most recent call last): File "", line 1, in File…
2017kamb
  • 192
  • 3
  • 8
  • 27
3
votes
3 answers

How to While loop timer in here?

I have a GUI app with a while loop. I'm having trouble inserting an if statement that breaks the loop. I want this to be a timer so if nothing happens in 60 seconds the while loop will break. layout = [[sg.Text('Velg mappe som skal tas backup av og…
Kickdak
  • 197
  • 1
  • 3
  • 15
3
votes
1 answer

pysimpleguiweb change hosting port

I'm loving the new pysimplegui tools, and have just started exploring the pysimpleguiweb port but have quickly hit a roadblock. To actually deploy an application built using the web version, it would be important to be able to control what port…
3
votes
2 answers

How do I fix an Error when Freezing Python 3.7 Script using cx_Freeze

I am trying to create a standalone executable with my python script using cx_Freeze. This is the error I am getting: error: [Errno 2] No such file or directory: 'C:\\Program Files\\Python37\\tcl\\tcl8.6' Does this have anything to do with using a…
Someone
  • 55
  • 1
  • 7
2
votes
1 answer

Main thread is not in main loop tkinter, multi-thread with multiple pysimplegui or tkinter objects [SOLVED]

As far as I can see, this is a constant problem when using tkinter since it is not multi-threaded. I have read a lot about this issue but I don't know how I can solve it in my case. My application consists of a plotly dash running in a local server…
2
votes
2 answers

PySimpleGUI how to place a button on top of image

here is example with image and "image as button" but i want to place a litte button on the image, it is possible ? with normal python i can do that with image.place(40,40....) method and how to do that with "PySimpleGUI" import PySimpleGUI as sg #…
DIMM_V2
  • 105
  • 1
  • 9
2
votes
2 answers

Message not displaying with PySimpleGUI

I have a project where I'm trying to build a simple time-clock using Python 3 on a Raspberry Pi. The Pi is running 64-bit Bullseye. In my script, I create a window with two columns, one for entry and one for display. The entry side is working (as…