Beispiel #1
0
    def _create_statusbar(self):
        statusbar = ShellStatusbar(self)

        # Set the initial text, the currently logged in user and the actual
        # branch and station.
        user = api.get_current_user(self.store)
        station = api.get_current_station(self.store)
        status_str = "   |   ".join([_("User: %s") % (user.get_description(),), _("Computer: %s") % (station.name,)])
        statusbar.push(0, status_str)
        return statusbar
Beispiel #2
0
    def _create_statusbar(self):
        statusbar = ShellStatusbar(self)

        # Set the initial text, the currently logged in user and the actual
        # branch and station.
        user = api.get_current_user(self.store)
        station = api.get_current_station(self.store)
        status_str = '   |   '.join([
            _("User: %s") % (user.get_description(), ),
            _("Computer: %s") % (station.name, )
        ])
        statusbar.push(0, status_str)
        return statusbar