diff options
author | Iván Ávalos <avalos@disroot.org> | 2022-11-08 07:50:25 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2022-11-08 07:50:25 -0600 |
commit | 853f9db64eb9d94eda958b86e673e73469b4c349 (patch) | |
tree | 376cdf1d60b5dfe9225af6f595b9fb9e980b5936 /main.py | |
parent | f86a0e9ff5185874382e00d465931e5b78dd0874 (diff) | |
download | javanol-853f9db64eb9d94eda958b86e673e73469b4c349.tar.gz javanol-853f9db64eb9d94eda958b86e673e73469b4c349.tar.bz2 javanol-853f9db64eb9d94eda958b86e673e73469b4c349.zip |
Se arregla el menú
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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) |