Beispiel #1
0
 def testForegroundColourNames_wxWindowOnly(self):
     """SetForegroundColour, GetForegroundColour"""
     for test, actual in testColour.getColourEquivalentNames():
         self.assert_(self.testControl.SetForegroundColour(test))
                         # return True when background colour changed
         self.assertEquals(actual, self.testControl.GetForegroundColour())
         self.assert_(not self.testControl.SetForegroundColour(test))
Beispiel #2
0
 def testOwnForegroundColorNames_wxWindowOnly(self):
     """SetOwnForegroundColour, GetForegroundColour"""
     for test, actual in testColour.getColourEquivalentNames():
         self.testControl.SetOwnForegroundColour(test)
         self.assertEquals(actual, self.testControl.GetForegroundColour())