#!/usr/bin/env python

from gi.repository import Gtk

if __name__ == '__main__':
  window = Gtk.Window()
  window.set_default_size(250, 200)

  vbox = Gtk.VBox()
  window.add(vbox)

  menubar = Gtk.MenuBar()
  menu = Gtk.Menu()

  menuitem = Gtk.MenuItem('File')
  menuitem.set_submenu(menu)
  menu.append(Gtk.MenuItem('New'))
  menu.append(Gtk.SeparatorMenuItem())
  menu.append(Gtk.MenuItem('Quit'))
  menubar.append(menuitem)
  vbox.pack_start(menubar, False, True, 0)
  
  window.connect('delete-event', lambda x, y: Gtk.main_quit())

  window.show_all()

  Gtk.main()
