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

PysimpleGUI Message Box

I wrote the whole code the only thing disappointing me is that I can't change the input rows and column let me show you what I mean by this. I want this kind of dialog box, check this image Instead I get this one I can't use the sg.output here…
2
votes
1 answer

Overlapping Frames with PySimpleGUI

I want to create a GUI using pySimpleGUI that resembles the Killer Sudoku game. For those unfamiliar with Killer Sudoku, it is similar to regular sudoku however there is an extra level of complexity where not only do you have the 9 3x3 boxes where…
2
votes
2 answers

Make an editable table in PySimpleGUI?

Hello I am using a Table element from PySimpleGUI. I would like for the user to be able to edit the data inside it. I have seen some mentions of it. Is it possible? This guy was using PySimpleGUIQt, while I am using the PySimpleGUI on top of…
Borut Flis
  • 15,715
  • 30
  • 92
  • 119
2
votes
1 answer

PySimpleGui - Nesting Frames

How can I achieve nesting frames in this way. One left Frame (Frame 1), one Right (Frame 2). With another Frame (Frame 3) nested inside and but under the Left Frame contents? Does the formatting allow for this?
Andrea Mele
  • 53
  • 2
  • 7
2
votes
1 answer

Validating Input Value - PySimpleGUI

I have simple GUI with two inputs and exit button. Inputs have default_value = 0.00. I want to validate user change in the way that input can be only float format,'.2f' and <= 5.0. Example from cookbook helps partially. When I use this code: import…
marekp3
  • 37
  • 1
  • 4
2
votes
1 answer

How to change layout size in pysimplegui?

I'm using pysimplegui, when I run this code it shows a very small screen... I would like to know if there is a size attribute to make with k a screen always starts in full screen, that is, occupying my full screen by default import PySimpleGUI as…
2
votes
1 answer

How can I print more than one line of words/phrases in a Multiline PySimpleGUI element?

The following small program creates a window with a Multiline element, an Input element and a button. When I type a word or phrase in the Input field, the word/phrase also prints inside the Multiline element. But when I type a second word/phrase the…
G. Trialonis
  • 83
  • 3
  • 11
2
votes
1 answer

PySimpleGUI displaying a URL .JPG

I am using PySimpleGui. I want to have a local place holder image.jpg until the button is pressed to load in a URL based JPG. From searching around, I see people saying to use the PIL import, however it's a bit unclear currently to me, how to…
Andrea Mele
  • 53
  • 2
  • 7
2
votes
1 answer

Update default value of a Combo

I would like to change the default value of the combo when I press the button,Is it possible to do so ? from PySimpleGUI import…
SimpleGuy_
  • 443
  • 5
  • 12
2
votes
1 answer

PySimpleGUIQt - pressing key or button as action

import PySimpleGUIQt as sg layout = [ [sg.Button('Button1')], [sg.Button('Exit')], ] window = sg.Window('Mechanical Turk tool', self._layout) while True: event, values = window.read() if event ==…
2
votes
1 answer

Want to use tray and window of pysimpleguiqt at the same time

I'm making an app where I want to use window and tray at the same time, but the following code needs an event from window first, then it gets the event of the tray, I tried doing both of them separately with threading but no luck there, Try to do…
LoNE WoLvES
  • 198
  • 1
  • 9
2
votes
1 answer

Sorting a pysimplegui table

Is there a way with pysimplegui to sort a table by columns? I looked around on github for some examples but couldn't find anything. I found this example that creates a table from a csv file: #!/usr/bin/env python import PySimpleGUI as sg import…
ragnoki
  • 23
  • 4
2
votes
2 answers

PySimpleGUI > file_types() not working on macOS

file_types() is not available on macOS. While browsing it should only show PNG files. Does anyone know an alternative way to browse through multiple PNG files? Line 9 # /usr/bin/python3 # -*- coding: utf-8 -*- import PySimpleGUI as sg def…
user16755372
2
votes
1 answer

Very slow window refresh (update) via tkinter in macOS [python, PySimpleGUI, Tkinter, macOS]

Our app (Python-based, cythonised and packaged for usage on computers without installed Python) has its GUI based on PySimpleGUI / Tkinter port. In macOS, we sometimes experience an extremely slow start. On my Mac, from app launch until the main…
2
votes
0 answers

Need PySimpleGUIQt download progress bar

I found a working progress bar here: Using PySimpleGUI, how could I make it download a file with a progress bar? . I need it for PySimpleGUIQt. But it's not working. import requests import threading import PySimpleGUIQt as sg from math import…
Ifan_Ifan
  • 43
  • 4