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

Error when running PySimpleGUI code through linux terminal

My python code runs smoothly when I run it through Thonny python IDE but when I try to run it through the linux command terminal this error show up. _tkinter.TclError: couldn't connect to display ":10.0" I am using PySimpleGUI for the GUI part of my…
0
votes
1 answer

Button Non-Event-Driven Model

First, I have read the docs. I understand that the information is stored in Key= x. My issue is when I call a function from another file it does not recognize x. I have read the docs, but failing to understand how to use the key I tried putting x…
RobE
  • 93
  • 2
  • 11
0
votes
1 answer

Creating a folder with pysimplegui

To be honest i am very new to python and i have written some scripts with the help from everyone but i stumbled onto something that i can't find anywhere. I'm trying to create a pysimplegui script that will present a input text for the user to type…
Ben Palma
  • 11
  • 1
0
votes
1 answer

Turning master script and child script into executable

When I run the below code, the child scripts no longer execute. How can I make the master script and other child scripts work once they turn into .exe? I have created a masterscript using PysimpleGUI and it works when I keep everything in script…
Pat
  • 41
  • 6
0
votes
1 answer

PySimpleGUI reads in button event despite button being disabled at the time

I have a GUI based on PySimpleGUI (PySimpleGUI 3.4.2., Python 3.7.2, macOS Mojave 10.14.6) that works fine except buttons seem to be firing although disabled. Users listen to 3 consecutive sounds and give a rating in my GUI by clicking a button.…
Sas
  • 1
  • 1
  • 2
0
votes
1 answer

My code runs through main.py in PyCharm but not from console. Why is this so?

The main.py below runs fine in PyCharm, but if I try to run the main.py in a virtualenv via my terminal, I get the following error: main.py: from plotservice import plot_point from dialog import dialogue def main(): """ Main entry point of the…
0
votes
0 answers

What key on a Mac keyboard maps to tkinter's and binding

I have tkinter code that binds 2 keys. self.TKroot.bind('', self._callback_main_debugger_window_create_keystroke) self.TKroot.bind('', self._callback_popout_window_create_keystroke) On a PC, these map to BREAK and…
Mike from PSG
  • 5,312
  • 21
  • 39
0
votes
2 answers

Button in PySimpleGUI not working when key is used

I have a basic GUI window with two button. They work properly if there is no key for button. If I use key for any button that button don't work. In this case button 2 is not working, because I have used key='b2' for it. import PySimpleGUI as sg …
0
votes
3 answers

How to prevent error cause by checkbox on 2nd window?

I am trying out pysimplegui to use it as a gui for others to run my code. I manage to create a 2 window gui where the 2nd window is for admin use. But i found that if i were to do a few times of entering and exiting windows 2, there will be an…
Zabjaku
  • 97
  • 1
  • 7
0
votes
1 answer

Pointer is not automatically moving in Pysimplegui after adding a new string

So, what I want is when the user writes something using a button instead of the keyboard in my scientific calculator, the pointer should move at the end of the string but, at the moment can't find a way for the pointer to move where the string ends…
0
votes
1 answer

How to read Nonetypes when comparing PySimpleGUI and openPyxl

I am assigning a GUI variable to an excel sheet cell. I use PySimplegui, then read the values of that GUI, and openpyxl to write to my excel sheet. It always tells me TypeError: 'NoneType' object is not subscriptable no matter what. import…
Kirby Forsberg
  • 124
  • 1
  • 3
0
votes
0 answers

PySimpleGui FileBrowse and FolderBrowse dialogs look different after conversion to .exe file

I built a GUI application for Windows using: Python 3.4.0 PySimpleGUI 4.0.0 Py2exe to create the .exe file However when I run the application by running the .exe file, the FileBrowse and FolderBrowse dialogs of PySimpleGUI look different than…
Ferdy
  • 1
  • 1
0
votes
0 answers

How to stop the process started from python gui?

I created a simple gui tool in python which has a button which starts some process by calling my python module in background. I want to stop the process if a condition not satisfied and want to popup an error msg. I am not able to find a way to stop…
Anudocs
  • 686
  • 1
  • 13
  • 54
0
votes
1 answer

Can we create speech to text GUI with PysimpleGUI?

I'm newbie in Python and PysimpleGUI. I want to create a simple GUI for speech to text. Can Pysimple GUI make it? Or is there another GUI framework that can work other than PysimpleGUI? Now I have done creating the GUI but have some problem, I want…
LINKED
  • 1
  • 1
0
votes
0 answers

PySimpleGUI: Using InputCombo in a second window

I'm new to Python and trying PySimpleGUI. I'm trying to use InputCombo in a second, pop-up window. Here is the code, based on "Design pattern 2 - First window remains active". import PySimpleGUI as sg method = 'method1' layout = [[ sg.Text('Window…