Hi,
  I'm pretty new to the GtkTreeStore/View in  PyGTK. I made a TreeView
and have added a TreeStore to it and I can fill it up with data.

However I would like to set it so that right clicking on a row brings up
a pop up menu. I tried connect()'ing to the result of
view.get_selection() and supplying my own function. The function
recieves a TreeSelection object but I'm not sure as to how I can get the
row data out of that selection object.

Furthermore the callback is triggered on any mouse click. Is there
anyway to only accept a right click?

Thanks,

-------------------------------------------------------------------
Rajarshi Guha <[EMAIL PROTECTED]> <http://jijo.cjb.net>
GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE
-------------------------------------------------------------------
A bug in the hand is better than one as yet undetected.

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to