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

Drag and drop with PySimpleGUI

Is it possible to create a "drop files here" zone on a window? A method mentioned in this old issue works, though only with Qt and Input element. I wonder if there's a better solution. https://github.com/PySimpleGUI/PySimpleGUI/issues/732 Upd:…
3
votes
2 answers

Nuitka doesn't get along with PySimpleGUI: `CALL_FUNCTION_WITH_ARGS14' error

I try to make an EXE on windows with Nuitka but always get error like this: CALL_FUNCTION_WITH_ARGS14 I googled 'CALL_FUNCTION_WITH_ARGS14' but nothing shows up. Does anyone have similar issue? I am using Python 3.9 and 3.10 and this is my…
3
votes
1 answer

pysimplegui Buttonless Text Update

i'm trying to create a big clock as a gui test project. The window should run without any input and just display the time while updating 10 times a second. Regardless of what i tried so far i cannot get the text to update with my current…
ThisLimn0
  • 43
  • 5
3
votes
1 answer

How to make resizable elements in a window object created from PySimpleGUI library?

I have created a GUI of a python code. I have created some elements in the window. I want the elements to be responsive to the window size. I have added a resizable=true property in the window object but it only makes the application window…
3
votes
1 answer

How can I programmatically trigger an event with PySimpleGUI?

For example, the "Show" event in the example below is tied to clicking the "Show" button. Is there a way to programmatically fire off the "Show" event without actually clicking the button? The goal is to automate clicking a series of buttons and…
Salvatore
  • 10,815
  • 4
  • 31
  • 69
3
votes
1 answer

Why do I have to double click to actually do something?

Code: import PySimpleGUI as sg layout = [ [sg.Input(s=(26, 1), background_color='red', k='Input')], [sg.Button('White', s=(10, 1)), sg.Button('Black', s=(10, 1))], ] window = sg.Window('test', layout=layout, margins=(1, 1)) while True: …
Eskimo868
  • 238
  • 1
  • 12
3
votes
2 answers

How do I update the text in PySimpleGUI in real time?

I'm trying to make a program that reads the serial of my arduino and shows the information in real time in a GUI. The problem is that I don't know how to make the data update in real time. This is my current code: import re import serial import…
3
votes
1 answer

PySimpleGUI currently selected tab and its key

While working on my project I came across a problem regarding tabs and tabgroup in PySimpleGUI. Is there a function that returns currently selected tab? Having many tabs I would like being able to select each of them (but not at the same time) and…
keevee
  • 33
  • 1
  • 4
3
votes
1 answer

How to add a field or element by clicking a button in PySimpleGUI?

I want add a functionality in the app that when a plus button is clicked then new input fields will be created. I am using this code now: import PySimpleGUI as sg PLUS_ICO =…
Sakib
  • 31
  • 1
  • 2
3
votes
2 answers

Right-to-Left text-direction in PySimpleGUI

Does PySimpleGUI python library support RTL alignment? I want to align Arabic text from right-to-left: Code: sg.Text("احب الطعام", font='12', size=(15, 1), background_color='#81a5b3')
Minions
  • 5,104
  • 5
  • 50
  • 91
3
votes
1 answer

Is it possible to insert a checkbox in a PysimpleGui table?

I want to create a PySimpleGui table where multiple rows can be selected just using the mouse (for an app in python3). The pysimplegui table allows to select various rows by means of Ctrl and Shift as usual, but i need to do this only by clicking at…
Celulas
  • 33
  • 1
  • 4
3
votes
1 answer

Waiting Screen while data is being extracted from an API

I have created a Python Script to download data using an API. And I have put a simple GUI on top of it as well using PySimpleGUI. However, while the data is being downloaded, I want to show a indeterminate progressbar or something like that, which…
Yash Sharma
  • 324
  • 6
  • 25
3
votes
0 answers

How to create time input field in PySimpleGUI

I am trying to create a GUI in Python using PySimpleGUI to log my work hours. I am writing the data to an Excel file. So far, everything is working the way it should. What I can't figure out is how to create a time input field. I thought something…
tiuq23
  • 113
  • 2
  • 11
3
votes
1 answer

PySimpleGUI make text selectable with mouse

I'm creating a textbox as follows: sg.Text(size=(57, 10), background_color='white', text_color='red', key='_console') And it works fine, except the text isn't selectable! I want the user to be able to copy the message to clipboard…
Guy Barash
  • 470
  • 5
  • 17
3
votes
0 answers

'OSError: [WinError 6] The handle is invalid' in PySimpleGUI while using '-w' in Pyinstaller, Speech Recognition and Pyttsx3

So I created a program with PySimpleGUI and then made .exe file from it with Pyinstaller. Here is my command: pyinstaller --hidden-import=pyttsx3.drivers --hidden-import=pyttsx3.drivers.dummy --hidden-import=pyttsx3.drivers.espeak…
user14230861
1 2
3
79 80