Updates fobj from GUI. Opposite of _update_gui().
542170
def _update_fobj(self):
        """"""

        # print("PPPPPPPPPPPPPPPPPPPRINTANDO O STACK")
        # traceback.print_stack()

        emsg, flag_error = "", False
        fieldname = None
        try:
            
            self._before_update_fobj()

            for item in self._map:
                self._f.obj[item.fieldname] = item.get_value()

            self._after_update_fobj()

        except Exception as E:
            flag_error = True
            if fieldname is not None:
                emsg = "Field '{}': {}".format(fieldname, str(E))
            else:
                emsg = str(E)
            self.add_log_error(emsg)

        self._flag_valid = not flag_error
        if not flag_error:
            self.status("")
478953
def update(self, other=(), **kwargs):
        ''''''
        _kwargs = dict(kwargs)
        _kwargs.update(other)
        for key, value in _kwargs.items():
            self[key] = value
169283
def update(self, style_sheet=values.unset):
        
        return self._proxy.update(style_sheet=style_sheet, )
36935
def flex_update_obj(source, target, __silent, *fields, **field_map):
    '''  '''
    source_dict = source.__dict__ if hasattr(source, '__dict__') else source
    if not fields:
        fields = source_dict.keys()
    for f in fields:
        if f not in source_dict and __silent:
            continue
        target_f = f if f not in field_map else field_map[f]
        setattr(target, target_f, source_dict[f])
472395
def update(self):
        """"""
        node = self._fritz.get_device_element(self.ain)
        self._update_from_node(node)
1052510
protected void updateGui() {
		ButtonLayoutStyle buttonButtonLayoutStyle = buttonAction.getButtonLayoutStyle();
		if (ButtonLayoutStyle.ICON_TITLE_AND_DESCRIPTION.equals(buttonButtonLayoutStyle)) {
			buildGuiWithDescription();
		} else { // LayoutParameter.Layout.ICON_AND_TITLE || null || ...
			setWidth(50);
			if (titleAlignment.equals(TitleAlignment.BOTTOM)) {
				setHeight100();
				
				outer = new VStack();
				outer.setOverflow(Overflow.VISIBLE);
				outer.setWidth(GuwLayout.ribbonButtonWidth);
				outer.setAutoHeight();
				outer.addMember(icon);
				if (showTitles && !GuwLayout.hideRibbonTitles) {
					titleLabel.setBaseStyle(getBaseStyle() + "LargeTitle");
					titleLabel.setAutoHeight();
					titleLabel.setWidth(GuwLayout.ribbonButtonWidth);
					outer.addMember(titleLabel);
				}
				outer.setAlign(Alignment.CENTER);
			} else {
				setAutoHeight();
				
				outer = new HStack(GuwLayout.ribbonButtonInnerMargin);
				outer.setOverflow(Overflow.VISIBLE);
				outer.setWidth100();
				outer.setAutoHeight();
				outer.addMember(icon);
				if (showTitles) {
					titleLabel.setBaseStyle(getBaseStyle() + "SmallTitle");
					titleLabel.setAutoHeight();
					titleLabel.setAutoWidth();
					outer.addMember(titleLabel);
				}
			} 
		}
	}
1215888
def update(self, **kwargs):
        """"""
        assert not self.called
        self.kw.update(kwargs)
        return self
1347526
def update(self, **kwargs):
        
        kwargs.setdefault('script', self.script)
        kwargs.setdefault('output', self.output)
        return Command(**kwargs)
814339
def update(self, **kwargs):
        
        for kw in kwargs:
            setattr(self, kw, kwargs[kw])
1134094
def update(cls, **kwargs):
        '''
        
        '''
        q = cls._get_instance(**{'id': kwargs['id']})
        if q:
            for k, v in kwargs.items():
                setattr(q, k, v)
            _action_and_commit(q, session.add)
        else:
            cls.get_or_create(**kwargs)
16725
def update_model(self, idx=None):
        """"""
        if idx is None:
            for w in self._widgets:
                idx = self._get_idx_from_widget(w)
                try: val = self._read_widget(idx)
                except ValueError: pass
                else: self._write_property(val, idx)
                pass
            pass
        else:
            try: val = self._read_widget(idx)
            except ValueError: pass
            else: self._write_property(val, idx)
        return
420370
def update_channels(self):
        
        if not self.gui_up:
            return

        self.logger.debug("channel configuration has changed--updating gui")
        try:
            channel = self.fv.get_channel(self.chname)

        except KeyError:
            channel = self.fv.get_channel_info()

        if channel is None:
            raise ValueError('No channel available')

        self.chname = channel.name

        w = self.w.channel_name
        w.clear()

        self.chnames = list(self.fv.get_channel_names())
        #self.chnames.sort()
        for chname in self.chnames:
            w.append_text(chname)

        # select the channel that is the current one
        try:
            i = self.chnames.index(channel.name)
        except IndexError:
            i = 0
        self.w.channel_name.set_index(i)

        # update the image listing
        self.redo()
859508
def update(self, display_name=None, display_description=None):
        
        return self.manager.update(self, display_name=display_name,
                display_description=display_description)
641642
def do_gui_update(self):
        
        with self.update_lock:
            changed_widget_dict = {}
            self.root.repr(changed_widget_dict)
            for widget in changed_widget_dict.keys():
                html = changed_widget_dict[widget]
                __id = str(widget.identifier)
                self._send_spontaneous_websocket_message(_MSG_UPDATE + __id + ',' + to_websocket(html))
        self._need_update_flag = False
1255446
def backend_from_fobj(f):
    """"""
    if magic is None:
        warn("magic lib is not installed; assuming mime type %r" % (
            DEFAULT_MIME))
        return backend_from_mime(DEFAULT_MIME)
    else:
        offset = f.tell()
        try:
            f.seek(0)
            chunk = f.read(MAGIC_BUFFER_SIZE)
            mime = magic.from_buffer(chunk, mime=True)
            return backend_from_mime(mime)
        finally:
            f.seek(offset)
890743
def update(self, value=None):
        

        # Update self.value
        if value is None:
            value = self._current_value + 1
        self._current_value = value

        # Choose the appropriate environment
        if self._ipython_widget:
            try:
                self._update_ipython_widget(value)
            except RuntimeError:
                pass
        else:
            self._update_console(value)
178758
def update(connection=None, urls=None, force_download=False):
    
    db = DbManager(connection)
    db.db_import(urls=urls, force_download=force_download)
    db.session.close()