Can someone please tell me why my menubar does not show up?
#!/usr/bin/env python
from Tkinter import *
class Application(Frame):
def __init__(self, master=None):
Frame.__init__(self, master)
self.master.rowconfigure(0, weight=1)
self.master.columnconfigure(0, weight=1)
self.master.title('Test Menu')
self.createMenu(master)
#self.createShell()
def createMenu(self, master):
menubar = Menu(master)
master.config(menu=menubar)
loadmenu = Menu(menubar)
loadmenu.add_command(label='Load', command=self.load)
loadmenu.add_command(label='Save', command=self.save)
loadmenu.add_separator()
loadmenu.add_command(label='Quit', command=self.quit)
#master.grid()
def createShell(self):
frame = Frame(width=400, height=300)
frame.grid()
def load(self):
pass
def save(self):
pass
def quit(self):
pass
root = Tk()
app = Application(master=root)
app.mainloop()