Category "pysimplegui"

PySimpleGUI how to run a perform_long_operation function that returns a value

just started learning and using PySimpleGUI. So far, everything works. I have a method that trains an AI and returns the model: model = train_model() As this m

TypeError: object of type 'NoneType' has no len() | PySimpleGUI | MacOS

I am coding a PySimple GUI script and I keep getting this: TypeError: object of type 'NoneType' has no len() (clipping of code) window = sg.Window('Pico Ducky

pysimplegui auto-fill depending on listbox selection / text replacement in file - Python

Example yaml file being edited: FTP_Folder: C:/Users/admin/Documents/Data DBtables: CurrentMinuteLoad: CSV_File: trend.csv Table_Name: currentminutel

I am not able to get any output on the browser

This piece of code calculates the shift that the user will be on a given date. 3 x Shifts (Morning, Evening, Night) rotating every 5 weeks. Each shift has 2 x t

How to create a pySDL2 image from a memory buffer

I have a pySimpleGUI program that create an image from a memory buffer containing a JPEG image. from PIL import ImageTk image = ImageTk.PhotoImage( data=buf) #

Programmatically trigger an event in PySimplGUI

How can I programmatically trigger an event with PySimpleGUI? For example, the "Show" event in the example below is tied to clicking the "Show" button. Is there

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 wil