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
11
votes
5 answers

Align Button To The center Of the window using pysimplegui

In my application am trying to place my button,text and input at the center of the window.I am using PySimpleGUI for designing buttons.For aligning to the center i used justification='center' attribute on my code.But still it is not fitting to the…
Avinash Babu
  • 6,171
  • 3
  • 21
  • 26
11
votes
1 answer

PySimpleGUI file browser specific file type

i am trying to browse a only excel files but How to restrict the file type in PySimpleGUI browse button .
Govinda Raju
  • 391
  • 1
  • 4
  • 16
10
votes
2 answers

How to display different layouts based on button clicks in PySimple GUI? (Persistent window loop)

I am wondering if there is a way that I can manage different layouts based on button clicks in PySimple GUI. I am just starting off using this framework and I want to find the best way of navigating menus. Doesn't have to be using different layouts…
nsquires
  • 899
  • 2
  • 8
  • 20
8
votes
2 answers

Programmatically make app FULL SCREEN in PySimpleGUI

How to make PySimpleGUI app to be open in full screen, what I mean taking up the entire screen, not even leaving the task bar at the bottom of the screen? This app will be running on Debian 8. How to do this?
2017kamb
  • 192
  • 3
  • 8
  • 27
7
votes
2 answers

PySimpleGUI get selected text

New to PySimpleGUI. I have a multiline input box : layout1 = [[sg.Multiline(size=(45,5),key='-IN-')],... window1 = sg.Window('Source',layout1,finalize=True) event1,values1 = window1.read() I type in some text and then using the mouse, I…
Randy Murray
  • 79
  • 1
  • 3
7
votes
2 answers

Use PNG files from a dictionary to display in a Image widget in PySimpleGUI (Python)

I have Python GUI using PySimpleGUI that needs to display multiple plots which I intend to navigate via a set of buttons. I know I can have all the plots saved as PNG in a given folder and simply load them in a Image object and use the Update method…
opt
  • 477
  • 1
  • 10
  • 25
7
votes
1 answer

Updating gui items withing the process

I am trying to make a GUI for my app and ran into a problem: using PySimpleGUI I have to define layout at first and only then display the whole window. Right now the code is like this: import PySimpleGUI as sg layout = [[sg.Text('Input:')], …
milka1117
  • 521
  • 4
  • 8
  • 17
7
votes
1 answer

PySimpleGUI call a function when pressing button

import PySimpleGUI as sg import os layout = [[sg.Text('Velg mappe som skal tas backup av og hvor du vil plassere backupen')], [sg.Text('Source folder', size=(15, 1)), sg.InputText(), sg.FolderBrowse()], …
Kickdak
  • 197
  • 1
  • 3
  • 15
6
votes
1 answer

How to resize sg.window in PYsimpleGUI?

I am using PYsimpleGUI in my python code, and while using the window element to create the main window, this is my code. My code: import PySimpleGUI as sg layout = [ [sg.Button('Close')] ] window = sg.Window('This is a long heading.',…
Ameya Uppina
  • 131
  • 1
  • 3
  • 13
6
votes
1 answer

How can I create radio buttons from a list using PySimpleGui?

I want use PySimpleGui to dynamically create radio buttons from a list, but my efforts to insert a loop in the layout code are catching syntax errors. Can this be done with the API or do I need to slog it out with tkinter? My list is being generated…
OldFartN00B
  • 61
  • 1
  • 3
5
votes
3 answers

PySimpleGui right justify a button in a frame

I am building a simple GUI with pysimplegui and want to right-justify a button inside a frame. I have found details on how to do this with text but not with buttons. For example, I would like the button below to snap to the right side of the frame…
Salvatore
  • 10,815
  • 4
  • 31
  • 69
5
votes
3 answers

PySimpleGui: change font, font display, Ubuntu, ugly fonts

Out of the box it seems that the demo app examples for PySimpleGui display with an "ugly" font when using Linux (Ubuntu 20.10). As I cannot find any references how to control this in the demo examples provided, such as default_font = 'Helvetica'),…
Jaco
  • 1,564
  • 2
  • 9
  • 33
5
votes
1 answer

show Popup on top of open window in PySimpleGUI

My Popup opens behind the current open window, so unable to see the Popup. How to show the Popup on top of the current open window? Following is the sample code: import PySimpleGUI as sg # set global options for window background =…
2017kamb
  • 192
  • 3
  • 8
  • 27
5
votes
1 answer

How to have live update of printed text in the window?

I am using Pysimplegui to output some text in a for loop after doing an event. However, I can only see the all the text at once when the for loop ends. I cannot see it when the for loop is running. The gui shows a "not responding" (but it is…
Zabjaku
  • 97
  • 1
  • 7
5
votes
1 answer

update radio button in PySimpleGUI

I'm using PySimpleGUI in which I want to update a radio button. According to the documentation the radio button has an update method. But somehow it doesn't work properly. I wrote the following code which should update the value of the radio button…
Oamriotn
  • 257
  • 1
  • 3
  • 8
1
2 3
79 80