From 7d374a2df789fdea38c4046bf7f2338cf0e5fc24 Mon Sep 17 00:00:00 2001 From: "barraux.a" Date: Sat, 5 Feb 2022 17:27:17 +0100 Subject: [PATCH] ajout --- test.py | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 test.py diff --git a/test.py b/test.py deleted file mode 100644 index 5b80cd9..0000000 --- a/test.py +++ /dev/null @@ -1,27 +0,0 @@ -from tkinter import * - -class Window(Frame): - def __init__(self, master=None): - Frame.__init__(self, master) - self.master = master - - menu = Menu(self.master) - self.master.config(menu=menu) - - fileMenu = Menu(menu) - fileMenu.add_command(label="Item") - fileMenu.add_command(label="Exit", command=self.exitProgram) - menu.add_cascade(label="File", menu=fileMenu) - - editMenu = Menu(menu) - editMenu.add_command(label="Undo") - editMenu.add_command(label="Redo") - menu.add_cascade(label="Edit", menu=editMenu) - - def exitProgram(self): - exit() - -root = Tk() -app = Window(root) -root.wm_title("Tkinter window") -root.mainloop() \ No newline at end of file