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

PySimpleGUI | Add progress bar for Panda's pd.read_excel

I am using pd.read_excel to read large excel files. How do I add in a GUI progress bar to inform users the progress while the system is reading the file? I came across tqdm and PySimpleGui as the most commonly used progress bar. PySimpleGUI…
Juxcy
  • 15
  • 3
0
votes
1 answer

Force overlay a PySimpleGUI window

I just want that if someone tries to close the GUI window using close button instead of clicking "OK", the window reappears... In simple words, they cannot close this one or access any other window without clicking "OK". import PySimpleGUI as…
0
votes
1 answer

Why PDFPlumber not working with PysimpleGUI?

Currently, the python source file does not run into any compile errors but its not executing the backend process which converts the data from a pdf table to a csv file. Here is my source code: sg.theme('Dark Blue 3') # please make your creations…
0
votes
1 answer

Passing a tuple as a key

I'm trying to capture text box input as a tuple, and pass it along to a for loop that will perform an action for each item in the tuple. Ideally, this tuple would be dynamically sized, i.e. one iteration of the program might pass the tuple as ("1",…
0
votes
1 answer

Trying to run streamlink with arguments through PySimpleGUI, getting permission denied

As the title states, I'm trying to create a basic streamlink GUI with PySimpleGUI. I've got [gui.Text('Stream link:'), gui.InputText()], and a bunch of other code (as of yet unimplemented options) which takes a stream link as an input, and…
0
votes
0 answers

Threads with PySimpleGui gives RunTimeError

I have explored using threads with PySimpleGui but quite often the thread terminates RuntimeError: main thread is not in main loop I have tried running the "official" demos,…
0
votes
1 answer

How can I automaticly read values on PySimpleGui?

I have added a browse folder button but it not gives me values until I click another button. I tried reading it like this while True: event, values = mainwindow.Read() if values['Select folder...'] != '': print(values['Select…
Hamster
  • 67
  • 2
  • 7
0
votes
1 answer

passing variables via pysimplegui to pyperclip

I want to start by thanking everyone for taking the time to read this and help me out. IM rand new to pysimplegui and am having a hard time passing this variable into pyperclip. I'm positive my syntax is wrong. The actual line for pyperclip is…
will.ditch
  • 49
  • 9
0
votes
2 answers

PySimpleGUI ddosing (for my website only) tool not working

The ddos tool is not working. Here is the traceback of this script. I am unsure of what do to fix all of this as it is my first GUI. Traceback (most recent call last): File "C:\Users\pchaf\Downloads\Python Scripts\Cyber Security\DDOS_GUI.py", line…
ThatSpy
  • 1
  • 1
0
votes
1 answer

Python - SimpleGui - Listbox - After Search I lose the highlight

I've a very simple interface where I have a listbox with my employee names and a Input text where I can put the name to search more quickly. I've I don't put any text on the input I can select the employee name with a highlight like this: But if I…
Pedro Alves
  • 1,004
  • 1
  • 21
  • 47
0
votes
1 answer

Variables in sg.Text on PySimpleGUI

Currently, im still pretty new to PySimpleGUI and im trying to figure out how to display text pulled from a variable. for example, without PySimpleGUI i would do as follows, shiftLength = [ "1", "8", ] eightShift =…
copperkam
  • 29
  • 5
0
votes
1 answer

Append text to textbox in pysimplegui?

So I'm trying to get the GUI up and running for a simple program that will check a modbus network. Which needs a giant text field to display data. I am using sg.Text. The problem I have is the text box doesn't append when updating. I am sure I am…
A_Bowler_Hat
  • 1
  • 1
  • 1
0
votes
1 answer

Dynamically change row size PySimpleGUI

I am trying to dynamically display rows in the UI when a button is pressed. To do this, I am first declaring the row in the layout, but making it hidden. Then when I get the value, I make the row hidden. Sometimes the text is very large, so I am…
twothreezarsix
  • 375
  • 3
  • 13
0
votes
0 answers

How to plot a matplotlib graph alongside a pyqt simple gui window?

So I have a pysimpleGUI window to set some experiments parameters and when you press a button it's supposed supposed to graph the experiment in a matplotlib window alongside the main window. But the matplotlib window is all black while the main…
Zeor137
  • 165
  • 1
  • 2
  • 11
0
votes
1 answer

List of values not showing up in sg.Combo drop down list in PySimpleGUI?

My code below does not show the list specified (based on parsing excel file dataframe columns) and the drop down list is empty.I am unsure of what I am missing here, please could someone help out? Thanks Here is a example: import PySimpleGUI as…
user11874651