====== Fenêtre princpale d'application ====== import tkinter as tk from tkinter import ttk class App(tk.Tk): def __init__(self): super().__init__() self.title("Mon application") self.geometry("640x480") self.init_variables() self.init_widgets() self.init_layout() ... def init_variables(self): # Création des variables liées aux widgets ... def init_widgets(self): # Création des widgets ... def init_layout(self): # Placement des widgets sur la fenêtre # à l'aide de pack() et/ou grid() ... if __name__ == "__main__": app = App() app.mainloop()