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
0
votes
0 answers

PySimpleGUIQt system tray icon appears multiple times with multiprocessing

import win10toast import time import PySimpleGUIQt as sg from multiprocessing import Process menu_def = ['BLANK', ['&About', 'E&xit']] tray = sg.SystemTray(menu=menu_def, filename=r'icon.ico') def SysTray(): while True: menu_item =…
InfiniteFox
  • 81
  • 1
  • 2
0
votes
1 answer

Why is the encoding from Exif tags fail after updating image

I have to in to a problem with adding new tags to Exif data for an image. The setting I have created a PySimpleGUI python script for simple image manipulation and worked out all but the last steps. The script displays an image (jpg, jepg) and a key…
Richard E
  • 334
  • 1
  • 4
  • 14
0
votes
0 answers

How do write a csv file from pysimplegui?

import PySimpleGUI as sg layout = [ [sg.Text('Medico Refertatore', size=(15, 1)), sg.InputText()], [sg.Text('Nome Paziente', size=(15, 1)), sg.InputText()], [sg.Text('Cognome Paziente', size=(15, 1)), sg.InputText()], …
VegaOmega
  • 19
  • 1
  • 7
0
votes
1 answer

How to make corner round and center align text in frame option pysimlegui python

I want to convert corner to round as well as move text to center. I am currently using PysimpleGUI to make an appenter image description here
0
votes
3 answers

How do i print a for i in range loop to a PySimpleGUI window?

I am trying to make a programm that tells you a input amount of the words rhymig with the word you choose. i am doing it in PySimpleGUI and i dont know how to print the loop in to a PySimpleGUI window. Could someone help. Thanks in advance…
JoshMann15
  • 35
  • 8
0
votes
1 answer

Where to put large Python lists

I'm writing a python program that uses a list of all of the words in an English dictionary, so we're talking a few megabytes. I would like a clean way of including the list as a constant without it getting in the way of the source code. I would…
Jim Clay
  • 963
  • 9
  • 24
0
votes
0 answers

How to keep the last selected file from sg.filebrowser in default_text from sg.InputText?

First of all, PySimpleGUI is magnificent!! How to save the last selected file in sg.filebrowser so that the next time I run the script, this file will be the default value in default_text from sg.InputText? Today I have this: import PySimpleGUI as…
0
votes
2 answers

How to generate a column of checkboxes from a list

I recently found PySimpleGUI. At the time looked like it could save me a lot of work. I wanting to create a 'tagger' for jpeg images using PySimpleGUI as the interface. I have a long list of tag-words in a simple python list. I have had some…
Richard E
  • 334
  • 1
  • 4
  • 14
0
votes
1 answer

Python Popup windows icon / image

Is there a way to display custom image / logo on the title bar of a popup window in python. Using simplegui most probably. Please help me.
0
votes
1 answer

How do I have my code run for every row and not only for the first one?

import PySimpleGUI as sg #sg.theme('DarkBrown7') layout = [ [sg.Text('Medico Refertatore', size=(15, 1)), sg.InputText()], [sg.Text('Nome Paziente', size=(15, 1)), sg.InputText()], [sg.Text('Cognome Paziente', size=(15, 1)),…
0
votes
1 answer

Freeze in PySimpleGui when using FileBrowse

I'm trying to create a simple GUI, in which part of the functionality involves allowing the user to point to a file for loading. After that, I need to check it's length and read it etc, but I'm getting issues with the application freezing at a…
Mark Burgoyne
  • 1,524
  • 4
  • 18
  • 31
0
votes
1 answer

My small python app is running a bit slow. Possible bottleneck?

Sorry guys for the very newbish question. I just created a small program using PySimpleGUI and BeautifulSoup which reads live stocks from the TMXMoney website. I know it's quite bad but I am very new to Python (this is my first program…
Georgi
  • 29
  • 4
0
votes
1 answer

Python concurrent.futures multiple calls to imported modules

Before diving in the details I want to mention that've read this post, which problematic seems very similar : Python current.futures import libraries multiple times (execute code in top scope multiple times) Spyder 4.0.1 / Python 3.7.1 64-bit /…
Yoan B. M.Sc
  • 1,485
  • 5
  • 18
0
votes
1 answer

Show Table of Contents using sg.Tree() in PySimpleGUI

I want to show Table of contents of a PDF, as I am creating a PDFViewer using PySimpleGUI. I don't know if there is some other option that I can use for creating Table of contents other than TreeData(). My table of contents is a nested-list and it…
Zain Arshad
  • 1,885
  • 1
  • 11
  • 26
0
votes
2 answers

How To Create A Simple GUI For Taking 2 Excel Files and Uploading Them Into My Script

I have a script that takes two excel files with two datasets and concatenates them and transforms various aspects of the resulting single data frame. I created this script in Jupyter Notebook. I want the person I am building this for to be able to…
Matt
  • 97
  • 10