Fixed erroneous document string for Pane.set_error.
This commit is contained in:
parent
406a5b0055
commit
b4af14a78e
1 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue