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

Am I using PySimpleGUI library wrong? What am I missing?

I'm trying to learn Python online from videos across the web. As a beginner project I chose to develope a simple system called POS (Point of Sale) with PySimpleGUI library. There's a bug that I've been trying to fix for couple days. When I click…
VolviX
  • 35
  • 5
0
votes
1 answer

Python file writes to txt document but erases on read

Hello I am developing this program to use an api to get opening and closing prices of certain stocks that the user enters. I am making the gui portion of the program using PySimpleGui. I have many text fields where the user enters the ticker symbol.…
Graham
  • 21
  • 2
0
votes
1 answer

How to create a minimize button with pysimplegui?

I'm creating a UI for my application and wanted to remove windows minimize and close buttons and add my own, i've added a close button but i don't know what function should I set the button to do.
defy14
  • 17
  • 1
0
votes
0 answers

Run Input through a piece of code, then return result in Text box

I want pysimplegui to do the following: read a number I input in an InputText; store that number in a variable "n" that then is used to search for a specific element in an Excel sheet; return value adjacent to the "n" variable from the Excel sheet…
Vlad Nemes
  • 11
  • 2
0
votes
1 answer

PySimpleGUI button that adds another slider

I need an "add new group of controls" feature to a control panel built with PySimpleGUI. One selects which kind of group of controls each time, so it can't be predefined similarly to what is described in this answer to How to display different…
uhoh
  • 3,713
  • 6
  • 42
  • 95
0
votes
1 answer

Make PySimpleGUI Radio Buttons generate events

In the past, to build a radio button with Matplotlib Widgets and print the pushed button name to the terminal I have done this: import matplotlib.pyplot as plt from matplotlib.widgets import RadioButtons def update(val): …
uhoh
  • 3,713
  • 6
  • 42
  • 95
0
votes
2 answers

how to read a multiline element from PySimpleGUI

My program stub looks like this: import PySimpleGUI as sg layout = [[sg.Text("Geheime Nachricht eintippen:")], [sg.Multiline(size=(70,4),key="GEHEIM")], [sg.Spin([i for i in range(1,26)], initial_value=12, key="SS"),…
Kurt
  • 264
  • 1
  • 7
  • 23
0
votes
0 answers

PySimpleGui error: Layout has a FUNCTION instead of an ELEMENT

after an update of pysimplegui package, every time i try to run a script i get the same error as in the subject. For example: import PySimpleGUI as sg layout = [[sg.Text('this is a try')]] window = sg.Window('mytitle', layout) When i run the code…
Marco
  • 46
  • 3
0
votes
0 answers

Calendar location in Python with PySimpleGUI

When opening a calendar from a window in PySimpleGUI, the window defaults to the top left of the screen. Setting the window's location changes only the original window, not the popup calendar. Is there a way to change the calendar's location? import…
Alex Elfont
  • 115
  • 1
  • 12
0
votes
1 answer

PySimpleGUI show user selection in window

I have a calendar button and a file browser button in a single window. When a date is selected from the calendar, I want the date selected to show next to the button. When the user selects a file, I want the path to be shown in the input box. How…
Alex Elfont
  • 115
  • 1
  • 12
0
votes
2 answers

PySimpleGUI how to make transparent click-through window?

I want to draw a circle on the screen but it should be click-through and I should be able to click somethings behind in this circle. So far, I achieved to draw circle and made it transparent but i couldn't make it click-through. I know that it is…
0
votes
1 answer

PysimpleGUI button callback for scapy to sniff network traffic

I am using pysimpleGUI to create a GUI..I want to use the the button sniff to carry out a ARP scan using Scapy then print the details of this either in the Output or Multiline element in pysimpleGUI could someone guide me how to do this At the…
user12258691
  • 21
  • 2
  • 8
0
votes
0 answers

A multi-input PySimpleGUI for a working python script

I'm using a working script built in python 3 that reads an excel file. Using the input, it figures out which VIP (Virtual IP) subnet I should use and which F5 load balancer the VIP should be matched with, and then spits out the cli commands needed…
user30558
  • 43
  • 6
0
votes
0 answers

Error while debugging Python in Visual Code Studio - Module not found

I am facing trouble whilst trying to build a programme for my university's programming class. We are trying to programme an interactive database. While trying to debug the code on Visual Studio Code, I get the following error: No module named…
0
votes
3 answers

Sending email with smtplib, no errors but no messages delivered

**UPDATE2: In the last bit of code of V2 I swapped smtp.sendmail(email_address, address, msg,) with smtp.sendmail(email_address, phone_book, msg,) Accessing the phone_book directly seems to have solved the issue. Here is the working code for anyone…