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 = [
"8-4",
"9-5",
"10-6",
"11-7",
"12-8",
]
eightHour = {
"8 hour" : "eightShift",
}
N = (random.choice(shiftLength))
if N in eightTime:
print(random.choice(eightShift))
How would I apply sg.Text instead of print? would i just do something like this?
if N in eightTime:
M = random.choice(eightShift)
layout = [[sg.Text(m)], [sg.Button("OK")]]