summaryrefslogtreecommitdiff
path: root/SoftwareProperties/utils.py
diff options
context:
space:
mode:
authorMichael Vogt <egon@top>2005-11-15 14:18:07 +0100
committerMichael Vogt <egon@top>2005-11-15 14:18:07 +0100
commitd632109cd5964f7d4baa408d517e44f801e1be8d (patch)
treec1acf5f14bcfa183951c260a52e5560610f3a988 /SoftwareProperties/utils.py
downloadpython-apt-d632109cd5964f7d4baa408d517e44f801e1be8d.tar.gz
* initial revision (after accidently killing it)
Diffstat (limited to 'SoftwareProperties/utils.py')
-rw-r--r--SoftwareProperties/utils.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/SoftwareProperties/utils.py b/SoftwareProperties/utils.py
new file mode 100644
index 00000000..cf9a3343
--- /dev/null
+++ b/SoftwareProperties/utils.py
@@ -0,0 +1,10 @@
+import gtk
+
+def dialog_error(parent, primary, secondary):
+ p = "<span weight=\"bold\" size=\"larger\">%s</span>" % primary
+ dialog = gtk.MessageDialog(parent,gtk.DIALOG_MODAL,
+ gtk.MESSAGE_ERROR,gtk.BUTTONS_OK,"")
+ dialog.set_markup(p);
+ dialog.format_secondary_text(secondary);
+ dialog.run()
+ dialog.hide()