Search code examples
pythongtk3gnome

add option on right click menu of textview Gtk+ python


I want to add one more option in the default menu comes on right click in textview in Gtk+ Python.

On hovering of that option I want to add one more submenu/popup to that option.

How it is possible in Gtk+ Python2.7


Solution

  • Connect to the populate-popup signal, and add your menu item to the Gtk.Menu that is passed to your signal handler.