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

PySimpleGui button stuck on Mac

I have a script that runs fine on dell, but seems to work only 70% on mac. It basically let's the user select different parameters (dates, files, from lists etc), on a while loop until the user presses one of the create buttons that closes the…
Finops
  • 1
-1
votes
2 answers

Error while getting the index from an empty Listbox .get_indexes()

When I want to get the index of a selected item in a listbox, and the listbox is empty i get a error. window['Listbox'].get_indexes()[0] ------------------------------------ IndexError: tuple index out of range The original list that I use in my…
Eskimo868
  • 238
  • 1
  • 12
-1
votes
1 answer

I want to record the user's answers in the dictionary

I'm on Stackoverflow for the first time and I'm from Russia (suddenly it's important). I'm learning Python and creating a small quiz game with a user interface. There are a few problems that I can't solve: I want to create a 2-page game. When the…
RizeD
  • 1
-1
votes
1 answer

Why is this pysimplegui not working properly

import PySimpleGUI as psg import random psg.theme('Dark2') # Add a touch of color # All the stuff inside your window. def Hero():#Defining a Function for Hero image_joker = ('/Users/arnav/Downloads/JokerHeadshot.png')#Makes a variable for…
-1
votes
1 answer

Python OS doesn't see variables

I'm currently developing an app that allows the user to install .apk files on their FireTV using a PC. I'm currently having issues regarding OS: it doesn't see variables (I've tried using format and normal). Here is my code: while True: event,…
Brisolo
  • 1
  • 1
  • 1
-1
votes
1 answer

PySimpleGUI invalid ASCII Character

When trying to run a test a GUI to use with the ARK Taming Calculator I'm working on, GUI test gives me the error Traceback (most recent call last): File "GUItest.py", line 1, in import PySimpleGUI as sg File…
-1
votes
1 answer

Program stops unexpected in python after it does an encryption algorithm

So I made an GUI in python and encryption program: This is the layout layout=[[sg.Text('Enter message'),sg.Input(key='-IN-')], [sg.Text('Cryptation key'),sg.Input(key='-KEY-')], [sg.Text('Answer',key='-OUT-')], [sg.Button('OK'),…
-1
votes
1 answer

Using PySimpleGUI, how could I make it download a file with a progress bar?

I would like to know how I could make a PySimpleGUI progress bar that updates accordingly to downloading a file. (Since I am on macOS I'll have to change the file directory but if your on Windows or Linux at the moment, just write it in that…
WhatTheClown
  • 464
  • 1
  • 7
  • 24
-1
votes
1 answer

I am having a NoneType error on exiting GUI

In the following code I get a NoneType Error when exiting the GUI. The interface seems to work fine otherwise, but when exiting it tells me "-Tables-" is not subscriptable in line 77 which is 'if values['-Tables-'] == True:' My guess is that I'm…
eightIN08
  • 53
  • 1
  • 8
-1
votes
1 answer

lock keys and release keys based on a button press using PySimpleGUI and pyhook

I have created a program where the user get access to the system keys such as ctrl and alt only with exiting a program with a button press. However when i run the program it does get stuck in the UI and wont allow me to do anything. Where am i wrong…
Nipun Alahakoon
  • 2,772
  • 5
  • 27
  • 45
-1
votes
1 answer

How to show a bar chart by command in the pysimplegui?

i got my pysimplegui work normally, and then i wanted to add the bar chart to the pysimplegui, but the only thing that appear is the coordinate and the text of the bar chart, the bar chart itself is being printed on the python console. figure 1, the…
yosam
  • 1
  • 1
-1
votes
1 answer

How to empty out Listbox in PySimpleGUI

I am brand new with PySimpleGUI but it's turning out to be really easy as advertised. After just a couple of hours I already have a halfway-working application. I'm using a Listbox to display several rows of items read in from a disk file. When I…
-1
votes
1 answer

PySimpleGUI sg.Radio button error: __init__() missing 1 required positional argument: 'group_id'

When I run my code for sg.Radio I get the following error, please could someone help? TypeError: init() missing 1 required positional argument: 'group_id' [sg.Radio('1',key= 'RADIO1', enable_events = True,size=(10,1)), sg.Radio('2', key=…
user11874651
-1
votes
1 answer

python thread is not working. What's the solution?

This Part of the code has pysimple gui applied to yolo. I'd like to try the thread in this code, I want to run a thread inside 'while' and print a sentence every 2.5 seconds. However, this function does not run every 2.5 seconds, but every when…
-2
votes
1 answer

AttributeError: 'list' object has no attribute 'tree_dict' in PySimpleGUI

Below is PySimpleGUI code to create a multilanguage dictionary where I can add entries for each word in different languages, and also have the possibility to search by language. Unfortunately, I got the following error: AttributeError: 'list'…
1 2 3
79
80