Update the text from the tabs.
164301
def update_tabs_text(self):
        """"""
        # This is needed to prevent that hanged consoles make reference
        # to an index that doesn't exist. See issue 4881
        try:
            for index, fname in enumerate(self.filenames):
                client = self.clients[index]
                if fname:
                    self.rename_client_tab(client,
                                           self.disambiguate_fname(fname))
                else:
                    self.rename_client_tab(client, None)
        except IndexError:
            pass
1192739
def set_text(self, text):
        '''

        '''
        self.traj_controls.timelabel.setText(self.traj_controls._label_tmp.format(text))
576230
public void updateUI() {
		if (!Util.empty(panelContent.getText())) {
			panelContentRO.setData(panelContent.getData());
		} else {
			panelContentRO.setText(SAMPLE_CONTENT);
		}

		panel.setType((WPanel.Type) panelType.getSelected());

		String headingText = tfHeading.getText();
		if (!Util.empty(tfHeading.getText())) {
			heading.setText(tfHeading.getText());
			panel.setTitleText(headingText);
		} else {
			heading.setText(SAMPLE_HEADER);
			panel.setTitleText(SAMPLE_TITLE_TEXT);
		}
	}
713647
function focusTab(tabId) {
    var updateProperties = { "active": true };
    chrome.tabs.update(tabId, updateProperties, function (tab) { });
  }
796481
protected void updateText() 
    {
        super.updateText();
        _exampleInfo[3].setText("[PageUp] Next model");
        _exampleInfo[4].setText("[PageDown] Previous model");
        _exampleInfo[5].setText("[1] Generate polygon type A ");
        _exampleInfo[6].setText("[2] Generate polygon type B ");
    }
299569
def __update_keywords(uid, inkeywords):
        '''
        
        '''
        entry = TabPost.update(keywords=inkeywords).where(TabPost.uid == uid)
        entry.execute()
173033
private void updateComponents() {
        updatingComponents = true;

        Font font = getFont();

        fontList.setSelectedValue(font.getName(), true);
        sizeList.setSelectedValue(font.getSize(), true);
        boldCheckBox.setSelected(font.isBold());
        italicCheckBox.setSelected(font.isItalic());

        if (previewText == null) {
            previewLabel.setText(font.getName());
        }

        // set the font and fire a property change
        Font oldValue = previewLabel.getFont();
        previewLabel.setFont(font);
        firePropertyChange("font", oldValue, font);

        updatingComponents = false;
    }
1221705
def set_text(self, text):
        """"""
        text = text.strip()
        new_text = self.text() + text
        self.setText(new_text)
612054
function update (e) {
		// tab indent
		if (e.keyCode === 9) {
			e.preventDefault();

         var selection = window.getSelection();
         var range = selection.getRangeAt(0);
         var text = document.createTextNode('\t');

         range.deleteContents();
         range.insertNode(text);
         range.setStartAfter(text);
         selection.removeAllRanges();
         selection.addRange(range);

         return;
		}

		var namespace = '.scope';
		var raw = editor.textContent;
		var pragma = /\/\* @scope (.*?) \*\//g.exec(raw);

		if (pragma != null) {
			namespace = pragma[1].trim();
		}

		var processed = stylis(namespace, raw);

		// apply formatting
		processed = processed.replace(/(;|\})/g, format.newlines);
		processed = processed.replace(/(.*?)\{/g, format.selector);
		processed = processed.replace(/:(.*);/g, format.value);
		processed = processed.replace(/^.*;$/gm, format.tabs);
		processed = processed.replace(/\}\n\n\}/g, '}\n}');
		processed = processed.replace(/(.*@.*\{)([^\0]+\})(\n\})/g, format.block);
		processed = processed.replace(/['"`].*?['"`]/g, format.string);

		output.innerHTML = processed;
	}
300694
public void updateText(Dim.SourceInfo sourceInfo) {
        this.sourceInfo = sourceInfo;
        String newText = sourceInfo.source();
        if (!textArea.getText().equals(newText)) {
            textArea.setText(newText);
            int pos = 0;
            if (currentPos != -1) {
                pos = currentPos;
            }
            textArea.select(pos);
        }
        fileHeader.update();
        fileHeader.repaint();
    }
97116
def update(self, dt):
        
        for key, value in self.labels.iteritems():
            str_val = str(int(self.stats[key]))
            self.msgs[key][0].element.text = self.labels[key] + str_val
            self.msgs[key][1].element.text = self.labels[key] + str_val
642431
protected void updateText()
	{
		this.text.setLength(0);
		this.text.append(password.toString().replaceAll("(?s).", String.valueOf(passwordChar)));
		guiText.setText(text.toString());
	}
1119304
function update() {
		var f = self.fm.getSelected(0);
		reset();

		self._hash = f.hash;
		self.title.text(f.name);
		self.win.addClass(self.fm.view.mime2class(f.mime));
		self.name.text(f.name);
		self.kind.text(self.fm.view.mime2kind(f.link ? 'symlink' : f.mime)); 
		self.size.text(self.fm.view.formatSize(f.size));
		self.date.text(self.fm.i18n('Modified')+': '+self.fm.view.formatDate(f.date));
		f.dim && self.add.append('<span>'+f.dim+' px</span>').show();
		f.tmb && self.ico.css('background', 'url("'+f.tmb+'") 0 0 no-repeat');
		if (f.url) {
			self.url.text(f.url).attr('href', f.url).show();
			for (var i in self.plugins) {
				if (self.plugins[i].test && self.plugins[i].test(f.mime, self.mimes, f.name)) {
					self.plugins[i].show(self, f);
					return;
				}
			}
		} else {
			self.url.hide();
		}
		
		self.win.css({
			width  : '420px',
			height : 'auto'
		});
	}
287026
def update_tab_label(self, state_m):
        
        state_identifier = self.get_state_identifier(state_m)
        if state_identifier not in self.tabs and state_identifier not in self.closed_tabs:
            return
        tab_info = self.tabs[state_identifier] if state_identifier in self.tabs else self.closed_tabs[state_identifier]
        page = tab_info['page']
        set_tab_label_texts(page.title_label, state_m, tab_info['source_code_view_is_dirty'])
824186
def delete_tabs(self, tab, no_tabs=1):
        """"""

        # Mark content as changed
        post_command_event(self.main_window, self.ContentChangedMsg)

        try:
            self.code_array.delete(tab, no_tabs, axis=2)

            # Update TableChoiceIntCtrl
            shape = self.grid.code_array.shape
            post_command_event(self.main_window, self.ResizeGridMsg,
                               shape=shape)

        except ValueError, err:
            post_command_event(self.main_window, self.StatusBarMsg,
                               text=err.message)
1040972
def add_current_text_if_valid(self):
        """"""
        valid = self.is_valid(self.currentText())
        if valid or valid is None:
            self.add_current_text()
            return True
        else:
            self.set_current_text(self.selected_text)
628576
def update(self):
        """"""
        events = pygame.event.get()
        for e in events:
            self.update_on_event(e)

        for wid, cond in self._widgets:
            if cond():
                wid.update(events)