On 6/26/05, Matthew Palmer <[EMAIL PROTECTED]> wrote:
> I'm trying to produce a menu effect in PyGTK similar to the Mozilla tab bar,
> where a right-click on the tab produces a popup menu to perform various
> actions on the tabs (and/or contents thereof).  I can get most of the way
> (sort of) with a button-press-event handler, but there's a couple of things
> I can't manage to effect: (a) A right-click on the untabbed portion of the
> tab list still gives the menu, and (b) I can't work out which tab was
> clicked on.
(a) is how FFOX does it but I don't have any idea on this
(b) pygtk2reference/class-gtknotebook.html#method-gtknotebook--get-current-page
you get 0 1 2 3 so you know which one is shown atm of the button_press_event

> 
> I thought I was on a winner with Notebook.append_page_menu(), but that turns
> out to do things totally different to what I thought (and hoped) it did.
That would rock. I think that there is not a signal you can catch and
override (like populate_menu) rest of list people: "am I wrong?" If
not I would suggest you bugrreport this

Matt I hope this helps

-- 
Nikos Kouremenos | Jabber ID: [EMAIL PROTECTED] | http://members.hellug.gr/nkour
_______________________________________________
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