Reputation: 17
I'm creating a UI for my application and wanted to remove windows minimize and close buttons and add my own, i've added a close button but i don't know what function should I set the button to do.
Upvotes: 0
Views: 566
Reputation: 737
The close()
method is used for that. I don't what kinda button is your one, but you can call this method on your window object when button is pressed.
if event == "Button":
window.close()
Upvotes: 1