Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- A simplified version of my program to demonstrate my problem with the
- close button.
- """
- from breezypythongui import EasyFrame # Author: Kenneth A. Lambert
- class Sample(EasyFrame):
- def __init__(self):
- EasyFrame.__init__(self, title = "Please Close")
- self.quitButton = self.addButton(text = "Quit", row = 0, column = 0,
- command= self.exitProgram)
- # Let's try and close the window.
- def exitProgram(self):
- self.quit() # Quites the program
- self.destroy() # This should close the window, but doesn't
- def main():
- Sample().mainloop()
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement