Hi,

I'd like to (perhaps) share the menu call backs between multiple
windows.  So I tried to get the window concerned from the MenuItem
object passed to the call back. 

Now, I'm puzzled by the fact that in a call back the get_toplevel()
for the MenuItem does not give the associated window, nor does
is_ancestor() work.

I.e.: 
 1. Window: <Window object (GtkWindow) at 0x826d1b4>
 2. MenuItem.get_toplevel(): <gtk.Window object (GtkWindow) at 0x8417d04>

This looks strange to my (novice) eyes.

I have to add that the Window at (1) is a subclass of gtk.Window. As I
happen to have no idea of how Python implements subclasses, this may
be the reason for the behaviour in question.

If this be the case, it should be possible to navigate somehow between
the two aspects?


Regards,

        Peter
--
     Key fingerprint = DDB1 E6A4 522E 1CBF 0C37  031A AAA9 FB5C 3984 CF9D
_______________________________________________
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