Fixed erroneous document string for Pane.set_error.

This commit is contained in:
David Soulayrol 2011-09-03 22:34:48 +02:00
parent 406a5b0055
commit b4af14a78e

View file

@ -124,11 +124,11 @@ class Pane(gtk.VBox):
self._header.show_all()
def set_error(self, msg):
"""Add a help header to the pane with the given message.
"""Display a error in the pane's footer.
Since it is quite common that panes begin with a little guide
explaining the current step, calling this method will ensure
such panes all present the same header style.
Display the given message in red in a special label attached
to the footer of the pane. The pane is hidden if the message
is empty.
"""
self._error.foreach(lambda w: self._error.remove(w))
if msg: