~didrocks/ubiquity/intall-metrics

« back to all changes in this revision

Viewing changes to ubiquity/frontend/gtkui.py

  • Committer: Colin Watson
  • Date: 2006-04-21 11:39:15 UTC
  • Revision ID: colin.watson@canonical.com-20060421113915-7d2d711cd6afc4f5
* Rename from espresso to ubiquity, to better suggest an association with
  Ubuntu. Log output now written to /var/log/installer/syslog rather than
  using the package name.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
try:
54
54
    from debconf import DebconfCommunicator
55
55
except ImportError:
56
 
    from espresso.debconfcommunicator import DebconfCommunicator
 
56
    from ubiquity.debconfcommunicator import DebconfCommunicator
57
57
 
58
 
from espresso import filteredcommand, validation
59
 
from espresso.misc import *
60
 
from espresso.settings import *
61
 
from espresso.components import language, kbd_chooser, timezone, usersetup, \
 
58
from ubiquity import filteredcommand, validation
 
59
from ubiquity.misc import *
 
60
from ubiquity.settings import *
 
61
from ubiquity.components import language, kbd_chooser, timezone, usersetup, \
62
62
                                partman, partman_commit, summary, install
63
 
import espresso.emap
64
 
import espresso.tz
65
 
import espresso.progressposition
 
63
import ubiquity.emap
 
64
import ubiquity.tz
 
65
import ubiquity.progressposition
66
66
 
67
 
# Define Espresso global path
68
 
PATH = '/usr/share/espresso'
 
67
# Define global path
 
68
PATH = '/usr/share/ubiquity'
69
69
 
70
70
# Define glade path
71
71
GLADEDIR = os.path.join(PATH, 'glade')
112
112
        self.current_page = None
113
113
        self.dbfilter = None
114
114
        self.locale = None
115
 
        self.progress_position = espresso.progressposition.ProgressPosition()
 
115
        self.progress_position = ubiquity.progressposition.ProgressPosition()
116
116
        self.progress_cancelled = False
117
117
        self.previous_partitioning_page = None
118
118
        self.installing = False
125
125
        devnull.close()
126
126
 
127
127
        # set default language
128
 
        dbfilter = language.Language(self, DebconfCommunicator('espresso'))
 
128
        dbfilter = language.Language(self, DebconfCommunicator('ubiquity'))
129
129
        dbfilter.cleanup()
130
130
        dbfilter.db.shutdown()
131
131
 
233
233
        """Initial UI setup."""
234
234
 
235
235
        gtk.window_set_default_icon_from_file('/usr/share/pixmaps/'
236
 
                                              'espresso.png')
 
236
                                              'ubiquity.png')
237
237
 
238
238
        PIXMAPSDIR = os.path.join(GLADEDIR, 'pixmaps', self.distro)
239
239
 
305
305
        if isinstance(widget, gtk.Button) and widget.get_use_stock():
306
306
            widget.set_label(widget.get_label())
307
307
 
308
 
        text = get_string('espresso/text/%s' % widget.get_name(), lang)
 
308
        text = get_string('ubiquity/text/%s' % widget.get_name(), lang)
309
309
        if text is None:
310
310
            return
311
311
 
1324
1324
        self.live_installer.hide()
1325
1325
        self.current_page = None
1326
1326
        self.debconf_progress_start(
1327
 
            0, 100, get_string('espresso/install/title', self.locale))
 
1327
            0, 100, get_string('ubiquity/install/title', self.locale))
1328
1328
        self.debconf_progress_region(0, 15)
1329
1329
        self.installing = True
1330
1330
 
1431
1431
class TimezoneMap(object):
1432
1432
    def __init__(self, frontend):
1433
1433
        self.frontend = frontend
1434
 
        self.tzdb = espresso.tz.Database()
1435
 
        self.tzmap = espresso.emap.EMap()
 
1434
        self.tzdb = ubiquity.tz.Database()
 
1435
        self.tzmap = ubiquity.emap.EMap()
1436
1436
        self.update_timeout = None
1437
1437
        self.point_selected = None
1438
1438
        self.point_hover = None