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

basic multiplication is not working, the variable kg is multiplied by 2.205 to get the lbs conversion

I am getting weird outputs like 100kg =103 kg while the lbs to kg conversion is working perfectly fine, def calculate_1rm(weight_unit, squat, deadlift, bench_press, reps): try: squat, deadlift, bench_press, reps = float(squat),…
Jesus
  • 5
  • 2
-2
votes
1 answer

global variable not recognized; says its local variable

Its not recognizing the global variable. I experienced this issue before and thought the global variable would prevent the error but no matter what i try it always returns this: local variable 'P1o' referenced before assignment #import…
-2
votes
1 answer

How do I make a PySimpleGUI calculate the options?

Trying to make the GUI application calculate cost. Unsure how to do it So I've built my GUI Application using PySimpleGUI but i'd like to make it functional and calculate the total membership cost in the pop up window I've created. Can someone point…
-2
votes
2 answers

How to exclude characters from a print if value is not greater than 0 or blank

I'm working on a program with PySimpleGui that will copy a finished and refined result list to my clipboard when I press the copy button. So far, it's looking good, but when I copy it, I don't want to include the characters G(Goal), A(Assist) and…
ClayAces
  • 1
  • 2
-2
votes
1 answer

How to update button Mouseover color in PySimpleGUI (Tkinter Port)?

I am writing a program. I created the whole gui and its time to update my window according to events. Everything is pretty good but i think the PySimpleGUI developer actually missed button mouseover color to update. Usually it should…
-2
votes
1 answer

Pysimplegui and Pygame merge

hi I am trying to merge a pygame program with pysimplegui. i'm looking for a way of grabbing the downstroke of a keyboard key. at the moment i can only see an upstroke of the key no matter what im doing. I have sucessfully created pysimplegui…
Gadgettyke
  • 19
  • 6
-2
votes
1 answer

How to build a simple UI in python that runs an already complete python code and displays results within the UI window itself rather than the console?

I have already written a complete code in python but I only run it from the console and it display the results in console. I need help in building a simple UI that has a run button that will allow the code to run and display its results within the…
-2
votes
2 answers

I am trying to build a python GUI Database Comparator using PySimpleGUI i missing something here?

I am trying to Build a GUI DB Comparator which is divided in two layout window. Get the DB Detail from user and Test the connection Get a Excel file which contains the SQL Statement that will be performed on DB and using Datacompy Comparison will…
-2
votes
1 answer

Using a PySimpleGUI import script without running it

I'm building a custom network testing application. I have different aspects of the test in their respected scripts. However, every time I run the script, the import of the script causes the script to run. The script being imported is…
-2
votes
1 answer

Embed icon in PySympleGui

is there a way to embed icon in PySympleGUI or only external file, Im hit my head to do it but I don't know if is possible, can someone help with this? Thanks all!
-3
votes
1 answer

plot.show is still running after closing the plot window

import os import sys from typing import List from scipy import signal from scipy import interpolate from scipy.interpolate import interp1d import numpy as np import csv import itertools from string import ascii_uppercase import time import…
-3
votes
1 answer

How do I return the pysimplegui input value to my program?

The function is used to set a user and return it to the program for further use. def setuser(int1=int(values)): i = 0 if len(aNutzerID) == 0: # here if I have no users in the program, it returns "no User" laySetUser = [ …
-3
votes
1 answer

I am writing a program on python, but window outupt none, but i need that it output ins

I am writing a program on python, but window outupt none, but i need that it output ins pls help me i am new at python code: from typing import Text import PySimpleGUI as sg x = 'none' z = 'none' layout = [ [sg.Text('Welcome')], …
Ivanoio
  • 3
  • 3
1 2 3
79
80