graphics/GraphicCommons.py
changeset 515 55213a347f16
parent 505 c5aec2269fb3
child 519 722714c04dcd
equal deleted inserted replaced
514:ee435a8546b9 515:55213a347f16
   204             self.SetForced(forced)
   204             self.SetForced(forced)
   205             self.SetValue(value)
   205             self.SetValue(value)
   206 
   206 
   207     def SetValue(self, value):
   207     def SetValue(self, value):
   208         self.Value = value
   208         self.Value = value
       
   209     
       
   210     def GetValue(self):
       
   211         return self.Value
   209     
   212     
   210     def SetForced(self, forced):
   213     def SetForced(self, forced):
   211         self.Forced = forced
   214         self.Forced = forced
   212     
   215     
   213     def IsForced(self):
   216     def IsForced(self):
  1805             if self.Visible:
  1808             if self.Visible:
  1806                 self.Parent.UpdateRefreshRect(self.GetRedrawRect())
  1809                 self.Parent.UpdateRefreshRect(self.GetRedrawRect())
  1807             if isinstance(value, BooleanType) and self.StartConnected is not None:
  1810             if isinstance(value, BooleanType) and self.StartConnected is not None:
  1808                 block = self.StartConnected.GetParentBlock()
  1811                 block = self.StartConnected.GetParentBlock()
  1809                 block.SpreadCurrent()
  1812                 block.SpreadCurrent()
  1810     
       
  1811     def GetValue(self):
       
  1812         return self.Value
       
  1813     
  1813     
  1814     # Unconnect the start and end points
  1814     # Unconnect the start and end points
  1815     def Clean(self):
  1815     def Clean(self):
  1816         if self.StartConnected:
  1816         if self.StartConnected:
  1817             self.UnConnectStartPoint()
  1817             self.UnConnectStartPoint()