home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / lib / python2.4 / site-packages / AppInstall / DialogUnavailable.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2006-08-31  |  2.5 KB  |  47 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.4)
  3.  
  4. from SimpleGladeApp import SimpleGladeApp
  5. import gtk
  6. import os
  7. from gettext import gettext as _
  8. import gettext
  9. from BrowserView import GtkHtml2BrowserView as BrowserView
  10.  
  11. class DialogUnavailable(SimpleGladeApp):
  12.     
  13.     def __init__(self, datadir, parent, item):
  14.         SimpleGladeApp.__init__(self, path = datadir + '/gnome-app-install.glade', root = 'dialog_unavailable', domain = 'gnome-app-install')
  15.         if item.component == 'main':
  16.             header = _('Install supported Ubuntu software?')
  17.             msg = _('%s is part of the Ubuntu main distribution.') % item.name
  18.         elif item.component == 'universe':
  19.             header = _('Install community maintained software?')
  20.             msg = _('%s is maintained by the Ubuntu community.') % item.name
  21.         elif item.component == 'multiverse':
  22.             header = _('Install unsupported and restricted software?')
  23.             msg = _('The use, modification and distribution of %s is restricted by copyright or by legal terms in some countries.') % item.name
  24.         elif item.component:
  25.             header = _('Install software from the %s component of Ubuntu?') % item.component
  26.             msg = _('%s is not officially supported with security updates.') % item.name
  27.         elif item.channel:
  28.             header = _('Install software from %s?') % item.channel
  29.             msg = _('%s is provided by a third party vendor. The third party vendor is responsible for support and security updates.') % item.name
  30.         
  31.         msg += '\n\n%s' % _('You need a working internet connection to continue.')
  32.         self.button_unavailable_add.set_label(_('_Install'))
  33.         self.dialog_unavailable.set_transient_for(parent)
  34.         self.dialog_unavailable.realize()
  35.         self.dialog_unavailable.window.set_functions(gtk.gdk.FUNC_MOVE)
  36.         self.unavailable_label.set_markup('<b><big>%s</big></b>\n\n%s' % (header, msg))
  37.  
  38.     
  39.     def run(self):
  40.         return self.dialog_unavailable.run()
  41.  
  42.     
  43.     def hide(self):
  44.         self.dialog_unavailable.hide()
  45.  
  46.  
  47.