Skip to content

Commit

Permalink
Added menu and submenu
Browse files Browse the repository at this point in the history
  • Loading branch information
hraj9258 committed May 2, 2020
1 parent e88d385 commit 3f16325
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions hemlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@

root = Tk()

#menubar
menubar=Menu(root)
root.config(menu=menubar)

#submenu
submenu = Menu(menubar,tearoff=0)
menubar.add_cascade(label="File",menu=submenu)
submenu.add_command(label="Open")
submenu.add_command(label="Exit")

submenu = Menu(menubar,tearoff=0)
menubar.add_cascade(label="Help",menu=submenu)
submenu.add_command(label="About us")


mixer.init()#initializing the mixer

root.geometry("300x300")
Expand Down

0 comments on commit 3f16325

Please sign in to comment.