diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-02 12:05:33 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-02 12:05:33 +0100 |
commit | f9fd4bbbe6778d27591c767c634e796a7054931e (patch) | |
tree | e705239f9b27957fa7e4d83a6b344461ff2a856d /portato/gui/dialogs.py | |
parent | 93ffd87b338c7107e3bc365392817390b6616f29 (diff) | |
download | portato-f9fd4bbbe6778d27591c767c634e796a7054931e.tar.gz portato-f9fd4bbbe6778d27591c767c634e796a7054931e.tar.bz2 portato-f9fd4bbbe6778d27591c767c634e796a7054931e.zip |
Handle non existing versions
Diffstat (limited to '')
-rw-r--r-- | portato/gui/dialogs.py | 7 |
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 + |