Commit 52ab47ba authored by Franziska Koehn's avatar Franziska Koehn
Browse files

docu added to messagedialogs

parent 584d38ab
import gtk
def create_error_message(message):
"""Creates a message-dialog for errors, which contains a warning-sign and a ok-button
**Parameters**
:message: str: message, that will be displayed
"""
md = gtk.MessageDialog( type=gtk.MESSAGE_WARNING,
buttons=gtk.BUTTONS_OK,
message_format=str(message)
......@@ -9,6 +14,11 @@ def create_error_message(message):
md.destroy()
def create_confirmation_message(message):
"""Creates a message-dialog with confirmation buttons (yes/no), that contains a warning-sign
**Parameters**
:message: str: message, that will be displayed
"""
md = gtk.MessageDialog(type=gtk.MESSAGE_WARNING,
buttons=gtk.BUTTONS_YES_NO,
message_format=message
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment