예제 #1
0
 def _fontBgChanged(self, p, v):
     if self.textItems:
         i = self.textItems[-1]
         i.fill = fn.mkBrush(v)
         i.updateText()
예제 #2
0
 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()
예제 #3
0
 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'])
예제 #4
0
 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'])
예제 #5
0
 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()