De la conception de l'interface graphique filaire à Python Tkinter
import tkinter as tkclass MainWindow(tk.Frame):def __init__(self, pRoot, **kwargs): super().__init__(pRoot, kwargs) self.pLabel = tk.Label(self, text=”Hello”) self.pLabel.pack() if “__main__” == __name__: pApp = tk.Tk() pMainWindow = MainWindow(pApp) pMainWindow.grid() pApp.mainloop()
Abdollah Mahdi