示例#1
0
 def testObjectCleanup(self):
     for i in range(100):
         ec = QEasingCurve()
         ec.setCustomType(myFunction)
         self.assertEqual(ec.valueForProgress(1.0), 100.0)
         self.assertEqual(ec.valueForProgress(0.5), -100.0)
示例#2
0
 def testObjectCleanup(self):
     for i in range(100):
         ec = QEasingCurve()
         ec.setCustomType(myFunction)
         self.assertEqual(ec.valueForProgress(1.0), 100.0)
         self.assertEqual(ec.valueForProgress(0.5), -100.0)
示例#3
0
 def testCustomType(self):
     ec = QEasingCurve()
     ec.setCustomType(myFunction)
     self.assertEqual(ec.valueForProgress(1.0), 100.0)
     self.assertEqual(ec.valueForProgress(0.5), -100.0)
示例#4
0
 def testCustomType(self):
     ec = QEasingCurve()
     ec.setCustomType(myFunction)
     self.assertEqual(ec.valueForProgress(1.0), 100.0)
     self.assertEqual(ec.valueForProgress(0.5), -100.0)