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')],
[sg.Text('There you can install apps')],
[sg.Button('hi', key='install')]
]
window = sg.Window('Apps Installer', layout)
layout2 = [
[sg.Text(z)]
]
while True: # The Event Loop
event, values = window.read()
# print(event, values) #debug
if event in ('install'):
x = "steam"
window = sg.Window('Apps Installer', layout2)
else:
break
if (x == 'steam'):
z = 'ins'
layout2 = [
[sg.Text(z)]
]