Protokolle in Tkinter in PythonPython

Python-Programme
Anonymous
 Protokolle in Tkinter in Python

Post by Anonymous »

Ich bin neu in Python und ich möchte Protokolle wie wm_delete_window , wm_take_focus und wm_save_yourself verwenden. Ich habe ein Beispiel für wm_delete_window gefunden, was klar genug ist, um sie zu verstehen. Aber ich möchte die restlichen zwei Protokolle verstehen. Was machen sie? < /P>

Code: Select all

from Tkinter import *
import tkMessageBox

root = Tk()

def on_closing():
if tkMessageBox.askokcancel("Quit", "Do you want to quit?"):
root.destroy()

root.protocol("WM_DELETE_WINDOW", on_closing)

root.mainloop()

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post