def _fontBgChanged(self, p, v): if self.textItems: i = self.textItems[-1] i.fill = fn.mkBrush(v) i.updateText()
def setBrush(self, *args, **kwargs): """Set the brush used to draw the isocurve. Arguments can be any that are valid for :func:`mkBrush <pyqtgraph.mkBrush>`""" self.brush = fn.mkBrush(*args, **kwargs) self.update()
def restoreState(self, state): for typ, name, s in state['paths']: s['pen'] = mkPen(state['pen']) s['brush'] = mkBrush(state['brush']) self._add(typ, name, s) self.setChecked(state['activated'])
def restoreState(self, state): for typ,name,s in state['paths']: s['pen'] = mkPen(state['pen']) s['brush'] = mkBrush(state['brush']) self._add(typ, name, s) self.setChecked(state['activated'])