I would like to update the property no_titlebar of a PySimpleGUI Window.
What I want is that, when we click a button, the window which was initially having titlebar should be having no titlebar.
Is there any way to Implement this ?
from PySimpleGUI import *
lt=[[Button("No Layout")]]
wn=Window("Test",lt,no_titlebar=False)
while True:
e,v=wn.read()
if e=="No Layout":
wn.Update(no_titlebar=True)
else:
break
I tried this but was getting an AttributeError
AttributeError: 'Window' object has no attribute 'Update'
'Window' object has no attribute 'Update'.