0

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.

defy14
  • 17
  • 1

1 Answers1

1

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()

Michael
  • 657
  • 4
  • 29