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
4
votes
2 answers

PySimpleGUI Table element. How to read a selected row?

I am a beginner on Python and even more beginner on PySimpleGui, which I enjoy so much playing around in creating small apps with a GU interface. The issue I am having is about the table element. So far, I managed to populate the table element with…
Marcell
  • 91
  • 1
  • 1
  • 8
4
votes
1 answer

I want to use `for` to update a text using PySimpleGUI (Python)

I want to use a for-loop to update a text using PySimpleGUI (Python) but it just updates the text to the last word of the array. This is my code: from time import sleep import PySimpleGUI as sg sg.theme('dark grey 9') layout =…
zHary_
  • 75
  • 6
4
votes
2 answers

Pysimplegui Combo dynamically refresh

Good day everyone. Is there a way to dynamically add json values in the second Combo when the json element in the first Combo is selected? import json import PySimpleGUI as sg file = {"item 1": [{"name": "title 1"}, {"name": "title 2"}], "item 2":…
alek vertysh
  • 187
  • 4
  • 10
4
votes
1 answer

How can I make PySimpleGui read my input and update my window?

I am not sure if this has been answered before, sorry for a duplicate if it was, but I couldn't find it anywhere clearly. I am making a GUI for my simple AIML chatbot (entertainment purposes mostly) and I found PySimpleGui. I read the whole…
Csigusz Foxoup
  • 43
  • 1
  • 1
  • 4
4
votes
1 answer

Making a table with PySimpleGUI and Pandas

I'm new to PySimpleGUI and pandas. I want to make a table in the GUI. How can I add the entries of each header? My code has problems. import pandas import PySimpleGUI headers = {'Integers':[], 'Strings':[], 'Normallized Floats':[],…
Emad
  • 155
  • 1
  • 7
4
votes
2 answers

How do I respond to window resize in PySimpleGUI

How can I get notified when the window is resized in PySimpleGUI? I have a window that enables resize events, but I'm not finding a way to move the elements around when that resize occurs, so my window renames top left centered the same size when…
nycynik
  • 7,371
  • 8
  • 62
  • 87
4
votes
2 answers

Select a single row of a list box in PySimpleGUI

My question is simple, I'm a begginer in PySimpleGUI, and I want to know how do I change the color of text in a list box, but i want to change only some specific lines, so it's important that I can run all the list and select the lines. Someone know…
Mateus Coelho
  • 40
  • 1
  • 7
4
votes
1 answer

Inserting an image as background in PySimpleGUI window

I have just started working with the PySimpleGUI framework with the Tkinter port and I don't understand how an image can be inserted as a background for a window in a program. There is no argument or parameter associated with adding a background…
Anmol Saksena
  • 91
  • 2
  • 10
4
votes
1 answer

Make a Textbox in PySimpleGUI

I am following the PySimpleGUI documentation and making my own edits as I go along. I am very new to it and have had experience with using Tkinter. There is a Textbox in Tkinter which you an get with the code Text(window, width=?, height=?,…
Thomas
  • 1,214
  • 4
  • 18
  • 45
4
votes
2 answers

PySimpleGui: How to enter text in the text box?

I am learning PySimpleGui by referring the tutorials at Link-1 and Link-2 I need to add buttons to my layout to enter a value, then display the value in adjoining textbox So far, i have been able to create the buttons and the textboxes. Following is…
Sandrocottus
  • 521
  • 3
  • 8
  • 31
4
votes
2 answers

Is there a way to update the grid in PySimpleGUI after clicking on it

Good day all, I have been working on creating a GUI for my Tic Tac Toe game using PySimpleGUI. My code is as follow: import PySimpleGUI as sg import random board_layout1 = {(2,0):" ", (2,1):" ", (2,2): " ", (1,0): " ", (1,1): " ", (1,2): " ",…
Dwight
  • 124
  • 2
  • 12
4
votes
1 answer

How can I use Google Fonts in my PySimpleGUI desktop application?

Is there a way to use Google Fonts in my PySimpleGUI desktop application? Or is there any Python built-in packages to use Google Fonts in my code? If there is, how can I replace the fonts of the (Button or Text) elements in PySimpleGUI with the…
hkam
  • 77
  • 2
  • 8
4
votes
2 answers

How to create a scroll with many checkboxes in pysimplegui?

I'm trying to create a GUI with PySimpleGUI that contains many checkboxes with a scroll to the right to it that allows me to move around. I want my GUI to maintain its size by many checkboxes that have. This is my code: form = sg.FlexForm("Dynamic…
thecurious
  • 41
  • 1
  • 3
4
votes
1 answer

Load multiple file with PySimpleGui

Can there a one line for selecting multiple files path at once with PySimpleGUI sg.PopupGetFile('Unique File select') Only one file selectable docs PopupGetFile(message, Message to show in the window default_path='', Path browsing…
Sylvain Page
  • 581
  • 1
  • 7
  • 21
4
votes
1 answer

Using PySimpleGui, how to get buttons to work?

Trying out PySimpleGui for the first time, wanting to create an exec program that allows the user to either move or copy directories/files to the destination of their choice, but dont really understand how to link the action to the buttons. My…
1
2
3
79 80