MCPcopy Index your code
hub / github.com/PyQt5/PyQt / toggleRotation

Method toggleRotation

QtDataVisualization/MagneticOfSun.py:191–195  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

189 self.m_sun.setVisible(not self.m_graph.seriesList()[1].isVisible())
190
191 def toggleRotation(self):
192 if self.m_rotationTimer.isActive():
193 self.m_rotationTimer.stop()
194 else:
195 self.m_rotationTimer.start(15)
196
197
198if __name__ == '__main__':

Callers 1

__init__Method · 0.95

Calls 2

stopMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected