aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-11-08 07:50:25 -0600
committerIván Ávalos <avalos@disroot.org>2022-11-08 07:50:25 -0600
commit853f9db64eb9d94eda958b86e673e73469b4c349 (patch)
tree376cdf1d60b5dfe9225af6f595b9fb9e980b5936 /main.py
parentf86a0e9ff5185874382e00d465931e5b78dd0874 (diff)
downloadjavanol-853f9db64eb9d94eda958b86e673e73469b4c349.tar.gz
javanol-853f9db64eb9d94eda958b86e673e73469b4c349.tar.bz2
javanol-853f9db64eb9d94eda958b86e673e73469b4c349.zip
Se arregla el menú
Diffstat (limited to 'main.py')
-rw-r--r--main.py8
1 files 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)