I want to create a MenuItem that an Entry shows on this to user can enter value to the entry widget. This procedure is easy to implement but after showing this Entry it cant get cursor and user cant input text to it, help me to do it please. i used pygtk 2.0 .
#!/usr/bin/env python
import gtk
win = gtk.Window()
win.connect( "destroy", gtk.main_quit )
menubar = gtk.MenuBar()
popup = gtk.Menu()
root_menu = gtk.MenuItem("root")
menu_item = gtk.MenuItem()
field = gtk.Entry()
win.add( menubar )
menubar.add( root_menu )
root_menu.set_submenu( popup )
popup.append( menu_item )
menu_item.add( field )
win.show_all()
print field.get_can_focus(), field.get_editable()
gtk.main()