From 853f9db64eb9d94eda958b86e673e73469b4c349 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Tue, 8 Nov 2022 07:50:25 -0600 Subject: Se arregla el menú MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index 8432849..1da41cc 100644 --- a/main.py +++ b/main.py @@ -40,6 +40,7 @@ class Main: root.title ("Javañol") root.columnconfigure(0, weight=1) root.rowconfigure(0, weight=1) + root.option_add('*tearOff', FALSE) mainframe = ttk.Frame(root, padding="3 3 12 12") mainframe.grid(column=0, row=0, sticky=(N, W, E, S)) @@ -48,9 +49,8 @@ class Main: mainframe.rowconfigure(1, weight=0) # Menú - win = Toplevel(root) - - menubar = Menu(win) + menubar = Menu(root) + root['menu'] = menubar menu_file = Menu(menubar) menubar.add_cascade(menu=menu_file, label='Archivo') @@ -62,8 +62,6 @@ class Main: menubar.add_cascade(menu=menu_program, label='Programa') menu_program.add_command(label='Compilar', command=self.compilar_programa) menu_program.add_command(label='Ejecutar', command=self.ejecutar_programa) - - win['menu'] = menubar # Editor de código self.text = Text(mainframe) -- cgit v1.2.3