[pygtk] gtk.Statusbar.remove overrides gtk.HBox.remove

Karl Ostmo kostmo at gmail.com
Sun Dec 14 17:26:27 WST 2008


I am currently writing a Python plugin for Gedit.  The overridden remove()
method is causing some problems for me.

When plugins are deactivated, a callback is triggered that allows them to
remove any widgets they may have added to the Gedit window on activation.
For my plugin, a natural place for a status indicator widget is inside the
gtk.Statusbar (which inherits from HBox), right next to the line and column
number (which is also a gtk.Label packed into the Statusbar).  However,
there is no way for me to remove this widget again, since the remove()
method now does something completely different.

Are there any workarounds for this?  I tried using unparent() instead, but
that crashes Gedit.  Is this overriding method a bug in PyGTK?  I see that
gtkmm names the Statusbar method "remove_message".

Thanks,
Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20081214/1a259b6a/attachment.htm 


More information about the pygtk mailing list