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

is it possible to add code to a list in python

import PySimpleGUI as sg rows_needed = 2 result = [['text1', 'text2'], ['text3']] menu_layout = [] for x in range(0,rows_needed): temp = [] try: temp.append(sg.Button(c) for c in result[x]) finally: pass …
Physcofury
  • 13
  • 6
-1
votes
2 answers

My program freezes until the CMD command finishes ( Python 3 )

when I run my program and press a button, the function it has to do is performed, but the problem is that I cannot use the program until the function of the button I press has finished, it stays in "program does not respond", once the function of…
elmaxiRT
  • 3
  • 3
-1
votes
2 answers

How to Integrate Pysimple Gui With Micropython

I was wondering, if it is possible to integrate pysimplegui with micropython. Here is my example, I am creating a robotic arm, it is controlled with micropython, for simplicity I wanted to create a GUI to control the arm, is it possible to integrate…
-1
votes
2 answers

Error "Your row is not an iterable (e.g. a list)" when creating window layout in PySimpleGUI

I want to code a tiny Calculator with PySimpleGUI but, when I run the Code it shows an error: ERROR Error Creating Window Layout File "string" line 18 in module Error creating Window layout Your row is not an iterable (e.g a list) Instead of a list,…
pauljako
  • 25
  • 5
-1
votes
1 answer

Refreshing page rather than creating new window in PySimpleGUI

I'm retrieving a large list of people from a database, then looping through each person to get their note/s and phone number/s. then displaying one person at a time with PySimpleGUI. My issue is that it I'm doing multiple sql queries rather than…
horse
  • 479
  • 7
  • 25
-1
votes
1 answer

function wont execute when the button is pressed on PySimpleGUI

I have made a program that executes a market order trade by utilizing the Coinbase Crypto Exchange Sandbox API. This code works fine when I execute it without a GUI. However, I want to create a GUI for it so I can execute some of the features…
dingoyum
  • 25
  • 4
-1
votes
1 answer

Why is elif event == 'Submit' not being executed?

I have tried moving the elif statements around but the compiler is still not executing elif event == submit. I will attach the relevant code here. I don't understand why the bottom most elif statement does not execute at all. while True: event,…
WoohSteezy
  • 11
  • 2
-1
votes
1 answer

How do I access the -IN0- variable that the user entered in order to execute my if functions? It looks like the -IN0- variable is not being accessed

I have asked the user to enter a value pertaining to how many driver bits they need which is an integer from 1 to 71. But the layouts = [ [ # Layout 0 [sg.Text('How many driver bits do you need? (Enter a number between 1 and 71)')], …
WoohSteezy
  • 11
  • 2
-1
votes
2 answers

Button that opens a .PDF file

I'm working on a project, where I need the effect of clicking on a certain Button to immediately open the .PDF file, the front-end part is all ready, the back-end part end is basically this problem, the project is a mini software to help students, I…
VcodePy
  • 11
  • 3
-1
votes
1 answer

I want to use User input from PySimpleGUI to one of my output Excel file name

I wanted to use User input from PYSimpleGUI to one of my output Excel file name in Python. I am getting error: str1=(sg.Text["-IN4-"]) TypeError: 'type' object is not subscriptable import PySimpleGUI as sg import pandas as pd import…
-1
votes
1 answer

How can I match a button to a corresponding file?

I'm creating a GUI with PySimpleGui, and in this GUI I'm going to play some tutorials for the users. I have a folder p111, which contains some tutorials (.pdf , .mp4 , .mov , .ppsx), at first it will have a fixed size, but it can increase as I put…
Raul Lopes
  • 17
  • 2
-1
votes
1 answer

Widget appears after the user's input

I'm creating a GUI and I had an issue. My GUI is going to interact with the users, so depending on the user's input I want a button to appear. How can I do it? Because so far I can only make the button appear once the window opens. For example, on…
Raul Lopes
  • 17
  • 2
-1
votes
2 answers

Python SimpleGui multiple windows

So basically i am using SimpleGUI and am able to create multiple windows, even with same content without errors. Now i just cannot get the events happening in the other windows that were created. Is there any solution to create multiple windows and…
BigAgg
  • 31
  • 4
-1
votes
1 answer

Continuously Updating PySimpleGUI window

I am creating a program in which i want to update values continuously after click start. Until user clicks on Stop button i want values to keep updating I use for loop for testing like for i in range(1000): …
-1
votes
1 answer

name 'values' is not defined when using Multithreaded and pysimplegui

import threading from PySimpleGUI import PySimpleGUI as sg def thread2(): while (x == True): if values["radio"] == True: print("true") def thread1(): tab1_layout = [ …
diegooli
  • 123
  • 2
  • 11