summaryrefslogtreecommitdiff
path: root/portato/gui/dialogs.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-02-02 12:05:33 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-02-02 12:05:33 +0100
commitf9fd4bbbe6778d27591c767c634e796a7054931e (patch)
treee705239f9b27957fa7e4d83a6b344461ff2a856d /portato/gui/dialogs.py
parent93ffd87b338c7107e3bc365392817390b6616f29 (diff)
downloadportato-f9fd4bbbe6778d27591c767c634e796a7054931e.tar.gz
portato-f9fd4bbbe6778d27591c767c634e796a7054931e.tar.bz2
portato-f9fd4bbbe6778d27591c767c634e796a7054931e.zip
Handle non existing versions
Diffstat (limited to '')
-rw-r--r--portato/gui/dialogs.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/portato/gui/dialogs.py b/portato/gui/dialogs.py
index edf34b7..8931535 100644
--- a/portato/gui/dialogs.py
+++ b/portato/gui/dialogs.py
@@ -113,3 +113,10 @@ def prereq_error_dialog (e):
ret = dialog.run()
dialog.destroy()
return ret
+
+def no_versions_dialog (cp):
+ dialog = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, _("No versions of package '%s' found!") % cp)
+ ret = dialog.run()
+ dialog.destroy()
+ return ret
+