#!/usr/bin/python1.5
# File: menu-example-3.py

from Tkinter import *

root = Tk()

def hello():
    print "hello!"

def help():
    text=""" Feladatsor válogató program. """ 
    print text

menubar = Menu(root)

# create a pulldown menu, and add it to the menu bar
filemenu = Menu(menubar, tearoff=0)
filemenu.add_command(label="Ellenőrzés", command=hello)
filemenu.add_command(label="Feladatválogatás", command=hello)
filemenu.add_command(label="Feladatválogatás megoldásokkal", command=hello)
filemenu.add_separator()
filemenu.add_command(label="Kilépés", command=root.quit)
menubar.add_cascade(label="File", menu=filemenu)

# create more pulldown menus
editmenu = Menu(menubar, tearoff=0)
editmenu.add_command(label="Cut", command=hello)
editmenu.add_command(label="Copy", command=hello)
editmenu.add_command(label="Paste", command=hello)
menubar.add_cascade(label="Edit", menu=editmenu)

huhelpmenu = Menu(menubar, tearoff=0)
huhelpmenu.add_command(label="Mi ez?", command=hello)
menubar.add_cascade(label="Segítség", menu=huhelpmenu)

helpmenu = Menu(menubar, tearoff=0)
helpmenu.add_command(label="About", command=hello)
menubar.add_cascade(label="Help", menu=helpmenu)

# display the menu
root.config(menu=menubar)

mainloop()
