How to disable or remove default popup menu in TextView?
TextView displays a default popup menu when right-click is pressed. Is it
possible to implement the code below to not display this default popup menu?
import pygtk
pygtk.require('2.0')
import gtk
class main:
def __init__(self):
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.set_size_request(500, 500)
self.verticalBox = gtk.VBox()
self.textView = gtk.TextView()
self.window.add(self.verticalBox)
self.verticalBox.add(self.textView)
self.window.show_all()
def main(self):
gtk.main()
if __name__ == '__main__':
window = main()
window.main()
Thanks in advance.
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/