bhavna singhal
bhavna singhal

Reputation: 35

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

Upvotes: 2

Views: 502

Answers (1)

ptomato
ptomato

Reputation: 57920

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

Upvotes: 1

Related Questions