minimize the window from code

Hi
I’m making a game with custom windows.
As I can minimize the window from code?
Thanks!

Yes, you can.

wp = WindowProperties()
wp.setMinimized(True)
base.win.requestProperties(wp)

Thanks for your help, sorry for the delay.