try:
    import Tkinter as tk
except:
    import tkinter as tk
class Test:
    def __init__(self):
        self.root = tk.Tk()
        self.root.geometry("100x50")
        button = tk.Button(self.root, text="Click and Quit", command=self.quit)
        button.pack()
        self.root.mainloop()
    def quit(self):
        self.root.destroy()
app = Test()

import tkinter as tk
app = tk.Tk()
app.geometry("300x200")
app.title("Basic Status Bar")
statusbar = tk.Label(app, text="on the way…", bd=1, relief=tk.SUNKEN, anchor=tk.W)
statusbar.pack(side=tk.BOTTOM, fill=tk.X)
app.mainloop()

Créé avec HelpNDoc Personal Edition: Rationalisez votre processus de documentation avec un outil de création d'aide