mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-09-05 17:30:26 +02:00
- Phoenix-port of `wx.lib.imageutils.py`, with (not particularly smart) unittest and documentation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
23 lines
640 B
Python
23 lines
640 B
Python
import imp_unittest, unittest
|
|
import wtc
|
|
import wx
|
|
import wx.lib.imageutils
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
class lib_imageutils_Tests(wtc.WidgetTestCase):
|
|
|
|
def test_lib_imageutils1(self):
|
|
|
|
base = wx.Colour(100, 120, 140)
|
|
white = wx.lib.imageutils.stepColour(base, 200)
|
|
black = wx.lib.imageutils.stepColour(base, 0)
|
|
|
|
self.assertEqual(white, wx.WHITE)
|
|
self.assertEqual(black, wx.BLACK)
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|