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
-1
votes
0 answers

I had a functional gpt-4 model using only data from a chroma duckdb, now it no longer works and just functions as a regular chat model

Here is the code import os import constants import chromadb import PySimpleGUI as sg from langchain.chat_models import ChatOpenAI from langchain.chains import ConversationalRetrievalChain from langchain.vectorstores import Chroma from…
-1
votes
0 answers

PySimpleGUI live text reading

So I am working on an encryption software with PySimpleGUI and I'm trying to add a live text update feature. It's when the output updates as I type in the input box. For some reason it's not working and it only works when I use a button to update…
Phantom
  • 1
  • 1
-1
votes
1 answer

Why can a client only receive one message in my Python chat program using sockets?

Python socket programming:A client can only receive one message in my chat program... This is my Code: I found it strange that after the window3 is displaying,you can send each other messages through ms!{target_id}|{message} and the server will send…
ddhello
  • 1
  • 2
-1
votes
1 answer

Why is my program closing when I try to use a second function after the initial one?

I am creating a GUI for my co worker to help them with their reporting processes for our genetic testing. I'm having an issue I cant seem to figure out though. The workflow is set in the order of tabs in the program. If I use the webview feature on…
-1
votes
1 answer

Moving items between listboxes pysimplegui

I'm trying to import a csv file into a listbox, then when I double click one of the entries I want it to be added to a second listbox on screen, so that I can set the entries in the second listbox to another variable that will be called later in the…
Mike Shaw
  • 3
  • 2
-1
votes
1 answer

how to copy file from directory to another using shutil in python

below code always gives me key error of values['-FOUT-'], I need to copy file from one directory to another with different name...values['-FOUT-'] is a key from Pysimplegui to get output directory path, can anyone please tell me what I'm doing…
Panda
  • 245
  • 1
  • 2
  • 6
-1
votes
1 answer

MultiCursor in matplotlib over multiple subplot does not work

i am developing a GUI application for which there will be multiple dynamic subplots for which i would like to have a cursor integration for which is used "Matplotlib's MultiCursor widget" the code seems to be all good without any errors but the…
-1
votes
2 answers

How do I get it to split the tuple individually after it is converted from list

I've tried multiple means of splitting the tuple into individual items but each time I try it returns the same ('0,1 0,2',) output instead of ('0,1' '0,2'). I need it to be tuple in order to match another input later in the program (which I removed…
-1
votes
1 answer

Does Google Cloud Storage work for the app I coded using PySimpleGUI?

Im developing a financial app using PySimpleGUI. This is a desktop app, and will be sold publicly on my web page. I need a place to store my future clients data. Does Google Cloud Storage work for a Desktop App, and is it safe? ( There will be…
-1
votes
1 answer

reroute terminal to interface of the application

I have built a small desktop application which edits data(.ags format) and then saves to selected folder. Before i had an issue that, i could run it as python file, but it would crash when I make it .exe. I figured out the problem. The reason was…
YIF99
  • 51
  • 1
  • 8
-1
votes
1 answer

PySimpleGUI - can't update text fields

This is my first try with PySimpleGUI. I've written a simple window with three output fields: Text Output Multiline The window paints fine, and the default values display. But I can't get any of the fields to update. Am I doing something stupid…
ccfpcl
  • 3
  • 1
-1
votes
1 answer

PySimpleGUI in python: Disable window move by user(with CTRL+mouse1)

A window can be moved by holding down CTRL and Mouse1, I would love to deactivate it, or deactivate window moving in general. My problem is, that I use the CTRL key to mark multiple images in my explorer. After my image is marked, the image is…
Leonick
  • 45
  • 7
-1
votes
2 answers

SytanxError with sg. argument from PySimpleGUI in Python

I want to make a widget window, but the Bottom and Text part aren't working properly and it keps getting sintax errors at the same part: import PySimpleGUI as sg layout = [ [sg.Text("Hello from PySimpleGUI")], [sg.Button("Close")] …
Oliveira
  • 3
  • 2
-1
votes
1 answer

Replacing Consonants and Vowels in a String - Python/PySimpleGUI

Dears, I want to write a function in Python, given a string, returns a new string in which the vowel will remain as it is and the consonants will be replaced with grec alphabet : α, β, γ, δ, ε, ...., Ω ω. And once there is a duplicate consanant,…
-1
votes
1 answer

PySimpleGUI window doesn't resize to previous window size after changing layouts

I have created a GUI that displays Different layouts when you select one in the menu. When i enter the Dashboard layout and enter after that to a regular layout it doesn't resize to its original size like the other two. (video link is provided for…
skyline
  • 1
  • 3